Skip to contentSkip to conversation

More build trouble (2009.11-rc1)

Buildroot Joachim Pihl 2 participants 3 messages Nov 30, 2009 – Dec 1, 2009

lore
Share & tools
lore
#0 lore raw

It didn't do this on 2009.08

/opt/xscale-toolchain/usr/bin/arm-linux-uclibcgnueabi-gcc -Os -pipe -Os -I/opt/xscale-toolchain/usr/include -I/opt/xscale-toolchain/include --sysroot=/opt/xscale-toolchain/ -isysroot /opt/xscale-toolchain -mtune=xscale -march=armv5te -mabi=aapcs-linux -msoft-float -o .libs/gdparttopng gdparttopng.o -L/opt/xscale-toolchain/usr/lib -L/usr/lib ./.libs/libgd.so /opt/xscale-toolchain/usr/lib/libpng12.so -L/opt/xscale-toolchain/lib -lz -lm -Wl,--rpath -Wl,/opt/xscale-toolchain/usr/lib
./.libs/libgd.so: undefined reference to `__isoc99_sscanf'
collect2: ld returned 1 exit status
make[3]: *** [annotate] Error 1
make[3]: *** Waiting for unfinished jobs....
./.libs/libgd.so: undefined reference to `__isoc99_sscanf'
collect2: ld returned 1 exit status
make[3]: *** [gdparttopng] Error 1
make[3]: Leaving directory `/home/jpihl/system_controller/buildroot-2009.11_rc1/output/build/gd-2.0.36RC1' make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jpihl/system_controller/buildroot-2009.11_rc1/output/build/gd-2.0.36RC1' make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/jpihl/system_controller/buildroot-2009.11_rc1/output/build/gd-2.0.36RC1'
make: *** [/home/jpihl/system_controller/buildroot-2009.11_rc1/output/build/gd-2.0.36RC1/libgd.so] Error 2

Signature · 36 lines
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 20392 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091130/cbdd4381/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Config.in
Type: application/octet-stream
Size: 125 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091130/cbdd4381/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgd.mk
Type: application/octet-stream
Size: 2491 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091130/cbdd4381/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgd-crosscompile_on_x86.patch.i386
Type: application/octet-stream
Size: 887 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091130/cbdd4381/attachment-0008.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgd-use_fgetc_and_fputc.patch
Type: application/octet-stream
Size: 2888 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091130/cbdd4381/attachment-0009.obj>
#1 lore raw

Buildroot maintainers;

Please promote this one on your triage list,
I will be needing gd in my system also (mips, not arm).

Mike

Quoted 33 lines · Joachim Pihl

It didn't do this on 2009.08

/opt/xscale-toolchain/usr/bin/arm-linux-uclibcgnueabi-gcc -Os -pipe -Os

(quoted diff) +0 -3
-I/opt/xscale-toolchain/usr/include -I/opt/xscale-toolchain/include  
--sysroot=/opt/xscale-toolchain/ -isysroot /opt/xscale-toolchain  
-mtune=xscale -march=armv5te -mabi=aapcs-linux -msoft-float -o  

.libs/gdparttopng gdparttopng.o -L/opt/xscale-toolchain/usr/lib

(quoted diff) +0 -3
-L/usr/lib ./.libs/libgd.so /opt/xscale-toolchain/usr/lib/libpng12.so  
-L/opt/xscale-toolchain/lib -lz -lm -Wl,--rpath  
-Wl,/opt/xscale-toolchain/usr/lib

./.libs/libgd.so: undefined reference to `__isoc99_sscanf'
collect2: ld returned 1 exit status
make[3]: *** [annotate] Error 1
make[3]: *** Waiting for unfinished jobs....
./.libs/libgd.so: undefined reference to `__isoc99_sscanf'
collect2: ld returned 1 exit status
make[3]: *** [gdparttopng] Error 1
make[3]: Leaving directory `/home/jpihl/system_controller/buildroot-2009.11_rc1/output/build/gd-2.0.36RC1' make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jpihl/system_controller/buildroot-2009.11_rc1/output/build/gd-2.0.36RC1' make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/jpihl/system_controller/buildroot-2009.11_rc1/output/build/gd-2.0.36RC1'
make: *** [/home/jpihl/system_controller/buildroot-2009.11_rc1/output/build/gd-2.0.36RC1/libgd.so] Error 2

#2 lore raw
Quoted 7 lines · Michael S. Zick

Buildroot maintainers;

Please promote this one on your triage list,
I will be needing gd in my system also (mips, not arm).

Mike

Quoted 1 line
Quoted 9 lines
Quoted 9 lines

/opt/xscale-toolchain/usr/bin/arm-linux-uclibcgnueabi-gcc -Os -pipe -Os

(quoted diff) +0 -3
-I/opt/xscale-toolchain/usr/include -I/opt/xscale-toolchain/include
--sysroot=/opt/xscale-toolchain/ -isysroot /opt/xscale-toolchain
-mtune=xscale -march=armv5te -mabi=aapcs-linux -msoft-float -o

.libs/gdparttopng gdparttopng.o -L/opt/xscale-toolchain/usr/lib

(quoted diff) +0 -3
-L/usr/lib ./.libs/libgd.so /opt/xscale-toolchain/usr/lib/libpng12.so
-L/opt/xscale-toolchain/lib -lz -lm -Wl,--rpath
-Wl,/opt/xscale-toolchain/usr/lib

./.libs/libgd.so: undefined reference to `__isoc99_sscanf'

This updated makefile seems to fix the problem. Defining _GNU_SOURCE to avoid redirection of sscanf to __isoc99_sscanf. It may not be The Right Thing (TM), but at least it seems to work.

Signature · 8 lines
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgd.mk
Type: application/octet-stream
Size: 2565 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091201/316de68b/attachment.obj>