problem linking libXext.so on 64-bit linux

lawrence
Posts: 1
Joined: Thu Dec 11, 2008 7:58 pm

problem linking libXext.so on 64-bit linux

Post by lawrence »

hello:
when building on redhat4/5, there is a problem trying to link libXext.so. the -L/usr/X11R6/lib flag is on the link line, but it should be -L/usr/X11R6/lib64. to get around this, i've been adding:
LDFLAGS="$LDFLAGS -L/usr/X11R6/lib64"
to the configure.ac file. anyway, it would be great if this could get fixed. thanks!
User avatar
John McCutchan
Posts: 133
Joined: Wed Jul 27, 2005 1:05 pm
Location: Berkeley, CA

Re: problem linking libXext.so on 64-bit linux

Post by John McCutchan »

Hi Lawrence,

Thanks for the feedback. The problem is actually in your system linker configuration and not the Bullet build scripts. The path to the common X libraries should be in your ld path. Please see: /etc/ld.so.conf. But, specifying LD_FLAGS= before running ./configure is a completely proper thing to do when your system doesn't have libraries installed in default locations (especially if you don't want to modify the system defaults found in /etc/ld.so.conf.)

Also, assuming you're referring to Red Hat Enterprise Linux (and not Red Hat pre-Fedora,) it appears you're running a very old distribution of Linux. The X libraries have been installed in /usr/lib or /usr/lib64 for probably the last two years. I would recommend running a more recent distribution release.

John