public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/631] New: --enable-static-nss breaks build
@ 2005-01-03  0:09 elkner at linofee dot org
  2005-03-26  9:47 ` [Bug libc/631] " striek at hotmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: elkner at linofee dot org @ 2005-01-03  0:09 UTC (permalink / raw)
  To: glibc-bugs

I'm trying to compile lib with static nss stuff, however, it does not work:

mkdir /export/scratch/build/glibc-2.3.4-20050102/objdir-static/sunrpc/rpcsvc
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x64):
undefined reference to `_nss_files_getaliasent_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x6c):
undefined reference to `_nss_files_endaliasent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x74):
undefined reference to `_nss_files_setaliasent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x7c):
undefined reference to `_nss_files_getaliasbyname_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x84):
undefined reference to `_nss_files_getetherent_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x8c):
undefined reference to `_nss_files_endetherent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x94):
undefined reference to `_nss_files_setetherent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x9c):
undefined reference to `_nss_files_getgrent_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0xa4):
undefined reference to `_nss_files_endgrent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0xac):
undefined reference to `_nss_files_setgrent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0xb4):
undefined reference to `_nss_files_getgrgid_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0xbc):
undefined reference to `_nss_files_getgrnam_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0xc4):
undefined reference to `_nss_files_gethostent_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0xcc):
undefined reference to `_nss_files_endhostent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0xd4):
undefined reference to `_nss_files_sethostent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0xdc):
undefined reference to `_nss_files_gethostbyaddr_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0xe4):
undefined reference to `_nss_files_gethostbyname_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0xec):
undefined reference to `_nss_files_gethostton_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0xf4):
undefined reference to `_nss_files_getntohost_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0xfc):
undefined reference to `_nss_dns_gethostbyaddr_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x104):
undefined reference to `_nss_dns_gethostbyname_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x10c):
undefined reference to `_nss_dns_gethostbyname2_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x114):
undefined reference to `_nss_files_getnetgrent_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x11c):
undefined reference to `_nss_files_endnetgrent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x124):
undefined reference to `_nss_files_setnetgrent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x12c):
undefined reference to `_nss_files_getnetent_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x134):
undefined reference to `_nss_files_endnetent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x13c):
undefined reference to `_nss_files_setnetent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x144):
undefined reference to `_nss_files_getnetbyname_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x14c):
undefined reference to `_nss_files_getnetbyaddr_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x154):
undefined reference to `_nss_dns_getnetbyname_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x15c):
undefined reference to `_nss_dns_getnetbyaddr_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x164):
undefined reference to `_nss_files_getprotoent_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x16c):
undefined reference to `_nss_files_endprotoent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x174):
undefined reference to `_nss_files_setprotoent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x17c):
undefined reference to `_nss_files_getprotobyname_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x184):
undefined reference to `_nss_files_getprotobynumber_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x18c):
undefined reference to `_nss_files_getpwent_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x194):
undefined reference to `_nss_files_endpwent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x19c):
undefined reference to `_nss_files_setpwent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x1a4):
undefined reference to `_nss_files_getpwnam_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x1ac):
undefined reference to `_nss_files_getpwuid_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x1b4):
undefined reference to `_nss_files_getrpcent_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x1bc):
undefined reference to `_nss_files_endrpcent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x1c4):
undefined reference to `_nss_files_setrpcent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x1cc):
undefined reference to `_nss_files_getrpcbyname_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x1d4):
undefined reference to `_nss_files_getrpcbynumber_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x1dc):
undefined reference to `_nss_files_getservent_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x1e4):
undefined reference to `_nss_files_endservent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x1ec):
undefined reference to `_nss_files_setservent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x1f4):
undefined reference to `_nss_files_getservbyname_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x1fc):
undefined reference to `_nss_files_getservbyport_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x204):
undefined reference to `_nss_files_getspent_r'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x20c):
undefined reference to `_nss_files_endspent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x214):
undefined reference to `_nss_files_setspent'
/export/scratch/build/glibc-2.3.4-20050102/objdir-static/libc.a(nsswitch.o)(.data+0x21c):
undefined reference to `_nss_files_getspnam_r'
collect2: ld returned 1 exit status
make[2]: ***
[/export/scratch/build/glibc-2.3.4-20050102/objdir-static/elf/ldconfig] Error 1
make[1]: *** [elf/others] Error 2
make: *** [all] Error 2

Env: gcc-3.4.1; binutils 2.15.94.0.2; Linux 2.6.9 i686; 
     glibc-2_3-branch 20050102 - vanilla (i.e. without any add. patches)
Build:
TARGET="i686-pc-linux-gnu"
OPTIMIZ="-g -O3 -march=i686"
KERNELVER=2.6.9
    CFLAGS="$OPTIMIZ" \
        ../configure \
        --prefix=/usr \
        --enable-add-ons=linuxthreads \
        --disable-profile \
        --enable-static-nss \
        --without-cvs \
        --enable-kernel=2.4.20 \
        --sysconfdir=/etc \
        --with-headers=${TMPBUILD}/../linux-${KERNELVER}/include \
        --with-gd=${ROOT4BUILD}/usr \
        --without-tls \
        --build $TARGET --host $TARGET

BTW: 
If I add the --disabled-shared flag to the config above, build breaks
even earlier:

mkdir /export/scratch/build/glibc-2.3.4-20050102/objdir-static/misc
make[2]: *** No rule to make target
`/export/scratch/build/glibc-2.3.4-20050102/objdir-static/misc/vm86.o', needed
by `/export/scratch/build/glibc-2.3.4-20050102/objdir-static/misc/stamp.o'.  Stop.
make[1]: *** [misc/subdir_lib] Error 2
make: *** [all] Error 2

Other warnings, which might be interesting:

../locale/programs/charmap-dir.c: In function `charmap_aliases':
../locale/programs/charmap-dir.c:268: warning: float format, pointer arg (arg
3)../locale/programs/charmap-dir.c:269: warning: float format, pointer arg (arg
3)programs/ld-monetary.c: In function `monetary_finish':
programs/ld-monetary.c:288: warning: comparison is always false due to limited
range of data type
programs/ld-monetary.c:288: warning: comparison is always false due to limited
range of data type
programs/ld-monetary.c:289: warning: comparison is always false due to limited
range of data type
programs/ld-monetary.c:289: warning: comparison is always false due to limited
range of data type
programs/charmap-dir.c: In function `charmap_aliases':
programs/charmap-dir.c:268: warning: float format, pointer arg (arg 3)
programs/charmap-dir.c:269: warning: float format, pointer arg (arg 3)

-- 
           Summary: --enable-static-nss breaks build
           Product: glibc
           Version: 2.3.4
            Status: NEW
          Severity: normal
          Priority: P3
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: elkner at linofee dot org
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://sources.redhat.com/bugzilla/show_bug.cgi?id=631

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <bug-631-131@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2014-05-28 19:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-03  0:09 [Bug libc/631] New: --enable-static-nss breaks build elkner at linofee dot org
2005-03-26  9:47 ` [Bug libc/631] " striek at hotmail dot com
2005-03-26 13:48 ` striek at hotmail dot com
2005-06-15 15:53 ` dank at kegel dot com
2005-06-15 15:56 ` dank at kegel dot com
2005-06-15 19:37 ` dank at kegel dot com
2005-06-20  3:27 ` web-sources dot redhat dot com at jankratochvil dot net
2005-06-20  7:46 ` web-sources dot redhat dot com at jankratochvil dot net
2005-07-03 10:42 ` web-sources dot redhat dot com at jankratochvil dot net
2005-07-19  3:45 ` roland at gnu dot org
     [not found] <bug-631-131@http.sourceware.org/bugzilla/>
2014-02-16 19:31 ` jackie.rosen at hushmail dot com
2014-05-28 19:46 ` schwab at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).