Torg Report post Posted November 24, 2011 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
revi Report post Posted December 7, 2011 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
hussam Report post Posted December 10, 2011 (edited) 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 December 10, 2011 by hussam Share this post Link to post Share on other sites