[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: TESTING! scratchbox emdebian devkit released



i write a page on the wiki about it : 
http://www.emdebian.org/twiki/bin/view/Main/ScratchboxEmdebianDevkit

i tried to build dnsmasq who doesn't have any dependencies with 
i386-gcc-3.3.2-uclibc-snapshot-20040229.

known issue (thks valtsu), you need to add cc links :
cd /scratchbox/compilers/i386-gcc-3.3.2-uclibc-snapshot-20040229/bin/
ln -s i386-linux-gcc i386-linux-cc
ln -s i386-linux-cc sbox-i386-linux-cc

but that doesn't compile :

[sbox-MYTARGET: ~/dnsmasq-2.22] > dpkg-buildpackage -b -rfakeroot
dpkg-buildpackage: source package is dnsmasq
dpkg-buildpackage: source version is 2.22-2
dpkg-buildpackage: source maintainer is Simon Kelley <simon@thekelleys.org.uk>
dpkg-architecture: warning: Unknown gcc system type i386-linux-uclibc, falling 
back to default (native compilation)
dpkg-architecture: warning: Specified GNU system type i386-linux does not 
match gcc system type i386-linux-uclibc.
dpkg-architecture: warning: Unknown gcc system type i386-linux-uclibc, falling 
back to default (native compilation)
dpkg-architecture: warning: Specified GNU system type i386-linux does not 
match gcc system type i386-linux-uclibc.
dpkg-buildpackage: host architecture is i386
dpkg-checkbuilddeps: Using Scratchbox tools to satisfy builddeps
 fakeroot debian/rules clean
test -f dnsmasq.8 -a -f debian/rules
rm -f build
rm -rf debian/tmp debian/*~ debian/files* debian/substvars
make clean
make[1]: Entering directory `/home/fboudra/dnsmasq-2.22'
rm -f *~ contrib/*/*~ */*~ src/*.o src/dnsmasq core build
make[1]: Leaving directory `/home/fboudra/dnsmasq-2.22'
 debian/rules build
test -f dnsmasq.8 -a -f debian/rules
make
make[1]: Entering directory `/home/fboudra/dnsmasq-2.22'
make[2]: Entering directory `/home/fboudra/dnsmasq-2.22/src'
cc -O2  -Wall -W -c cache.c
cc -O2  -Wall -W -c rfc1035.c
cc -O2  -Wall -W -c util.c
cc -O2  -Wall -W -c option.c
cc -O2  -Wall -W -c forward.c
cc -O2  -Wall -W -c isc.c
cc -O2  -Wall -W -c network.c
cc -O2  -Wall -W -c dnsmasq.c
cc -O2  -Wall -W -c dhcp.c
cc -O2  -Wall -W -c lease.c
cc -O2  -Wall -W -c rfc2131.c
cc -O2  -Wall -W -c netlink.c
cc -o dnsmasq  cache.o rfc1035.o util.o option.o forward.o isc.o network.o 
dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o
rfc1035.o(.text+0x370): In function `in_arpa_name_2_addr':
: undefined reference to `__ctype_b_loc'
rfc1035.o(.text+0x3a9): In function `in_arpa_name_2_addr':
: undefined reference to `__strtol_internal'
rfc1035.o(.text+0x434): In function `in_arpa_name_2_addr':
: undefined reference to `__ctype_b_loc'
rfc1035.o(.text+0x476): In function `in_arpa_name_2_addr':
: undefined reference to `__strtol_internal'
rfc1035.o(.text+0x4d9): In function `in_arpa_name_2_addr':
: undefined reference to `__ctype_b_loc'
rfc1035.o(.text+0x510): In function `in_arpa_name_2_addr':
: undefined reference to `__strtol_internal'
rfc1035.o(.text+0x532): In function `in_arpa_name_2_addr':
: undefined reference to `__strtol_internal'
util.o(.text+0x108): In function `atoi_check':
: undefined reference to `__strtol_internal'
util.o(.text+0x60c): In function `parse_hex':
: undefined reference to `__strtol_internal'
option.o(.text+0x71d): In function `read_opts':
: undefined reference to `__ctype_b_loc'
option.o(.text+0x75b): In function `read_opts':
: undefined reference to `__ctype_b_loc'
option.o(.text+0xda9): In function `read_opts':
: undefined reference to `__strtol_internal'
option.o(.text+0x1248): In function `read_opts':
: undefined reference to `__ctype_b_loc'
option.o(.text+0x1271): In function `read_opts':
: undefined reference to `__strtol_internal'
option.o(.text+0x1691): In function `read_opts':
: undefined reference to `__strtol_internal'
option.o(.text+0x187a): In function `read_opts':
: undefined reference to `__strtol_internal'
isc.o(.text+0x19): In function `next_token':
: undefined reference to `_IO_getc'
isc.o(.text+0x71): In function `next_token':
: undefined reference to `_IO_getc'
isc.o(.text+0xb3): In function `load_dhcp':
: undefined reference to `__xstat'
dnsmasq.o(.text+0x4b8): In function `main':
: undefined reference to `__xstat'
dnsmasq.o(.text+0x66d): In function `main':
: undefined reference to `pselect'
dhcp.o(.text+0xf1a): In function `dhcp_read_ethers':
: undefined reference to `__ctype_b_loc'
dhcp.o(.text+0xf7e): In function `dhcp_read_ethers':
: undefined reference to `__ctype_b_loc'
dhcp.o(.text+0xf9d): In function `dhcp_read_ethers':
: undefined reference to `__ctype_b_loc'
rfc2131.o(.text+0x67b): In function `dhcp_reply':
: undefined reference to `__ctype_b_loc'
collect2: ld returned 1 exit status
make[2]: *** [dnsmasq] Error 1
make[2]: Leaving directory `/home/fboudra/dnsmasq-2.22/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/fboudra/dnsmasq-2.22'
make: *** [build] Error 2
dpkg-buildpackage: This error may be caused by SBOX_DPKG_BUILDDEPS.
dpkg-buildpackage: (See /scrathbox/doc/debian-variables.txt for usage.)



Reply to: