[solaris] library -lc: not found

Laurent Bercot ska-dietlibc at skarnet.org
Sun Nov 6 21:27:09 WST 2011


> $ 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

 As Matt said, you cannot make static programs on Solaris.
 Solaris does not ship with a libc.a, only a libc.so.

 This would be an excellent reason to change operating systems and
use something less braindead and obsolete.

 But if you're hell-bent on using Solaris, just remove the STATIC=1
part of your command line and dropbear should compile without trouble,
it will simply use dynamic libraries.

-- 
 Laurent


More information about the Dropbear mailing list