LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices



Reply
 
Search this Thread
Old 11-27-2012, 01:30 PM   #1
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 302

Rep: Reputation: 61
Compiling Nitrogen: undefined reference to symbol


I'm trying to install Nitrogen, but I got this error.
Code:
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/libX11.so.6 so try adding it to the linker command line
/usr/lib/../lib64/libX11.so.6: 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.
 
Old 11-27-2012, 02:00 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,282

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

Code:
make LDFLAGS="-lX11"

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

.

Last edited by knudfl; 11-27-2012 at 02:01 PM.
 
2 members found this post helpful.
Old 11-27-2012, 02:06 PM   #3
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 302

Original Poster
Rep: Reputation: 61
Thanks. Problem solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Undefined reference to symbol 'pthread_once@@GLIBC_2.2.5' Dornith Linux - Software 0 08-10-2012 01:42 PM
undefined reference to `yywrap' compiling PAM Mahonri Debian 5 12-30-2011 07:00 PM
[SOLVED] kernel compiling undefined reference error bahhti Programming 5 04-02-2010 12:00 AM
undefined reference to `cfb_fillrect' and more when compiling kernel KR-data Linux - Software 0 09-03-2005 02:56 PM
Glib-1.020 install problem Can't use an undefined value as a symbol reference jimdaworm Linux - Software 1 01-03-2004 06:32 AM


All times are GMT -5. The time now is 06:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration