LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-28-2009, 12:25 AM   #1
Ritendra
LQ Newbie
 
Registered: Oct 2008
Location: Bangalore, India
Posts: 4

Rep: Reputation: 0
collect2: ld returned 1 exit status


Hi,
while building my image i got this linking error:

cc -L/backed/ritendra/Build/xl-build/phc-libpgutil -L/backed/ritendra/Build/xl-build/phc-libnetops -L/backed/ritendra/Build/xl-build/phc-libpsoap -L/backed/ritendra/Build/xl-build/phc-libpginitutils -L/backed/ritendra/Build/xl-build/phc-netsnmp/build/snmplib/.libs -L/backed/ritendra/Build/xl-build/phc-libradius -I/backed/ritendra/Build/xl-build/phc-libtlv -L/backed/ritendra/Build/xl-build/lib/phc-libpsoap -L/backed/ritendra/Build/xl-build/lib/phc-libpgutil -o psg_failover psg_failover.o -lpgutil -lpgutil
psg_failover.o(.text+0x22): In function `main':
: undefined reference to `psg_sharedmemory'
psg_failover.o(.text+0x52f): In function `initialization':
: undefined reference to `pginit_utils_get_next_config_entry'
psg_failover.o(.text+0x706): In function `initialization':
: undefined reference to `psg_passive_client'
psg_failover.o(.text+0x798): In function `send_arp_requestto_psg':
: undefined reference to `ioctl_initialization'
psg_failover.o(.text+0x9b0): In function `monitoring':
: undefined reference to `send_http_request'
psg_failover.o(.text+0x9e4): In function `monitoring':
: undefined reference to `send_icmp_request'
psg_failover.o(.text+0xa0a): In function `monitoring':
: undefined reference to `psg_active_server'
psg_failover.o(.text+0xa30): In function `monitoring':
: undefined reference to `psg_dummy_auth'
psg_failover.o(.text+0xaa1): In function `monitoring':
: undefined reference to `psg_passive_client'
collect2: ld returned 1 exit status
make[1]: *** [psg_failover] Error 1
make[1]: Leaving directory `/backed/ritendra/Build/xl-build/phc-failover'
make: *** [all] Error 1



Please help me....
 
Old 07-29-2009, 09:54 AM   #2
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 299

Rep: Reputation: 62
You failed to include one or more libraries (i.e. -llibrary.) What I do not understand is why you have so many library directory directives (-Llibrary_directory)
 
Old 07-30-2009, 07:39 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

And which application are you building ?
Which command is used to get the shown result ?
Also please tell which Linux OS, you are using.

http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
.....
 
  


Reply

Tags
exit, ld, status


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
cannot find -lpcap collect2: ld returned 1 exit status nasim751 Programming 1 02-12-2008 01:57 PM
ld: cannot find -lc collect2: ld returned 1 exit status ArbuZz Linux From Scratch 3 09-27-2005 12:52 AM
collect2: ld returned 1 exit status abirami Linux - Software 0 03-02-2005 01:07 AM
konstruct error collect2: ld returned 1 exit status X2O Linux - Software 2 08-11-2004 08:48 PM
popa3d collect2: ld returned 1 exit status datapunk Linux - Software 1 01-02-2004 06:48 PM

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

All times are GMT -5. The time now is 04:58 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
Open Source Consulting | Domain Registration