Subject: port-i386/7927: usr.bin/ldd/ldd_elf does not compile on NetBSD/i386
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 07/05/1999 23:35:42
>Number:         7927
>Category:       port-i386
>Synopsis:       usr.bin/ldd/ldd_elf does not compile on NetBSD/i386
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer (NetBSD/i386 Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul  5 23:35:00 1999
>Last-Modified:
>Originator:     Jun-ichiro itojun Hagino
>Organization:
	itojun.org
>Release:        NetBSD-curent from cvs repo, on Mon Jul  5 23:31:15 PDT 1999
>Environment:
System: NetBSD guava.itojun.org 1.4 NetBSD 1.4 (GUAVA.v6) #5: Sat Jul 3 21:10:00 PDT 1999 itojun@guava.itojun.org:/usr/home/itojun/hyd/sys/arch/i386/compile/GUAVA.v6 i386

>Description:
	I performed ELF upgrade yesterday, and now make build fails.
	It looks that there's no prototype found for _rtld_add_paths.
	Is my tree is out of sync?
>How-To-Repeat:
all ===> ldd_elf
cc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror   -DELFSIZE=32 -I/usr/home/itojun/NetBSD2/src/usr.bin/ldd/ldd_elf/../../../libexec/ld.elf_so -DLIBDIR=\"/usr/lib\" -c /usr/home/itojun/NetBSD2/src/usr.bin/ldd/ldd_elf/ldd.c
cc1: warnings being treated as errors
/usr/home/itojun/NetBSD2/src/usr.bin/ldd/ldd_elf/ldd.c: In function `main':
/usr/home/itojun/NetBSD2/src/usr.bin/ldd/ldd_elf/ldd.c:74: warning: implicit declaration of function `_rtld_add_paths'
/usr/home/itojun/NetBSD2/src/usr.bin/ldd/ldd_elf/ldd.c:74: `RTLD_DEFAULT_LIBRARY_PATH' undeclared (first use in this function)
/usr/home/itojun/NetBSD2/src/usr.bin/ldd/ldd_elf/ldd.c:74: (Each undeclared identifier is reported only once
/usr/home/itojun/NetBSD2/src/usr.bin/ldd/ldd_elf/ldd.c:74: for each function it appears in.)
/usr/home/itojun/NetBSD2/src/usr.bin/ldd/ldd_elf/ldd.c:89: warning: implicit declaration of function `_rtld_map_object'
/usr/home/itojun/NetBSD2/src/usr.bin/ldd/ldd_elf/ldd.c:89: warning: assignment makes pointer from integer without a cast
/usr/home/itojun/NetBSD2/src/usr.bin/ldd/ldd_elf/ldd.c:98: warning: implicit declaration of function `_rtld_digest_dynamic'
/usr/home/itojun/NetBSD2/src/usr.bin/ldd/ldd_elf/ldd.c:105: warning: implicit declaration of function `_rtld_load_needed_objects'
/usr/home/itojun/NetBSD2/src/usr.bin/ldd/ldd_elf/ldd.c: At top level:
/usr/home/itojun/NetBSD2/src/usr.bin/ldd/ldd_elf/ldd.c:143: warning: no previous prototype for `_rtld_error'
*** Error code 1

Stop.
*** Error code 1

Stop.
>Fix:
	sorry I don't have one.
>Audit-Trail:
>Unformatted: