openSUSE Forums > Programming/Scripting » Problem compiling program??

Go Back   openSUSE Forums > Programming/Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


Programming/Scripting Questions about programming, bash scripts, perl, php, cron jobs, ruby, python, etc.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-May-2009, 12:33
Puzzled Penguin
 
Join Date: Aug 2008
Posts: 9
changedsoul hasn't been rated much yet
Default Problem compiling program??

Im getting this error and not sure where to start to find the problem.

collect2: ld returned 1 exit status

I cant seem to see any errors that may lead to this, but Im not that experienced.
Most of what google returned were people with similar problems, but they at least had something else that said it could not find something.

Anyways, the code is ok, because its not mine and it will compile on my desktop, but not my laptop.

Here are links to the configure output and make output.

./configure: pastebin - Stuff - post number 1438149

make: pastebin - Someone - post number 1438154
Reply With Quote
  #2 (permalink)  
Old 28-May-2009, 14:21
ram88's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: relative
Posts: 1,169
ram88 hasn't been rated much yet
Send a message via MSN to ram88 Send a message via Skype™ to ram88
Default Re: Problem compiling program??

Quote:
Originally Posted by changedsoul View Post
Im getting this error and not sure where to start to find the problem.

collect2: ld returned 1 exit status

I cant seem to see any errors that may lead to this, but Im not that experienced.
Most of what google returned were people with similar problems, but they at least had something else that said it could not find something.

Anyways, the code is ok, because its not mine and it will compile on my desktop, but not my laptop.

Here are links to the configure output and make output.

./configure: pastebin - Stuff - post number 1438149

make: pastebin - Someone - post number 1438154
Have you installed the requirements listed on:
Requirements.
You need to install the development packages too.
Hope that helps.
__________________
http://akoskm.blogspot.com/
http://yami.googlecode.com/

Do not login directly as root - Thank you!
Reply With Quote
  #3 (permalink)  
Old 29-May-2009, 12:34
Puzzled Penguin
 
Join Date: Aug 2008
Posts: 9
changedsoul hasn't been rated much yet
Default Re: Problem compiling program??

No, I dont belive that is the problem, I have all devel packages I need installed. And if I didnt...would not ./configure tell me so?

configure ran through without a problem.

Any other sugestions?

Also...if this can compile on my desktop, both are running opensuse 11.1 with kde 4.2.3...can I compile on desktop, and use on laptop? Desktop is 64bit and laptop is 32bit
Reply With Quote
  #4 (permalink)  
Old 29-May-2009, 16:18
ram88's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: relative
Posts: 1,169
ram88 hasn't been rated much yet
Send a message via MSN to ram88 Send a message via Skype™ to ram88
Default Re: Problem compiling program??

Quote:
Originally Posted by changedsoul View Post
...
Also...if this can compile on my desktop, both are running opensuse 11.1 with kde 4.2.3...can I compile on desktop, and use on laptop? Desktop is 64bit and laptop is 32bit
Well, I can imagine that.
Try out and report back!
Thank you!
__________________
http://akoskm.blogspot.com/
http://yami.googlecode.com/

Do not login directly as root - Thank you!
Reply With Quote
  #5 (permalink)  
Old 31-May-2009, 10:26
Puzzled Penguin
 
Join Date: Aug 2008
Posts: 9
changedsoul hasn't been rated much yet
Default Re: Problem compiling program??

Tried to do it, cant get it to compile in 32bit and cant run 64bit on 32bit system. So Im back to trying to figure out what is causing this ld error
Reply With Quote
  #6 (permalink)  
Old 13-Jun-2009, 08:11
Puzzled Penguin
 
Join Date: Jun 2009
Posts: 5
argnu hasn't been rated much yet
Default Re: Problem compiling program??

collect2: ld returned 1 exit status
is often a missing library or a missing path to the library (for gcc passed usually via -L ), while dev packages are often just headers (not libs), in order to clarify your error you need to post more of the error message
Reply With Quote
  #7 (permalink)  
Old 21-Jun-2009, 02:51
Puzzled Penguin
 
Join Date: Dec 2008
Location: Delhi, India
Posts: 7
chiky_cin hasn't been rated much yet
Send a message via Yahoo to chiky_cin Send a message via Skype™ to chiky_cin
Default Re: Problem compiling program??

I agree with argnu here, but if you are trying to execute a 32-bit application on a 64-bit system, I think you need to install the 32-bit support before doing that.
zypper pattern-info 32bit
Reply With Quote
  #8 (permalink)  
Old 22-Oct-2009, 12:11
Puzzled Penguin
 
Join Date: Aug 2008
Posts: 9
changedsoul hasn't been rated much yet
Default Re: Problem compiling program??

I left this alone for some time and just came back. Fresh install with all development packages installed on the system this one compiled on, no longer compiles on.

config log: pastebin - ./configure --with-extra-include - post number 1637725
make log: pastebin - make - post number 1637729

I know the code is good because it once did compile. Can anyone please shed some light on a option I am maybe missing to get this to compile? This doesnt make any sence to me.
Reply With Quote
  #9 (permalink)  
Old 22-Oct-2009, 13:13
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,715
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Problem compiling program??

Quote:
Originally Posted by changedsoul
I left this alone for some time and just came back. Fresh install with
all development packages installed on the system this one compiled on,
no longer compiles on.

config log: 'pastebin - ./configure --with-extra-include - post number
1637725' (http://pastebin.ca/1637725)
make log: 'pastebin - make - post number 1637729'
(http://pastebin.ca/1637729)

I know the code is good because it once did compile. Can anyone please
shed some light on a option I am maybe missing to get this to compile?
This doesnt make any sence to me.
Hi
It's only a 32bit application?? Here is a prebuilt one for 11.1
ftp.sourceforge.net/pub/sourceforge/k/project/kb/kb2kskype/kb2kskype/kb2kskype-0.3.8/kb2kskype-0.3.8-1.os111.i586.rpm
ftp://ftp.pbone.net/mirror/ftp.sourc.../kb/kb2kskype/

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 13 days 0:37, 3 users, load average: 0.30, 0.30, 0.18
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Reply With Quote
  #10 (permalink)  
Old 23-Oct-2009, 10:05
Puzzled Penguin
 
Join Date: Aug 2008
Posts: 9
changedsoul hasn't been rated much yet
Default Re: Problem compiling program??

I already know there are prebuilt ones available. I want to be able to comile it so I can make changes to it. I need help getting this thing to compile.

As I said before, it once compiled on my system, but since a fresh install, it no longer does. All devel packages are instaled as far as I know, and I know I have all the requirements for this particular app.

Please, if anyone has compile experiance, can you give me some tips to get this to compile?
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2