Summary: make: ld: fatal: library -lnsl: not found - Oracle 8.1.6

From: Mark King <mark.king_at_akqa.com>
Date: Tue Jun 12 2001 - 09:31:34 EDT
Many thanks to Casper Dik for resolving this for me:

The compile is attempting to link in all the 64-bit libraries for Oracle,
as was executed on the primary machine that the server in question is
attempting to replicate.

However the isainfo -kv command shows that the original server has a 64-bit
kernel:
	64-bit sparcv9 kernel modules

Whereas the problematic machine has a 32-bit kernel:
	32-bit sparc kernel modules

(The servers were supposed to be configured identically).

cheers,
  Mark

> -----Original Message-----
> From: sunmanagers-admin@sunmanagers.org
> [mailto:sunmanagers-admin@sunmanagers.org]On Behalf Of Mark King
> Sent: 12 June 2001 09:39
> To: SunManagers. org (E-mail)
> Subject: make: ld: fatal: library -lnsl: not found - Oracle 8.1.6
>
>
>
>
> I am having problems compiling tnslsnr for ORacle 8.1.6 on a
> Solaris 8,
> 220R.
>
> I have expanded the makefile to the following code (dirty.sh)
> - and I'm just
> executing this now:
>
>
> dirty.sh
>         ld -L/usr/lib/ \
>            -L/usr/oracle/mount01/app/oracle/product/8.1.6/lib64/ \
>
> -L/usr/oracle/mount01/app/oracle/product/8.1.6/rdbms/lib64/ \
>
> -L/usr/oracle/mount01/app/oracle/product/8.1.6/network/lib64/ \
>           -dy
> /usr/oracle/mount01/app/oracle/product/8.1.6/lib64/SC5.0/crti.o \
>
> /usr/oracle/mount01/app/oracle/product/8.1.6/lib64/SC5.0/crt1.o\
>
> /usr/oracle/mount01/app/oracle/product/8.1.6/lib64/SC5.0/crtn.o \
>            -L/usr/lib/ \
>            -L/usr/oracle/mount01/app/oracle/product/8.1.6/lib64/ \
>
> -L/usr/oracle/mount01/app/oracle/product/8.1.6/rdbms/lib64/ \
>
> -L/usr/oracle/mount01/app/oracle/product/8.1.6/network/lib64/ \
>            -L/opt/SUNWcluster/lib \
>            -R /opt/SUNWcluster/lib \
>            -o tnslsnr \
>
> /usr/oracle/mount01/app/oracle/product/8.1.6/network/lib64/s0nsgl.o \
>
> /usr/oracle/mount01/app/oracle/product/8.1.6/network/lib64/snsglp.o  \
>            -lclntsh  \
>            `cat
> /usr/oracle/mount01/app/oracle/product/8.1.6/lib64/ldflags`
> \
>            -lnsgr8 -lnzjs8 -ln8 -lnl8 -lnro8 \
>            `cat
> /usr/oracle/mount01/app/oracle/product/8.1.6/lib64/ldflags`
> \
>            -lnsgr8 -lnzjs8 -ln8 -lnl8 -lclient8 -lvsn8 -lwtc8
> -lcommon8 -lge
> neric8 -lwtc8 \
>            -lmm -lnls8  -lcore8 -lnls8 -lcore8  -lnls8 \
>            `cat
> /usr/oracle/mount01/app/oracle/product/8.1.6/lib64/ldflags`\
>            -lnsgr8 -lnzjs8 -ln8 -lnl8 -lnro8 \
>            `cat
> /usr/oracle/mount01/app/oracle/product/8.1.6/lib64/ldflags`
> \
>            -lnsgr8 -lnzjs8 -ln8 -lnl8 -lclient8  -lvsn8
> -lwtc8 -lcommon8 -lg
> eneric8\
>            -ltrace8 -lnls8  -lcore8 -lnls8 -lcore8  -lnls8
> -lclient8  -lvsn
> 8 -lwtc8 -lcommon8\
>            -lgeneric8 -lnls8  -lcore8 -lnls8 -lcore8  -lnls8   \
>           `cat
> /usr/oracle/mount01/app/oracle/product/8.1.6/lib64/sysliblist` \
>           -R/usr/oracle/mount01/app/oracle/product/8.1.6/lib64 \
>           -laio    -lm  -lnonc8 -lnl8     -ln8  -lnlsnr8
> -lnlsnrc8 -lnsgr8
> -lnmd\
>           -lnms  -lncm8 -lnmsp -lpeer  -lnro8 -ln8   -ltrace8
> -lnl8  -lnonc8
> \
>           -lnlsnr8 -lnlsnrc8  -lnmd -lnms -lncm8 -lnmsp  -ln8       \
>           -lpeer \
>           -R
> /opt/SUNWcluster/lib:/usr/oracle/mount01/app/oracle/product/8.
> 1.6/lib \
>           -Y
> P,:/opt/SUNWcluster/lib:/usr/ccs/lib/sparcv9:/usr/lib/sparcv9 \
>           -Qy -lc -laio
>
> *** Note:
>            cat
> /usr/oracle/mount01/app/oracle/product/8.1.6/lib64/ldflags:
> 		-lnbeq8 -lnhost8 -lnus8 -lnldap8 -lldapclnt8
> -lnsslb8   -ln8 -lncrypt8  -
> ln8 -lncrypt8   -lnoname8 -lntcp8 -lntcps8 -lnsslb8 -lnent8
> -lntcp8 -lntns8
>
> 		cat
> /usr/oracle/mount01/app/oracle/product/8.1.6/lib64/sysliblist:
> 		-lnsl -lsocket -lgen -ldl -lposix4
>
> ./dirty.sh:
> bash-2.03$ ./dirty.sh
> ld: fatal: library -lclntsh: not found
> ld: fatal: library -lnsl: not found
> ld: fatal: library -lsocket: not found
> ld: fatal: library -lgen: not found
> ld: fatal: library -ldl: not found
> ld: fatal: library -lposix4: not found
> ld: fatal: library -laio: not found
> ld: fatal: library -lm: not found
> ld: fatal: library -lc: not found
> ld: fatal: library -laio: not found
> ld: fatal: File processing errors. No output written to tnslsnr
>
> file  /usr/oracle/mount01/app/oracle/product/8.1.6/lib/libclntsh.so
> libclntsh.so:   ELF 32-bit MSB dynamic lib SPARC Version 1,
> dynamically
> linked, not stripped
>
> I have even run the script with the -lclntsh.so preceded with a:
> 	-L/usr/oracle/mount01/app/oracle/product/8.1.6/lib
>
> Yet it still fails to find the library.
>
> I might just be missing something really obvious here - and
> doing something
> stupid.
>
> Many thanks to the following for their initial replies and
> suggestions to my
> first posting:
> 	David Evans
> 	Paul Wilkinson
> 	David Foster
> 	Davied Meissner
> 	Martin Carpenter
> 	Hindley Nick
>
>
> thanks again to all,
> regards,
>    Mark
>
> > -----Original Message-----
> > From: sunmanagers-admin@sunmanagers.org
> > [mailto:sunmanagers-admin@sunmanagers.org]On Behalf Of Mark King
> > Sent: 07 June 2001 11:14
> > To: Sun Managers Mailing List (E-mail)
> > Subject: make: Fatal error: Command failed for target
> > `tnslsnr' - Oracle
> > 8.1.6
> >
> >
> >
> >
> >
> > Install of Oracle 8.1.6 fails, during linking stage at about
> > 74%, on a E
> > 220R, running Solaris 8.
> >
> > Libraries which fail are (make.log) :-
> > *******************************************
> > ld: fatal: library -lclntsh: not found
> > ld: fatal: library -lnsl: not found
> > ld: fatal: library -lsocket: not found
> > ld: fatal: library -lgen: not found
> > ld: fatal: library -ldl: not found
> > ld: fatal: library -lposix4: not found
> > ld: fatal: library -laio: not found
> > ld: fatal: library -lm: not found
> > ld: fatal: library -lc: not found
> > ld: fatal: library -laio: not found
> > ld: fatal: File processing errors. No output written to tnslsnr
> > *** Error code 1
> > make: Fatal error: Command failed for target `tnslsnr'
> > *******************************************
> >
> > LD_LIBRARY_PATH has been set to include /usr/lib and
> $ORACLE_HOME/lib
> > It has also been unset before installation and the problem is
> > repeated.
> >
> > make command that is executed is :-
> > /usr/ccs/bin/make -f ins_net_server.mk install
> > ORACLE_HOME=/usr/oracle/mount01/app/oracle/product/8.1.6
> >
> > This can be run from the command line to recreate the same
> > "library not
> > found" error.
> > /usr/local/bin/make produces the same output.
> >
> > Various google groups have commented on permissions, swap
> > space, memory
> > space issues which might cause such errors, none of which
> have helped.
> >
> > Does anyone out there know what might be happening ?
> >
> > Cheers
> >  Mark
> >
> > _______________________________________________
> > sunmanagers mailing list
> > sunmanagers@sunmanagers.org
> > http://www.sunmanagers.org/mailman/listinfo/sunmanagers
> >
>
> _______________________________________________
> sunmanagers mailing list
> sunmanagers@sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers
>
Received on Tue Jun 12 14:31:34 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:24:56 EDT