LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2006, 02:08 AM   #1
deepinlife
Member
 
Registered: Apr 2006
Posts: 78

Rep: Reputation: 15
i was compiling a source package then


guys i was compiling the source of bochs simulator then something goes wrong..

g++ -o bochs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DBX_SHARE_PATH=\"/usr/local/share/bochs\" logio.o main.o config.o load32bitOShack.o pc_system.o osdep.o plugin.o crc.o -Wl,--export-dynamic iodev/libiodev.a cpu/libcpu.a memory/libmemory.a gui/libgui.a disasm/libdisasm.a fpu/libfpu.a -L/usr/X11R6/lib -lSM -lICE -lX11 -lXpm -lm
/usr/X11R6/lib/libSM.so: undefined reference to `IceGetPeerName'
collect2: ld returned 1 exit status
make: *** [bochs] Error 1


the configure stage gone well but make fail and here is the output error?
 
Old 06-25-2006, 03:20 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Is libICE installed? Depending on your distro you might need libice-devel as well.
 
Old 06-25-2006, 03:26 AM   #3
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
Check to make sure you have libice6 installed. I have not used this program, but the error you are receiving relates to this library.

Hope this helps

Bob
 
Old 06-25-2006, 04:10 AM   #4
deepinlife
Member
 
Registered: Apr 2006
Posts: 78

Original Poster
Rep: Reputation: 15
sorry for the newbie question , but how do i know that a library is installed on my pc or not?

another question how do i know from the error that a certain library is the source of the error..for example in our case the error
/usr/X11R6/lib/libSM.so

needs the library libice?


i have mandrake 2005..i used urpmi to check about this package
urpmi libice6
but it said no package with that name..

i checked http://rpm.pbone.net/ for that pacakge for my distribution but haven't find it
 
Old 06-25-2006, 04:27 AM   #5
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
I am not sure on Mandrake, although it also uses the rpm package manager. To see if you have the package, you can open a terminal and type:

Quote:
whereis libice
or

Quote:
locate libice
This will return where (if it exists) it is. If you need it, freshrpms normaly will have it.

Hope this helps

Bob
 
Old 06-25-2006, 07:50 AM   #6
deepinlife
Member
 
Registered: Apr 2006
Posts: 78

Original Poster
Rep: Reputation: 15
guys thanks everyone ..
here what i have done.

locate libICE

it was not there..

then i kept searching for libICE for mandrake 2005 , i haven't found it in any place , but i think it is included in a pacakge called libxorg-x11-6.9-1.cvs20051129.1.2006.SoS.i586.rpm

i installed it using urpmi , then i made locate agin and i found it..

then make and make install and everything gone ok..

but that leave a question , why sometimes installing package in linux take hard sometimes?
and also still one question how i know that this error because of that missing library?

thx everyone again
 
  


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
compiling apt from source - where's the source? stynhx9000 Ubuntu 2 12-01-2005 07:32 AM
Identifying Errors while compiling a package zakidad Programming 2 09-21-2005 02:38 PM
package compiling from source, make & make install concepts shujja Linux - Newbie 2 09-20-2005 12:18 AM
compiling software from source...how do i delete the folder w/ source? webazoid Linux - Software 2 07-01-2004 09:09 PM
Compiling a package from source.. (Kopete specifically) cakeman Linux - Newbie 1 09-29-2003 12:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:57 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