You are not logged in.

#1 2005-12-12 14:55:58

bogus
Member
Registered: 2004-09-13
Posts: 9

make failed with ld error... [SOLVED]

hello!

I try to upgrade kchmviewer to version 1.3, but make failed with ld error:

/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status

But libXext.so is here!

$ locate Xext
/usr/X11R6/lib/libXext.so
/usr/X11R6/lib/libXext.so.6.4
/usr/X11R6/lib/libXext.a
/usr/X11R6/lib/libXext.so.6
/usr/X11R6/include/X11/extensions/panoramiXext.h
/usr/X11R6/include/X11/extensions/Xext.h

$ cat /etc/ld.so.conf
#
# /etc/ld.so.conf
#

/usr/X11R6/lib
/opt/gnome/lib
/opt/qt/lib
/opt/xfce4/lib
#/usr/lib/oracle/10.1.0.2/client/lib
/opt/mono/lib
/opt/mozilla/lib/firefox

So I'm alittle confused... Why ld can't find it?

Offline

#2 2005-12-12 16:39:50

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

Re: make failed with ld error... [SOLVED]

/etc/ld.so.conf is not used for compiling stuff.  Probably the configure script has an option where you can specify the lib's location.

Offline

#3 2005-12-12 17:03:00

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: make failed with ld error... [SOLVED]

try

CFLAGS="$CFLAGS -L/usr/X11R6/lib" make

Offline

#4 2005-12-12 21:26:42

bogus
Member
Registered: 2004-09-13
Posts: 9

Re: make failed with ld error... [SOLVED]

Thanks a lot guys!
You helps me to find some way! I danced a newby jig around Makefile and now kchmviewer updated.

/* Hope, PKGBUILD is alright smile */

Offline

Board footer

Powered by FluxBB