From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yegor Yefremov Date: Tue, 05 Jul 2011 11:06:45 +0200 Subject: [Buildroot] lame linking issue In-Reply-To: <87hb71xgt5.fsf@macbook.be.48ers.dk> References: <4E0DD227.6050807@visionsystems.de> <87hb71xgt5.fsf@macbook.be.48ers.dk> Message-ID: <4E12D425.1010201@visionsystems.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Am 05.07.2011 10:39, schrieb Peter Korsgaard: >>>>>> "Yegor" == Yegor Yefremov writes: > Yegor> I'm using the latest git version of BR and wanted to build lame-3.98.4. During linking phase I got following errors: > > Yegor> Any idea? > > Yegor> Some toolchain details: > > Yegor> uClibc: 0.9.32 > Yegor> GCC: 4.6.1 > > gcc 4.6.x support is experimental. Lame builds here with the default > (4.3.x) compiler. That didn't help. Could it be due to 64-bit build system? > It was created by lame configure 3.98.4, which was > generated by GNU Autoconf 2.61. Invocation command line was > > $ ./configure --target=arm-linux --host=arm-linux --build=x86_64-unknown-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --disable-gtk-doc --disable-nls --enable-static --enable-shared > > ## --------- ## > ## Platform. ## > ## --------- ## > > hostname = development1 > uname -m = x86_64 > uname -r = 2.6.22.5-31-default > uname -s = Linux > uname -v = #1 SMP 2007/09/21 22:29:00 UTC > > /usr/bin/uname -p = unknown > /bin/uname -X = unknown > > /bin/arch = x86_64 > /usr/bin/arch -k = unknown > /usr/convex/getsysinfo = unknown > /usr/bin/hostinfo = unknown > /bin/machine = unknown > /usr/bin/oslevel = unknown > /bin/universe = unknown lame seems to look in 64-bit include folder: make[3]: Entering directory `/home/YegorYefremov/projects/versioned/buildroot/output/build/lame-3.98.4/frontend' /home/YegorYefremov/projects/versioned/buildroot/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -I../libmp3lame -I../include -I.. -Wall -pipe -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c /home/YegorYefremov/projects/versioned/buildroot/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -I../libmp3lame -I../include -I.. -Wall -pipe -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include -MT console.o -MD -MP -MF .deps/console.Tpo -c -o console.o console.c /home/YegorYefremov/projects/versioned/buildroot/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -I../libmp3lame -I../include -I.. -Wall -pipe -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include -MT get_audio.o -MD -MP -MF .deps/get_audio.Tpo -c -o get_audio.o get_audio.c /home/YegorYefremov/projects/versioned/buildroot/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -I../libmp3lame -I../include -I.. -Wall -pipe -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include -MT lametime.o -MD -MP -MF .deps/lametime.Tpo -c -o lametime.o lametime.c /home/YegorYefremov/projects/versioned/buildroot/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -I../libmp3lame -I../include -I.. -Wall -pipe -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include -MT parse.o -MD -MP -MF .deps/parse.Tpo -c -o parse.o parse.c /home/YegorYefremov/projects/versioned/buildroot/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -I../libmp3lame -I../include -I.. -Wall -pipe -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include -MT portableio.o -MD -MP -MF .deps/portableio.Tpo -c -o portableio.o portableio.c /home/YegorYefremov/projects/versioned/buildroot/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -I../libmp3lame -I../include -I.. -Wall -pipe -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include -MT timestatus.o -MD -MP -MF .deps/timestatus.Tpo -c -o timestatus.o timestatus.c /home/YegorYefremov/projects/versioned/buildroot/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -I../libmp3lame -I../include -I.. -Wall -pipe -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include -MT brhist.o -MD -MP -MF .deps/brhist.Tpo -c -o brhist.o brhist.c mv -f .deps/console.Tpo .deps/console.Po mv -f .deps/lametime.Tpo .deps/lametime.Po mv -f .deps/portableio.Tpo .deps/portableio.Po mv -f .deps/timestatus.Tpo .deps/timestatus.Po mv -f .deps/brhist.Tpo .deps/brhist.Po mv -f .deps/main.Tpo .deps/main.Po mv -f .deps/get_audio.Tpo .deps/get_audio.Po mv -f .deps/parse.Tpo .deps/parse.Po /bin/sh ../libtool --tag=CC --mode=link /home/YegorYefremov/projects/versioned/buildroot/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc -Wall -pipe -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include -o lame main.o console.o get_audio.o lametime.o parse.o portableio.o timestatus.o brhist.o ../libmp3lame/libmp3lame.la -lm mkdir .libs /home/YegorYefremov/projects/versioned/buildroot/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc -Wall -pipe -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include -o lame main.o console.o get_audio.o lametime.o parse.o portableio.o timestatus.o brhist.o ../libmp3lame/.libs/libmp3lame.so -lm -Wl,--rpath -Wl,/home/YegorYefremov/projects/versioned/buildroot/output/build/lame-3.98.4/libmp3lame/.libs get_audio.o: In function `fskip': get_audio.c:(.text+0x410): undefined reference to `__fxstat64' lametime.o: In function `lame_get_file_size': lametime.c:(.text+0x1c): undefined reference to `__xstat64' parse.o: In function `local_strcasecmp': parse.c:(.text+0x6f0): undefined reference to `__ctype_tolower_loc' portableio.o: In function `WriteBytesSwapped': portableio.c:(.text+0x20): undefined reference to `_IO_putc' portableio.o: In function `WriteBytes': portableio.c:(.text+0x5c): undefined reference to `_IO_putc' portableio.o: In function `Write16BitsHighLow': portableio.c:(.text+0xa0): undefined reference to `_IO_putc' portableio.c:(.text+0xac): undefined reference to `_IO_putc' portableio.o: In function `Write16BitsLowHigh': portableio.c:(.text+0x108): undefined reference to `_IO_putc' portableio.o:portableio.c:(.text+0x114): more undefined references to `_IO_putc' follow portableio.o: In function `Read24BitsHighLow': portableio.c:(.text+0x1b4): undefined reference to `_IO_getc' portableio.c:(.text+0x1c0): undefined reference to `_IO_getc' portableio.c:(.text+0x1cc): undefined reference to `_IO_getc' portableio.o: In function `Read16BitsHighLow': portableio.c:(.text+0x204): undefined reference to `_IO_getc' portableio.c:(.text+0x210): undefined reference to `_IO_getc' portableio.o:portableio.c:(.text+0x274): more undefined references to `_IO_getc' follow collect2: ld returned 1 exit status Yegor