Dear list, I have been trying to debug a build failure for a while in the utils directory on isohybrid which seems to be distro specific. On Fedora 17 64bit the build completes without problems, but under both Ubuntu 32/64bit 11.10 and 12.04 I get the following: tim at oxygen:/usr/src/git/syslinux/utils$ make gcc -O2 -luuid -o isohybrid isohybrid.o isohdpfx.o isohybrid.o: In function `initialise_gpt': isohybrid.c:(.text+0xc42): undefined reference to `uuid_generate' isohybrid.c:(.text+0xd20): undefined reference to `uuid_generate' isohybrid.c:(.text+0xd2d): undefined reference to `uuid_generate' collect2: ld returned 1 exit status make: *** [isohybrid] Error 1 I've done the normal googling and checking that I have the devel packages installed and as much debugging as I can think of. I've tested this on 32bit Ubuntu too but I can't get access to the machine I tested in to remotely atm. These are the reports from my Ubuntu 64bit 12.04 machine: tim at oxygen:/usr/src/git/syslinux/utils$ nm -D /usr/lib/x86_64-linux-gnu/libuuid.so |grep uuid_generate 0000000000002600 T __uuid_generate_random 0000000000001ee0 T __uuid_generate_time 00000000000026f0 T uuid_generate 00000000000026d0 T uuid_generate_random 00000000000025e0 T uuid_generate_time 00000000000025f0 T uuid_generate_time_safe dpkg-query -S /usr/lib/x86_64-linux-gnu/libuuid.so uuid-dev: /usr/lib/x86_64-linux-gnu/libuuid.so tim at oxygen:/usr/src/git/syslinux/utils$ gcc --version gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 on Fedora 17 64bit I get [root at fedora utils]# nm -D /usr/lib64/libuuid.so |grep uuid_generate 0000000000002790 T __uuid_generate_random 0000000000002070 T __uuid_generate_time 0000000000002880 T uuid_generate 0000000000002860 T uuid_generate_random 0000000000002770 T uuid_generate_time 0000000000002780 T uuid_generate_time_safe [root at fedora utils]# gcc --version gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5) Copyright (C) 2012 Free Software Foundation, Inc. -- Tim Fletcher<tim at night-shade.org.uk>
On Sat, Jun 9, 2012 at 2:45 PM, Tim Fletcher <tim at night-shade.org.uk> wrote:> Dear list, > > I have been trying to debug a build failure for a while in the utils > directory on isohybrid which seems to be distro specific. > > On Fedora 17 64bit the build completes without problems, but under both > Ubuntu 32/64bit 11.10 and 12.04 I get the following: > > tim at oxygen:/usr/src/git/syslinux/utils$ make > gcc -O2 -luuid -o isohybrid isohybrid.o isohdpfx.o > isohybrid.o: In function `initialise_gpt': > isohybrid.c:(.text+0xc42): undefined reference to `uuid_generate' > isohybrid.c:(.text+0xd20): undefined reference to `uuid_generate' > isohybrid.c:(.text+0xd2d): undefined reference to `uuid_generate' > collect2: ld returned 1 exit status > make: *** [isohybrid] Error 1 > > I've done the normal googling and checking that I have the devel packages > installed and as much debugging as I can think of. > > I've tested this on 32bit Ubuntu too but I can't get access to the machine I > tested in to remotely atm. > > These are the reports from my Ubuntu 64bit 12.04 machine: > > tim at oxygen:/usr/src/git/syslinux/utils$ nm -D > /usr/lib/x86_64-linux-gnu/libuuid.so |grep uuid_generate > 0000000000002600 T __uuid_generate_random > 0000000000001ee0 T __uuid_generate_time > 00000000000026f0 T uuid_generate > 00000000000026d0 T uuid_generate_random > 00000000000025e0 T uuid_generate_time > 00000000000025f0 T uuid_generate_time_safe > > dpkg-query -S /usr/lib/x86_64-linux-gnu/libuuid.so > uuid-dev: /usr/lib/x86_64-linux-gnu/libuuid.soThat should cover the obvious one. What version of Syslinux?> tim at oxygen:/usr/src/git/syslinux/utils$ gcc --version > gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 > > on Fedora 17 64bit I get > > [root at fedora utils]# nm -D /usr/lib64/libuuid.so |grep uuid_generate > 0000000000002790 T __uuid_generate_random > 0000000000002070 T __uuid_generate_time > 0000000000002880 T uuid_generate > 0000000000002860 T uuid_generate_random > 0000000000002770 T uuid_generate_time > 0000000000002780 T uuid_generate_time_safe > > [root at fedora utils]# gcc --version > gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5) > Copyright (C) 2012 Free Software Foundation, Inc.-- -Gene
On 06/09/2012 11:45 AM, Tim Fletcher wrote:> > tim at oxygen:/usr/src/git/syslinux/utils$ make > gcc -O2 -luuid -o isohybrid isohybrid.o isohdpfx.oHumm... typically the library should be listed last on the command line. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.
On Sat, Jun 09, 2012 at 08:34:50PM -0700, H. Peter Anvin wrote:> On 06/09/2012 11:45 AM, Tim Fletcher wrote: > > > > tim at oxygen:/usr/src/git/syslinux/utils$ make > > gcc -O2 -luuid -o isohybrid isohybrid.o isohdpfx.o > > Humm... typically the library should be listed last on the command line. >Find attached a patch. Groeten Geert Stappers --> And is there a policy on top-posting vs. bottom-posting?Yes. -------------- next part -------------- A non-text attachment was scrubbed... Name: 08-as-needed.patch Type: text/x-diff Size: 572 bytes Desc: not available URL: <http://www.zytor.com/pipermail/syslinux/attachments/20120610/985203ee/attachment.bin>
On Sat, Jun 09, 2012 at 07:45:40PM +0100, Tim Fletcher wrote:> Dear list, > > I have been trying to debug a build failure for a while in the utils > directory on isohybrid which seems to be distro specific. > > On Fedora 17 64bit the build completes without problems, but under > both Ubuntu 32/64bit 11.10 and 12.04 I get the following: > > tim at oxygen:/usr/src/git/syslinux/utils$ make > gcc -O2 -luuid -o isohybrid isohybrid.o isohdpfx.o > isohybrid.o: In function `initialise_gpt': > isohybrid.c:(.text+0xc42): undefined reference to `uuid_generate' > isohybrid.c:(.text+0xd20): undefined reference to `uuid_generate' > isohybrid.c:(.text+0xd2d): undefined reference to `uuid_generate' > collect2: ld returned 1 exit status > make: *** [isohybrid] Error 1 > > I've done the normal googling and checking that I have the devel > packages installed and as much debugging as I can think of. > > I've tested this on 32bit Ubuntu too but I can't get access to the > machine I tested in to remotely atm.>From http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=654838 I dounderstand that Ubuntu allready provided a patch for it. I think the patch is also available in Ubuntu, but for some reason it was not applied during Tims rebuild attempt. Groeten Geert Stappers --> And is there a policy on top-posting vs. bottom-posting?Yes.
On 10/06/12 05:17, Geert Stappers wrote:> On Sat, Jun 09, 2012 at 08:34:50PM -0700, H. Peter Anvin wrote: >> On 06/09/2012 11:45 AM, Tim Fletcher wrote: >>> tim at oxygen:/usr/src/git/syslinux/utils$ make >>> gcc -O2 -luuid -o isohybrid isohybrid.o isohdpfx.o >> Humm... typically the library should be listed last on the command line. >> > Find attached a patch. >Patch confirmed as working, full make clean ; make all works -- Tim Fletcher<tim at night-shade.org.uk>