LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-20-2006, 01:34 PM   #1
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Rep: Reputation: 30
Installed library not being detected


Hey, i just apt-get installed libnet1 and libnet1-dev but for some reason when i go to compile any code with them it doesnt appear to be finding many functions and i'm getting linker errors like the following
Code:
:basic.c:(.text+0x171): undefined reference to `libnet_build_dnsv4'
:basic.c:(.text+0x185): undefined reference to `libnet_geterror'
:basic.c:(.text+0x1ed): undefined reference to `libnet_build_udp'
:basic.c:(.text+0x201): undefined reference to `libnet_geterror'
:basic.c:(.text+0x28f): undefined reference to `libnet_build_ipv4'
:basic.c:(.text+0x2a3): undefined reference to `libnet_geterror'
:basic.c:(.text+0x2ca): undefined reference to `libnet_write'
:basic.c:(.text+0x2de): undefined reference to `libnet_geterror'
:basic.c:(.text+0x321): undefined reference to `libnet_destroy'
collect2: ld returned 1 exit status
The code compiles fine for a friend of mine who installed the libraries in the same way (using apt on debian) and it also compiles for me if i do the following
Code:
gcc -o basic basic.c /usr/lib/libnet.a
so i'm unsure why apt hasn't set this up correctly. Has anyone else seen anything like this?

Thanks,
NNP
 
Old 06-21-2006, 10:39 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
What does echo $PATH output? Maybe /usr/lib is not in your path?
 
  


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
tcpip not installed/detected tuneout Slackware 1 02-17-2006 08:01 PM
JRE installed but not detected in firefox marts SUSE / openSUSE 4 02-01-2006 04:43 PM
How may I know if I have a library installed? Starch Linux - Newbie 1 06-26-2005 11:22 PM
Installed new Hal library for g400 n175uj Linux - Newbie 1 06-22-2005 12:18 AM
gcc library installed not found degraffenried13 SUSE / openSUSE 4 12-12-2004 08:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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