On Sat, Mar 06, 2004, Ralf S. Engelschall wrote:

Well, i had problems to build xinetd under Solaris.

> > I never wanted to replace the native inetd,
> > so i never tried it. And i can not try it currently, because there the make
> > aborts (under Solaris 8/x86) with
> >
> > ld: fatal: file ../libs/lib/libportable.a: unknown file type
> > ld: fatal: library -lportable: not found
> > ld: fatal: File processing errors. No output written to xinetd
> > collect2: ld returned 1 exit status
> > /opkg/home/bin/gcc -O2 -pipe  -I../libs/include  ./itox.c -o itox -L../libs/lib 
> > -lsio -lmisc -lxlog -lportable -lstr -lpset -lm -lkstat -lresolv -lsocket -lnsl
> > ld: fatal: file ../libs/lib/libportable.a: unknown file type
> > ld: fatal: library -lportable: not found
> > ld: fatal: File processing errors. No output written to itox
> > collect2: ld returned 1 exit status
> > make[1]: *** [itox] Error 1
> > make: *** [makeprog] Error 2
> > error: Bad exit status from /projects/tmp/opkg/rpm-tmp.1098 (%build)
> >
> > and i have no time to look into it. Perhaps this evening...
> 
> Ah, perhaps a parallel build issue: try "%{l_mflags}" if we have
> "%{l_mflags -O}" in the package...


The problem was that i had GNU binutils installed and the GNU "ar" was
used. The native Solaris linker seems to have problems with this (i use
gcc::with_binutils=no).


There was a second problem, this time with amanda:

Undefined                       first referenced
 symbol                             in file
gethostbyname                       ../common-src/.libs/libamanda.a(dgram.o)  (s
ymbol belongs to implicit dependency /usr/lib/libnsl.so.1)
gethostbyaddr                       ../common-src/.libs/libamanda.a(security.o) 
 (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
inet_ntoa                           amandad.o  (symbol belongs to implicit depen
dency /usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to amandad
collect2: ld returned 1 exit status
make[1]: *** [amandad] Error 1


Cause was a missing -lnsl. Maybe this is also linker dependent. I'll
try to find out, what the best solution is.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
  >> Im pr�motorischen Cortex kann jeder ein Held sein. (bdw) <<
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to