Hi everyone. I'm trying to build debian-installer on Debian Wheezy 64 but I'm getting this error (full log at the bottom): /usr/bin/ld.gold.real: error: hidden symbol '__nss_aliases_database' is not defined locally /usr/bin/ld.gold.real: error: hidden symbol '__nss_ethers_database' is not defined locally /usr/bin/ld.gold.real: error: hidden symbol '__nss_netgroup_database' is not defined locally /usr/bin/ld.gold.real: error: hidden symbol '__nss_rpc_database' is not defined locally /usr/bin/ld.gold.real: error: hidden symbol '__nss_shadow_database' is not defined locally collect2: error: ld returned 1 exit status
Here is the steps I did to build debian-installer: # apt-get build-dep debian-installer $ apt-get source debian-installer $ cd debian-installer-20130613+deb7u1/build $ cat sources.list.udeb.local deb http://ftp.fr.debian.org/debian wheezy main/debian-installer deb http://security.debian.org/ wheezy/updates main/debian-installer $ fakeroot make build_netboot If I follow the exact same steps on i386 the build works just fine. Did I missed something? FYI my final goal is to build debian-installer Wheezy with a backported kernel. Thanks. Maxime Full log: $ fakeroot make build_netboot # Add release info mkdir -p ./tmp/netboot/tree/etc/ echo wheezy >./tmp/netboot/tree/etc/default-release echo unstable >./tmp/netboot/tree/etc/udebs-source # Create a dev tree. mkdir -p ./tmp/netboot/tree/dev # Always needed, in case udev is not mounted on boot. mknod ./tmp/netboot/tree/dev/console c 5 1 mknod ./tmp/netboot/tree/dev/null c 1 3 mkdir -p ./tmp/netboot/tree/extraudebs-tmp mkdir -p ./tmp/netboot/tree/extraudebs-tmp/var/lib/dpkg/info ./tmp/netboot/tree/extraudebs-tmp/var/lib/dpkg/updates touch ./tmp/netboot/tree/extraudebs-tmp/var/lib/dpkg/status ./tmp/netboot/tree/extraudebs-tmp/var/lib/dpkg/available # Get and unpack extra udebs too. get-packages udeb cdebconf-newt-entropy cdebconf-text-entropy Hit http://ftp.fr.debian.org wheezy Release.gpg Hit http://security.debian.org wheezy/updates Release.gpg Hit http://ftp.fr.debian.org wheezy Release Hit http://security.debian.org wheezy/updates Release Hit http://security.debian.org wheezy/updates/main/debian-installer amd64 Packages Hit http://ftp.fr.debian.org wheezy/main/debian-installer amd64 Packages Reading package lists... Done Reading package lists... Done Building dependency tree... Done Need to download: cdebconf-newt-entropy cdebconf-text-entropy Reading package lists... Done Building dependency tree... Done Installing cdebconf-newt-udeb as Depends of cdebconf-newt-entropy Installing cdebconf-udeb as Depends of cdebconf-newt-udeb Installing libc6-udeb as Depends of cdebconf-udeb Installing libdebian-installer4-udeb as Depends of cdebconf-udeb Installing libtextwrap1-udeb as Depends of cdebconf-udeb Installing di-utils-terminfo as Depends of cdebconf-newt-udeb Installing libslang2-udeb as Depends of cdebconf-newt-udeb Installing cdebconf-text-udeb as Depends of cdebconf-text-entropy The following extra packages will be installed: cdebconf-newt-udeb cdebconf-text-udeb cdebconf-udeb di-utils-terminfo libc6-udeb libdebian-installer4-udeb libslang2-udeb libtextwrap1-udeb The following NEW packages will be installed: cdebconf-newt-entropy cdebconf-newt-udeb cdebconf-text-entropy cdebconf-text-udeb cdebconf-udeb di-utils-terminfo libc6-udeb libdebian-installer4-udeb libslang2-udeb libtextwrap1-udeb 0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/1,364 kB of archives. After this operation, 4,508 kB of additional disk space will be used. Download complete and in download only mode dpkg --force-overwrite --log=/dev/null --root=./tmp/netboot/tree/extraudebs-tmp --unpack \ udebs/cdebconf-newt-entropy.udeb udebs/cdebconf-text-entropy.udeb (Reading database ... 9 files and directories currently installed.) Preparing to replace cdebconf-newt-entropy 0.24 (using .../cdebconf-newt-entropy.udeb) ... Unpacking replacement cdebconf-newt-entropy ... Preparing to replace cdebconf-text-entropy 0.24 (using .../cdebconf-text-entropy.udeb) ... Unpacking replacement cdebconf-text-entropy ... # Library reduction. Existing libs from udebs are put in the udeblibs # directory and mklibs is made to use those in preference to the # system libs. rm -rf ./tmp/netboot/udeblibs mkdir -p ./tmp/netboot/udeblibs find ./tmp/netboot/tree/extraudebs-tmp/lib -name '*.so.*' -print0 | \ xargs -0r cp -a -t ./tmp/netboot/udeblibs find: `./tmp/netboot/tree/extraudebs-tmp/lib': No such file or directory find ./tmp/netboot/tree/lib -name '*.so.*' -print0 | \ xargs -0r cp -a -t ./tmp/netboot/udeblibs mkdir -p ./tmp/netboot/tree/lib # HACK ALERT: X.Org modules are excluded from the scan as mklibs # is unable to find symbols provided by the /usr/bin/Xorg binary mklibs -L ./tmp/netboot/tree/usr/lib -L ./tmp/netboot/tree/usr/lib/x86_64-linux-gnu \ -L ./tmp/netboot/udeblibs -v -d ./tmp/netboot/tree/lib --root=./tmp/netboot/tree \ -L ./tmp/netboot/tree/usr/lib/cdebconf/frontend \ -lnewt.so -ltext.so \ `find ./tmp/netboot -type f -a \( -perm +0111 -o -name '*.so' -o -name '*.so.*' \) | \ grep -v udeblibs | grep -v 'usr/lib/xorg/modules/.*\.so'` I: Using /lib64/ld-linux-x86-64.so.2 as dynamic linker. Adding rpath ./tmp/netboot/tree//usr/lib/cdebconf for ./tmp/netboot/tree/usr/lib/cdebconf/debconf-dumpdb I: library reduction pass 1 Objects: rfc822db.so libnl-3.so.200.5.2 trimtemplates libuuid.so.1.3.0 main-menu libresolv.so.2-so ata_id udevd pcmcia-check-broken-cis log-output udevadm libuuid.so.1-so-stripped libdebian-installer.so.4-so-stripped libblkid.so.1.1.0 newt.so plugin-terminal.so anna nano archdetect rdisc6 bterm setfont loadkeys kbd_mode netcfg scsi_id busybox debconf-dumpdb debconf-copydb libdebconf.so debconf debconf-loadtemplate stack.so udpkg libcrypto.so.1.0.0 libdebconfclient.so.0.0.0 lspci libdebian-installer.so.4 choose-mirror text.so blkid libnl-genl-3.so.200.5.2 libiw.so.30 pcmcia-socket-startup dhcp6c kmod wpa_supplicant plugin-entropy.so libz.so.1.2.7 gpgv plugin-entropy.so rdnssd brltty libnss_dns-2.13.so libnss_files-2.13.so cdrom_id libresolv.so.2-so-stripped libblkid.so.1-so-stripped libtextwrap.so.1.0.0 libslang.so.2-so libslang.so.2-so-stripped libnl-genl-3.so.200-so-stripped console-type get-real-console-linux steal-ctty libfribidi.so.0.3.1 Object: ./tmp/netboot/tree/usr/lib/cdebconf/db/rfc822db.so Object: ./tmp/netboot/tree/lib/libnl-3.so.200.5.2 Object: ./tmp/netboot/tree/bin/trimtemplates Object: ./tmp/netboot/tree/lib/libuuid.so.1.3.0 Object: ./tmp/netboot/tree/usr/bin/main-menu Object: ./tmp/netboot/tree/lib/libresolv.so.2-so Object: ./tmp/netboot/tree/lib/udev/ata_id Object: ./tmp/netboot/tree/sbin/udevd Object: ./tmp/netboot/tree/lib/udev/pcmcia-check-broken-cis Object: ./tmp/netboot/tree/bin/log-output Object: ./tmp/netboot/tree/sbin/udevadm Object: ./tmp/netboot/tree/lib/libuuid.so.1-so-stripped Object: ./tmp/netboot/tree/lib/libdebian-installer.so.4-so-stripped Object: ./tmp/netboot/tree/lib/libblkid.so.1.1.0 Object: ./tmp/netboot/tree/usr/lib/cdebconf/frontend/newt.so Object: ./tmp/netboot/tree/usr/lib/cdebconf/frontend/newt/plugin-terminal.so Object: ./tmp/netboot/tree/bin/anna Object: ./tmp/netboot/tree/bin/nano Object: ./tmp/netboot/tree/bin/archdetect Object: ./tmp/netboot/tree/bin/rdisc6 Object: ./tmp/netboot/tree/usr/bin/bterm Object: ./tmp/netboot/tree/bin/setfont Object: ./tmp/netboot/tree/bin/loadkeys Object: ./tmp/netboot/tree/bin/kbd_mode Object: ./tmp/netboot/tree/bin/netcfg Object: ./tmp/netboot/tree/lib/udev/scsi_id Object: ./tmp/netboot/tree/bin/busybox Object: ./tmp/netboot/tree/usr/lib/cdebconf/debconf-dumpdb Object: ./tmp/netboot/tree/usr/lib/cdebconf/debconf-copydb Object: ./tmp/netboot/tree/usr/lib/cdebconf/libdebconf.so Object: ./tmp/netboot/tree/usr/lib/cdebconf/debconf Object: ./tmp/netboot/tree/usr/lib/cdebconf/debconf-loadtemplate Object: ./tmp/netboot/tree/usr/lib/cdebconf/db/stack.so Object: ./tmp/netboot/tree/usr/bin/udpkg Object: ./tmp/netboot/tree/usr/lib/libcrypto.so.1.0.0 Object: ./tmp/netboot/tree/usr/lib/libdebconfclient.so.0.0.0 Object: ./tmp/netboot/tree/usr/bin/lspci Object: ./tmp/netboot/tree/lib/libdebian-installer.so.4 Object: ./tmp/netboot/tree/bin/choose-mirror Object: ./tmp/netboot/tree/usr/lib/cdebconf/frontend/text.so Object: ./tmp/netboot/tree/sbin/blkid Object: ./tmp/netboot/tree/lib/x86_64-linux-gnu/libnl-genl-3.so.200.5.2 Object: ./tmp/netboot/tree/lib/libiw.so.30 Object: ./tmp/netboot/tree/lib/udev/pcmcia-socket-startup Object: ./tmp/netboot/tree/usr/sbin/dhcp6c Object: ./tmp/netboot/tree/bin/kmod Object: ./tmp/netboot/tree/sbin/wpa_supplicant Object: ./tmp/netboot/tree/extraudebs-tmp/usr/lib/cdebconf/frontend/newt/plugin-entropy.so Object: ./tmp/netboot/tree/usr/lib/libz.so.1.2.7 Object: ./tmp/netboot/tree/usr/bin/gpgv Object: ./tmp/netboot/tree/extraudebs-tmp/usr/lib/cdebconf/frontend/text/plugin-entropy.so Object: ./tmp/netboot/tree/sbin/rdnssd Object: ./tmp/netboot/tree/sbin/brltty Object: ./tmp/netboot/tree/lib/libnss_dns-2.13.so Object: ./tmp/netboot/tree/lib/libnss_files-2.13.so Object: ./tmp/netboot/tree/lib/udev/cdrom_id Object: ./tmp/netboot/tree/lib/libresolv.so.2-so-stripped Object: ./tmp/netboot/tree/lib/libblkid.so.1-so-stripped Object: ./tmp/netboot/tree/usr/lib/libtextwrap.so.1.0.0 Object: ./tmp/netboot/tree/lib/libslang.so.2-so Object: ./tmp/netboot/tree/lib/libslang.so.2-so-stripped Object: ./tmp/netboot/tree/lib/libnl-genl-3.so.200-so-stripped Object: ./tmp/netboot/tree/sbin/console-type Object: ./tmp/netboot/tree/sbin/get-real-console-linux Object: ./tmp/netboot/tree/sbin/steal-ctty Object: ./tmp/netboot/tree/lib/libfribidi.so.0.3.1 906 symbols, 601 unresolved reducing libresolv.so.2 /lib/x86_64-linux-gnu//libresolv.so.2 80712 ./tmp/netboot/tree/lib/libresolv.so.2-so 79520 ./tmp/netboot/tree/lib/libresolv.so.2-so-stripped 67336 reducing libtextwrap.so.1 no action required for ./tmp/netboot/tree/usr/lib/libtextwrap.so.1 adding ./tmp/netboot/tree/usr/lib/libtextwrap.so.1 to available libs reducing libz.so.1 no action required for ./tmp/netboot/tree/usr/lib/libz.so.1 adding ./tmp/netboot/tree/usr/lib/libz.so.1 to available libs reducing libdebian-installer.so.4 No pic file found for ./tmp/netboot/udeblibs/libdebian-installer.so.4 ; copying reducing libblkid.so.1 No pic file found for ./tmp/netboot/udeblibs/libblkid.so.1 ; copying reducing libdebconfclient.so.0 no action required for ./tmp/netboot/tree/usr/lib/libdebconfclient.so.0 adding ./tmp/netboot/tree/usr/lib/libdebconfclient.so.0 to available libs reducing libslang.so.2 /lib/x86_64-linux-gnu//libslang.so.2 1252128 ./tmp/netboot/tree/lib/libslang.so.2-so 525360 ./tmp/netboot/tree/lib/libslang.so.2-so-stripped 490360 reducing libcrypto.so.1.0.0 no action required for ./tmp/netboot/tree/usr/lib/libcrypto.so.1.0.0 adding ./tmp/netboot/tree/usr/lib/libcrypto.so.1.0.0 to available libs reducing libnl-genl-3.so.200 No pic file found for ./tmp/netboot/udeblibs/libnl-genl-3.so.200 ; copying reducing libuuid.so.1 No pic file found for ./tmp/netboot/udeblibs/libuuid.so.1 ; copying reducing libc.so.6 /usr/bin/ld.gold.real: error: hidden symbol '__nss_aliases_database' is not defined locally /usr/bin/ld.gold.real: error: hidden symbol '__nss_ethers_database' is not defined locally /usr/bin/ld.gold.real: error: hidden symbol '__nss_netgroup_database' is not defined locally /usr/bin/ld.gold.real: error: hidden symbol '__nss_rpc_database' is not defined locally /usr/bin/ld.gold.real: error: hidden symbol '__nss_shadow_database' is not defined locally collect2: error: ld returned 1 exit status Command failed with status 1 : gcc -nostdlib -nostartfiles -shared -Wl,-soname=libc.so.6 -u__strtok_r -uaddmntent -umallopt -ugettimeofday -ugetline -ulisten -usetvbuf -uexecve -urename -usigaction -u__assert_fail -u_nss_files_parse_pwent -uiswalnum -ustrsep -ubasename -uepoll_ctl -uwcslen -uprintf -ufdopen -u__fprintf_chk -umadvise -uiconv_close -u_nss_files_parse_grent -umkstemp -uflock -ugetegid -udcngettext -urewind -uiconv_open -u__errno_location -uscandir -ulocaltime_r -ugnu_dev_minor -ufchown -ugeteuid -ufgetpos -uaccept -ustatfs -u__lxstat64 -uunlink -u__dso_handle -u__poll -uregcomp -usrandom -ugetopt_long -ushmat -u__vsyslog_chk -ugetpwnam_r -uhstrerror -uinotify_add_watch -usettimeofday -usetlinebuf -ufaccessat -utcgetattr -u__xmknodat -uvsyslog -ugetgroups -u__openat_2 -uinet_network -ufwrite -uputs -ugetuid -ufopen64 -uwctomb -uchmod -u__strndup -ufscanf -usetsockopt -usymlink -ufork -upread -ufgets_unlocked -uioperm -ustrftime -upwrite -uiswspace -ugetgid -uinit_module -uasprintf -utzset -uftell -ustdout -u__res_iclose -uumount2 -usigprocmask -uxdr_opaque -ufwrite_unlocked -usetrlimit -ugethostbyaddr -uregfree -ustrerror -ubindtextdomain -ustrtok -upivot_root -ufputc -uaccess -uwmemchr -u__uflow -usigfillset -ufflush -utime -u_IO_getc -upipe2 -u__fxstatat -uposix_fadvise -ureaddir_r -uexecvp -uvfscanf -uselect -u__isoc99_fscanf -uopendir -ualphasort -ufreeifaddrs -usyscall -uinet_addr -uopterr -usetsid -udaemon -u__lxstat -u__strcat_chk -uconnect -uchroot -usignalfd -usigemptyset -uopenlog -ugetaddrinfo -ufchmodat -uendpwent -ustrtol -umemset -ufcntl -udirname -uwait -u__ctype_toupper_loc -ulocaleconv -ulchown -uwritev -ureaddir64 -usocket -u__longjmp_chk -usetlocale -utempnam -u__strcpy_chk -u__ctype_tolower_loc -ugetifaddrs -uregexec -uerr -u__res_init -unl_langinfo -uxdr_array -upipe -ugetnetbyname -ureadlinkat -umkdtemp -ustrstr -uauthunix_create_default -u__secure_getenv -uqsort -ustrcspn -ubsearch -usrand -u__strdup -uwmemset -ustrchrnul -uswapoff -usyslog -uvsnprintf -urmdir -ugetsockopt -ucfmakeraw -utcsetattr -u__dprintf_chk -uperror -ufsetpos -urecv -ufseek -uif_nametoindex -uchdir -uopen64 -u__environ -uutimensat -u__isoc99_sscanf -uhasmntopt -uread -umemcmp -uiswblank -udcgettext -ugetpagesize -ubcmp -uiconv -umkstemp64 -uatoi -uunsetenv -usysconf -ugetpgrp -u__sprintf_chk -utextdomain -ufputs -uungetc -ustrtok_r -usysinfo -utcflush -ubindresvport -u__xstat64 -uwrite -u__ctype_b_loc -uwaitpid -utdelete -ugetenv -ustrnlen -u__stack_chk_fail -usscanf -uunlockpt -uclose -ustrverscmp -u__open_2 -urecvfrom -uxdr_string -ucfsetospeed -umemcpy -uinet_nsap_ntoa -unice -uopen -ufreopen64 -ugetpwuid -ufclose -uttyname_r -uoptarg -usetgid -ugetservbyname -urand -ustderr -u__xstat -uwcwidth -u__fread_chk -utcsetpgrp -usigdelset -uklogctl -udprintf -ufchownat -ulocaltime -uiswalpha -uswapon -ugetnameinfo -ushmctl -uinotify_rm_watch -usync -ustrsignal -u_environ -uiswupper -umkfifo -ugetmntent -uputchar -ummap64 -ustrcasestr -ufreopen -u__libc_alloca_cutoff -ustrndup -usetbuf -ustrncasecmp -ustrcmp -usleep -ustrncmp -u__xmknod -urecvmsg -u__strtoull_internal -utoupper -u__memcpy_chk -umbtowc -umkdir -ugetrlimit64 -ufileno -uremove -u__asprintf_chk -ustrtod -utcgetpgrp -u__libc_start_main -urealloc -u__vsnprintf_chk -u_res_hconf -udirfd -usetgroups -uin6addr_any -u__fxstat -ushutdown -umunlock -ustrrchr -uftruncate64 -ugrantpt -ustpcpy -ustrncat -umempcpy -urewinddir -ugetprotobynumber -ugetopt -ufsync -uferror -ulseek -u__strsep_g -ustrtoull -utimes -uppoll -u__h_errno_location -utowupper -u_setjmp -u__sysv_signal -utfind -ugetmntent_r -ustdin -ulink -uglobfree -u__res_maybe_init -uxdr_bytes -usetenv -ufprintf -ustrcpy -ustrpbrk -usigsuspend -ushmget -u__res_state -u__rawmemchr -uether_ntoa -uinet_aton -uisatty -ufgetc -uvasprintf -uptsname -ureboot -usetmntent -u__mempcpy_chk -ujrand48 -uexeclp -uabort -uwmemcmp -ugmtime_r -ufchmod -u__printf_chk -useekdir -uwmemcpy -upmap_getport -ucfgetospeed -ufdatasync -ugmtime -uexit -uerrx -uexecl -ummap -upmap_getmaps -u__strcasecmp -ufgets -upopen -u_nss_files_parse_sgent -ufnmatch -ustatfs64 -ugnu_dev_major -uxdecrypt -ureaddir -uclosedir -ustrtoll -ugetpwnam -utwalk -ugetppid -uxdr_u_int -ucalloc -u_exit -uexecv -usprintf -usendmsg -u_IO_putc -u__open64_2 -ulseek64 -uget_current_dir_name -udifftime -upclose -ustrchr -usocketpair -udiv -umemchr -udup -uclnt_spcreateerror -ustrtoul -uunlinkat -ugethostname -usetpgid -utolower -uutimes -uvprintf -uusleep -uinet_ntoa -uiopl -umalloc -uchown -uiswcntrl -ugetpeername -u_nss_files_parse_spent -usetlogmask -unanosleep -ufchdir -ugetpid -ugetsockname -ugetcwd -u__getdelim -ukillpg -ustrcat -uputenv -uxdr_int -uaccept4 -usymlinkat -uumask -ugetgrnam_r -ustrcasecmp -uftello64 -uclnttcp_create -ufdopendir -ufree -urealpath -uif_indextoname -uclearenv -uvfork -umbstowcs -ustrdup -uepoll_wait -uxdr_enum -uepoll_create1 -uendmntent -uraise -uinet_pton -u__vsprintf_chk -u__vfprintf_chk -ubind -uuname -umktime -umblen -utdestroy -uglob -ufread -uinet_ntop -usignal -ustrncpy -urenameat -ukill -uopenat -udup2 -ufputs_unlocked -uclearerr -umbrtowc -ustrlen -uenviron -usend -ureadlink -ucfsetispeed -uwcschr -uclntudp_create -ugetprotobyname -usetrlimit64 -uutime -ulockf -utimegm -utowlower -u__memmove_chk -umunmap -ufopen -ustrspn -ugai_strerror -usystem -u__fxstat64 -ufseeko -ustrptime -uwmemmove -uclnt_sperror -uvfprintf -uftruncate -umount -usetitimer -urandom -upoll -udelete_module -ugethostbyname -uinotify_init1 -u__snprintf_chk -utsearch -uregerror -usetuid -uiswpunct -uoptopt -ucloselog -ugetopt_long_only -umemmove -ualarm -umkdirat -u__cxa_atexit -ufeof -uoptind -u__syslog_chk -uinitgroups -uprctl -u__ctype_get_mb_cur_max -usigaddset -uctime -uioctl -u__fcntl -usendto -u__memset_chk -usnprintf -u__overflow -ugetgrnam -umlock -ufreeaddrinfo -u__strtoul_internal -ugetpwent -usethostname -ugetc_unlocked -u__vasprintf_chk -ugnu_dev_makedev -u__cxa_finalize -o ./tmp/netboot/tree/lib/libc.so.6-so /usr/lib/x86_64-linux-gnu/libc_pic/soinit.o /usr/lib/x86_64-linux-gnu//libc_pic.a /usr/lib/x86_64-linux-gnu/libc_pic/sofini.o -Wl,--version-script=/usr/lib/x86_64-linux-gnu//libc_pic.map -lgcc -L./tmp/netboot/tree/lib -L./tmp/netboot/tree/usr/lib -L./tmp/netboot/tree/usr/lib/x86_64-linux-gnu -L./tmp/netboot/udeblibs -L./tmp/netboot/tree/usr/lib/cdebconf/frontend -L/lib/x86_64-linux-gnu/ -L/lib/ -L/usr/lib/x86_64-linux-gnu/ -L/usr/lib/ -L/usr/X11R6/lib/x86_64-linux-gnu/ -L/usr/X11R6/lib/ -L./tmp/netboot/tree//usr/lib/cdebconf /lib/x86_64-linux-gnu//ld-linux-x86-64.so.2 With output: make[2]: *** [stamps/tree-netboot-stamp] Error 1 make[1]: *** [_build] Error 2 make: *** [build_netboot] Error 2 -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/cao1ixzlmd37fs21cbhrepz27n_gkdbeh9pwi0oeiprfn+y0...@mail.gmail.com

