Page 1 of 1

ld cannot find [files]

Posted: 02 Mar 2015, 12:58
by Rava
trying to compile some c source, ld gave me some errors. Searching them seems to be issues dating back at least to 2004, all with missing files.

Here the errors:

Code: Select all

# 1st gcc run:/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: cannot find -lgcc_eh
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: cannot find -lpthread
collect2: error: ld returned 1 exit status

# 2nd gcc run:
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: cannot find -lgcc_eh
collect2: error: ld returned 1 exit status

# 3rd gcc run:
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: cannot find -lgcc_eh
collect2: error: ld returned 1 exit status
The program I tried compiling is unhide-20121229

The gcc lines that created the errors are from its README.TXT and are these:

Code: Select all

gcc -Wall -O2 --static -pthread unhide-linux*.c unhide-output.c -o unhide-linux

gcc -Wall -O2 --static unhide_rb.c -o unhide_rb

gcc -Wall -O2 --static unhide-tcp.c unhide-tcp-fast.c unhide-output.c -o unhide-tcp

Re: ld cannot find [files]

Posted: 02 Mar 2015, 21:48
by fanthom
hi Rava,

static libs are dropped from Porteus. please install full 'gcc' package from slackware and you should be able to compile this app without problems.