Bugs item #3467441, was opened at 2011-12-30 02:36 Message generated for change (Comment added) made by joerg_wunsch You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=425407&aid=3467441&group_id=39505
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: jescombe (jescombe) >Assigned to: Joerg Wunsch (joerg_wunsch) Summary: Unable to build on Fedora x64 without -ldl Initial Comment: Building on Fedora 16 x64 results in the following error; g++ -g -O2 -o avarice crc16.o devdescr.o ioreg.o jtag2bp.o jtag2io.o jtag2misc.o jtag2prog.o jtag2run.o jtag2rw.o jtag2usb.o jtagbp.o jtaggeneric.o jtagio.o jtagmisc.o jtagprog.o jtagrun.o jtagrw.o main.o remote.o utils.o gnu_getopt.o gnu_getopt1.o -lusb -lbfd -liberty -lz /usr/lib64/libbfd.a(plugin.o): In function `try_load_plugin': (.text+0x3bb): undefined reference to `dlopen' /usr/lib64/libbfd.a(plugin.o): In function `try_load_plugin': (.text+0x3da): undefined reference to `dlsym' /usr/lib64/libbfd.a(plugin.o): In function `try_load_plugin': (.text+0x47b): undefined reference to `dlerror' collect2: ld returned 1 exit status make[2]: *** [avarice] Error 1 So it appears that libbfd on Fedora also requires libdl, adding LIBS="$LIBS -ldl" to the configure script results in a successful build. ---------------------------------------------------------------------- >Comment By: Joerg Wunsch (joerg_wunsch) Date: 2012-01-18 07:02 Message: Fixed in SVN r295 (configure.ac). ---------------------------------------------------------------------- Comment By: jescombe (jescombe) Date: 2011-12-30 06:44 Message: Yes sure, I can build from svn to test... thanks. ---------------------------------------------------------------------- Comment By: Joerg Wunsch (joerg_wunsch) Date: 2011-12-30 06:22 Message: The problem is that we cannot simply add -ldl globally. There are systems that simply don't have this library (FreeBSD, probably also Cygwin and MacOS X). So we have to extend configure.ac to autodetect this situation. Are you able to pick up a snapshot from SVN, run ./Bootstrap and then configure and compile it? If so, I'll try crafting such a test, and then ask you to give it a try. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=425407&aid=3467441&group_id=39505 ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ avarice-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/avarice-user
