You are not logged in.

#1 2006-03-12 23:30:49

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 617
Website

ld is messed up! [solved]

I have making pkgbuilds for gpe, a de for pdas. Most of the stuff that i have built so far is installed in /opt/gpe. I added /opt/gpe/lib to my ld.so.conf and ran ldconfig. But sometimes when i try to build things that link against the libs in /opt/gpe/lib i get ld errors.

cc -o gpe-irc main.o irc.o irc_input.o dictionary.o general_config.o general_config_sql.o networks_config.o networks_config_sql.o irc_parse.o ctcp.o  -lgpewidget -lsqlite
/usr/bin/ld: cannot find -lgpewidget
collect2: ld returned 1 exit status
make: *** [gpe-irc] Error 1
ls -al /opt/gpe/lib/libgpewidget.*
-rw-r--r--  1 root root 132270 2006-03-11 23:40 /opt/gpe/lib/libgpewidget.a
-rwxr-xr-x  1 root root    981 2006-03-11 23:40 /opt/gpe/lib/libgpewidget.la
lrwxrwxrwx  1 root root     21 2006-03-11 23:40 /opt/gpe/lib/libgpewidget.so -> libgpewidget.so.1.0.0
lrwxrwxrwx  1 root root     21 2006-03-11 23:40 /opt/gpe/lib/libgpewidget.so.1 -> libgpewidget.so.1.0.0
-rwxr-xr-x  1 root root 120428 2006-03-11 23:40 /opt/gpe/lib/libgpewidget.so.1.0.0

anyone know how to fix this?

Offline

#2 2006-03-13 13:18:15

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: ld is messed up! [solved]

So how did you fix this? I remember getting the "ld returned 1 exit status" a LOT when I was building packages for Arch i586. When it happened, I got totally stuck and I couldn't build the package. sad


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#3 2006-03-13 19:31:19

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: ld is messed up! [solved]

The actual error is:
/usr/bin/ld: cannot find -lgpewidget
I assume syamajala added -L/opt/gpe/lib to his compile line so that ld can find the lib.

Offline

#4 2006-03-15 08:39:01

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: ld is messed up! [solved]

Oh, now I get the error message. Thx, Snowman.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

Board footer

Powered by FluxBB