Jump to content
Eternal Lands Official Forums
Torg

Debian Compilation Problem

Recommended Posts

This isn't a problem any more, but something to keep in mind, and possible add to the official Makefile...

 

Apparently the latest version of GNU binutils-gold has changed the default options to include the --no-add-needed flag to the linker. This means that libs, required by libs provided to the linker, are not implicitly specified and hence it fails to link.

 

I needed to explicitly add -lstd++ and -lX11 to LDFLAGS to compile the current git client. Given these libs are required and are usually implicitly included, it wouldn't hurt to explicitly list them in the LDFLAGS list and might help with those on Debian/Ubuntu distros.

Share this post


Link to post
Share on other sites

Just FYI:

the same is true now for OpenSuse (12.1), and probably also for Fedora (from what Google results I got).

 

For me, adding "EXTRALIBS=lstdc++ lX11" in make.default/make.conf worked, there might be a better place to add these.

Share this post


Link to post
Share on other sites

I was getting

 LINK el.x86.linux.bin
/usr/bin/ld: paste.o: undefined reference to symbol 'XInternAtom'
/usr/bin/ld: note: 'XInternAtom' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [el.x86.linux.bin] Error 1

adding EXTRA_LIBS=-lstdc++ -lX11

to make.defaults fixed it.

Edited by hussam

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×