-   Linux From Scratch (
-   -   Compiling Nitrogen: undefined reference to symbol (

Lennie 11-27-2012 12:30 PM

Compiling Nitrogen: undefined reference to symbol
I'm trying to install Nitrogen, but I got this error.

g++    -o nitrogen main.o SetBG.o Thumbview.o Config.o NWindow.o md5.o ArgParser.o ImageCombo.o Inotify.o Util.o NPrefsWindow.o  -lglib-2.0  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0  -lgtkmm-2.4 -latkmm-1.6 -lgdkmm-2.4 -lgiomm-2.4 -lpangomm-1.4 -lgtk-x11-2.0 -lglibmm-2.4 -lcairomm-1.0 -lsigc-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0  -pthread -lgthread-2.0 -lrt -lglib-2.0  -lXinerama
/usr/bin/ld: SetBG.o: undefined reference to symbol 'XSetCloseDownMode'
/usr/bin/ld: note: 'XSetCloseDownMode' is defined in DSO /usr/lib/../lib64/ so try adding it to the linker command line
/usr/lib/../lib64/ could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status

I tried to google it, and found some similar errors but for other packages. Their solutions was to add something to the make command, or to edit the Makefile, but I don't understand from it what I should do with this package.

knudfl 11-27-2012 01:00 PM

Ref. the file nitrogen.spec from nitrogen-1.5.2-3.fc17.src.rpm :


make LDFLAGS="-lX11"

I made a test compile on Fedora 17 - 64 :
Similar errors as above with 'make'. No errors with 'make LDFLAGS="-lX11" '.


Lennie 11-27-2012 01:06 PM

Thanks. Problem solved.

All times are GMT -5. The time now is 03:17 AM.