Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling on OpenSUSE 12.1 (x86_64) #12

Closed
jansendotsh opened this issue Mar 22, 2012 · 3 comments
Closed

Compiling on OpenSUSE 12.1 (x86_64) #12

jansendotsh opened this issue Mar 22, 2012 · 3 comments

Comments

@jansendotsh
Copy link

Succesful in ./configure although upon trying to make, this happens:

make all-recursive
make[1]: Entering directory /home/garrett/abs/nitrogen-1.5.2' Making all in po make[2]: Entering directory/home/garrett/abs/nitrogen-1.5.2/po'
make[2]: Nothing to be done for all'. make[2]: Leaving directory/home/garrett/abs/nitrogen-1.5.2/po'
Making all in src
make[2]: Entering directory /home/garrett/abs/nitrogen-1.5.2/src' g++ -g -O2 -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 -pthread -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 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -pthread -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 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -pthread -lgthread-2.0 -lrt -lglib-2.0 -lXinerama /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: SetBG.o: undefined reference to symbol 'XFreeStringList' /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: note: 'XFreeStringList' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line /usr/lib64/libX11.so.6: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[2]: *** [nitrogen] Error 1 make[2]: Leaving directory/home/garrett/abs/nitrogen-1.5.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/garrett/abs/nitrogen-1.5.2'

make: *** [all] Error 2

@jaypikay
Copy link
Contributor

have you tried something like this to configure?

LIBS=-lX11 GTK2_LIBS=$LIBS LDFLAGS=-L/usr/lib ./configure

during linking gtk2 libX11 is missing

@daf daf closed this as completed in 30b50d1 Mar 29, 2012
@daf
Copy link
Member

daf commented Mar 29, 2012

@garrettjjjj Hi, can you try this commit (latest master) out and see if it resolves this issue? It's a bit bizarre to me, and I certainly don't get it here, but searching for your error indicates others (automated build systems maybe) have encountered it with Nitrogen. I explicitly now check for X11 to link to, but I hope this isn't a never-ending race.

@jaypikay Thanks for the suggestion, you gave me a hint as how to crack this one. Your solution probably would not have worked because of my cobbled together autotools stuff defining NITROGEN_LIBS instead of just using the (likely standard) LIBS. I claim ignorance!

@jaypikay
Copy link
Contributor

This was the way I worked around the problem on Arch Linux. IMHO autotools became too complicated. This is why I switched to cmake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants