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@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@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@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@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@fedora utils]# gcc --version
gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5)
Copyright (C) 2012 Free Software Foundation, Inc.
On Sat, Jun 9, 2012 at 2:45 PM, 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@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@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@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@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@fedora utils]# gcc --version > gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5) > Copyright (C) 2012 Free Software Foundation, Inc.
On 09/06/12 22:00, Gene Cumm wrote: > On Sat, Jun 9, 2012 at 2:45 PM, 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@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@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 > That should cover the obvious one. What version of Syslinux? >Apologies forgot to mention that part, it's current git. tim@oxygen:/usr/src/git/syslinux$ git describe syslinux-4.06-pre5-4-g269ebc8
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@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
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@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
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@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?... I do understand 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