ld cannot find [files]

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

ld cannot find [files]

Post#1 by Rava » 02 Mar 2015, 12:58

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
Cheers!
Yours Rava

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: ld cannot find [files]

Post#2 by fanthom » 02 Mar 2015, 21:48

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.
Please add [Solved] to your thread title if the solution was found.

Post Reply