[solaris] library -lc: not found
matt at ucc.asn.au
Sun Nov 6 14:20:13 WST 2011
I think you cannot build static programs on Solaris. From the
Note: Many system libraries, such as libc, are only
available as dynamic libraries in the Solaris 64-bit
compilation environment. Therefore, do not use -Bstatic
as the last toggle on the command line.
I guess it's similar to Linux except glibc will link then fail at runtime :)
Antony mentioned needing the realtime library for nanosleep,
but to me it looks like it's in the main libc on Solaris 11.
Did you need to change that?
On Sat, Nov 05, 2011 at 06:01:13PM +0100, phocean wrote:
> Hi all,
> I am trying to compile scp on Solaris 11.
> So far I faced the same issue as Antony with u_int64_t, but the
> workaround was easy.
> Now it fails like this :
> $ make PROGRAMS="scp" STATIC=1
> gcc -L/usr/local/lib -R/usr/local/lib -static -o scp scp.o
> progressmeter.o atomicio.o scpmisc.o compat.o
> ld: fatal: library -lc: not found
> ld: fatal: file processing errors. No output written to scp
> collect2: ld returned 1 exit status
> make: *** [scp] Erreur 1
> Obviously /usr/lib is not the correct path, but what is this library it
> is complaining about?
> I tried in vain to adjust this path to /usr/lib and /lib.
> Any idea?
> Sadly I know little about Solaris and programming stuff...
> Thank you in advance,
> Best regards,
More information about the Dropbear