LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 12:30 PM   #1
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
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, 01:00 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 01:01 PM.
 
2 members found this post helpful.
Old 11-27-2012, 01:06 PM   #3
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

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


Reply



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 12:42 PM
undefined reference to `yywrap' compiling PAM Mahonri Debian 5 12-30-2011 06:00 PM
[SOLVED] kernel compiling undefined reference error bahhti Programming 5 04-01-2010 11:00 PM
undefined reference to `cfb_fillrect' and more when compiling kernel KR-data Linux - Software 0 09-03-2005 01:56 PM
Glib-1.020 install problem Can't use an undefined value as a symbol reference jimdaworm Linux - Software 1 01-03-2004 05:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:38 PM.

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
Open Source Consulting | Domain Registration