Subject: pkg/23032: net/ORBit not building under Linux
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 10/01/2003 13:33:25
>Number:         23032
>Category:       pkg
>Synopsis:       net/ORBit not building under Linux
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 01 20:34:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6.1_STABLE
>Organization:
http://bsd.reedmedia.net/
>Environment:
>Description:
Building net/ORBit under Linux with glibc-2.3.2,
libtool-base-1.4.20010614nb14, and gcc3-c-3.3.1 with fails.

It ends with:

make[4]: Entering directory `/tmp/pkgsrc/net/ORBit/work.puget/ORBit-0.5.15/src/daemons/interface_repository'
/bin/sh ../../../libtool --mode=link cc  -O2 -I/usr/include -L/usr/lib -Wl,-R/usr/lib -o orbit-ird -static interface_repository-skels.o interface_repository-impl.o ../../../src/orb/libORBit.la        ../../../src/IIOP/libIIOP.la    ../../../src/ORBitutil/libORBitutil.la  -L/usr/lib -Wl,-R/usr/lib -lglib        -lm -lwrap -lintl

cc -O2 -I/tmp/pkgsrc/net/ORBit/work.puget/.buildlink/include -Wl,-R/usr/lib -o orbit-ird interface_repository-skels.o interface_repository-impl.o -Wl,-R/usr/lib  -L/tmp/pkgsrc/net/ORBit/work.puget/.buildlink/lib ../../../src/orb/.libs/libORBit.a ../../../src/IIOP/.libs/libIIOP.a /usr/lib/libpthread.a ../../../src/ORBitutil/.libs/libORBitutil.a /usr/lib/libglib.a -lm /usr/lib/libwrap.a /usr/lib/libintl.a -lc

/tmp/pkgsrc/net/ORBit/work.puget/.buildlink/lib/libwrap.a(percent_m.o)(.text+0x3b): In function `percent_m':
: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/tmp/pkgsrc/net/ORBit/work.puget/.buildlink/lib/libwrap.a(percent_m.o)(.text+0x2b): In function `percent_m':
: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
/tmp/pkgsrc/net/ORBit/work.puget/.buildlink/lib/libpthread.a(ptw-write.o)(.text+0x25): In function `__libc_write':
__libc_write: undefined reference to `__syscall_error'
/tmp/pkgsrc/net/ORBit/work.puget/.buildlink/lib/libpthread.a(ptw-write.o)(.text+0x55):__libc_write: undefined reference to `__syscall_error'
/tmp/pkgsrc/net/ORBit/work.puget/.buildlink/lib/libpthread.a(ptw-read.o)(.text+0x25): In function `__libc_read':
__libc_read: undefined reference to `__syscall_error'
/tmp/pkgsrc/net/ORBit/work.puget/.buildlink/lib/libpthread.a(ptw-read.o)(.text+0x55):__libc_read: undefined reference to `__syscall_error'
/tmp/pkgsrc/net/ORBit/work.puget/.buildlink/lib/libpthread.a(ptw-close.o)(.text+0x1f): In function `__libc_close':
__libc_close: undefined reference to `__syscall_error'
/tmp/pkgsrc/net/ORBit/work.puget/.buildlink/lib/libpthread.a(ptw-close.o)(.text+0x4a):__libc_close: more undefined references to `__syscall_error' follow
/tmp/pkgsrc/net/ORBit/work.puget/.buildlink/lib/libpthread.a(pthread.o)(.text+0x6f): In function `__pthread_initialize_minimal':
/home/reed/glibc-2.3.2/linuxthreads/pthread.c:401: undefined reference to `_dl_cpuclock_offset'
/tmp/pkgsrc/net/ORBit/work.puget/.buildlink/lib/libpthread.a(pthread.o)(.text+0x75):/home/reed/glibc-2.3.2/linuxthreads/pthread.c:401: undefined reference to `_dl_cpuclock_offset'
/tmp/pkgsrc/net/ORBit/work.puget/.buildlink/lib/libpthread.a(pthread.o)(.text+0x145): In function `pthread_initialize':
/home/reed/glibc-2.3.2/linuxthreads/pthread.c:506: undefined reference to `_res'
/tmp/pkgsrc/net/ORBit/work.puget/.buildlink/lib/libpthread.a(pthread.o)(.text+0x967): In function `__pthread_reset_main_thread':
/home/reed/glibc-2.3.2/linuxthreads/pthread.c:1070: undefined reference to `_errno'
/tmp/pkgsrc/net/ORBit/work.puget/.buildlink/lib/libpthread.a(pthread.o)(.text+0x977):/home/reed/glibc-2.3.2/linuxthreads/pthread.c:1071: undefined reference to `_h_errno'
/tmp/pkgsrc/net/ORBit/work.puget/.buildlink/lib/libpthread.a(pthread.o)(.text+0x981):/home/reed/glibc-2.3.2/linuxthreads/pthread.c:1072: undefined reference to `_res'


Note that building it without pkgsrc completes successfully.
(In fact, my workaround was to use pkgsrc to configure, then I manually
ran gmake in the WRKSRC directory, then I used pkgsrc to install.)

This is similar to problems I was having with openldap when I
(accidently) forced LIBS to use -ldb2 -lpthread -lrt.

I have tcp_wrappers-7.6.1nb1 installed.

I am using LOCALBASE as /usr. Please note I have built and used
ORBit several times under Linux with LOCALBASE as /usr in the past.
(For example, see my PR from March:  pkg/20969.)

I used gcc3 before, but now I am using a newer gcc and a newer glibc.

Also the configure output said:

checking "whether to use TCP wrappers"... yes
00000000 T setenv
*********************************************************
 You have a broken TCP wrappers library (setenv included)
 Please get the latest TCP wrappers package from your OS
 vendor, or recompile TCP wrappers to not include a
 setenv() implementation.

Not using TCP wrappers after all.
*********************************************************


Also, this package uses YACC in libIDL/Makefile, but
doesn't have a BUILD_DEPENDS for bison (or byacc) on non-NetBSD.

And libIDL/Makefile also uses LEX. Should have a BUILD_DEPENDS
for flex (on non-NetBSD too).

And it should check for indent and BUILD_DEPENDS for gindent as
needed.

>How-To-Repeat:
	<code/input/activities to reproduce the problem (multiple lines)>
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: