/usr/bin/ld: cannot find -lc compilando tsocks

El problema se soluciona instalando el paquete glibc-static.

Antes:

[root@maquina tsocks-1.8]$ make
gcc -fPIC  -g -O2 -Wall -I. -static -o saveme saveme.c
/usr/bin/ld: cannot find -lc
collect2: ld devolvió el estado de salida 1
make: *** [saveme] Error 1

Despues:

[root@maquina tsocks-1.8]# make
gcc -fPIC  -g -O2 -Wall -I. -static -o saveme saveme.c
gcc -fPIC  -g -O2 -Wall -I. -o inspectsocks inspectsocks.c common.o -lc
gcc -fPIC  -g -O2 -Wall -I. -o validateconf validateconf.c common.o parser.o -l

VN:F [1.9.1_1087]
Rating: 6.5/10 (2 votes cast)
VN:F [1.9.1_1087]
Rating: 0 (from 0 votes)
/usr/bin/ld: cannot find -lc compilando tsocks, 6.5 out of 10 based on 2 ratings

Tags:

Leave a Reply