ad1d No library found for -lnsl - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old January 22nd, 2009, 16:56
bloodhound bloodhound is offline
Junior Member
 
Join Date: Jan 2009
Posts: 34
Thanks: 1
Thanked 0 Times in 0 Posts
Default No library found for -lnsl

I am trying to install p5-Cflow from ports on Freebsd 7.1-p2 and also on 7 and i get this warning:

Note (probably harmless): No library found for -lnsl

So it doesn't work without it.

lnsl is part of libnsl but i can't find the package for it.

I found :

/usr/compat/linux/lib/libnsl-2.3.6.so
/usr/compat/linux/lib/libnsl.so.1

but when i linked libnsl-2.3.6.so to /usr/local/lib/libnsl.so.1 i get :

rm -f blib/arch/auto/Cflow/Cflow.so
LD_RUN_PATH="/usr/local/lib" cc -shared -L/usr/local/lib Cflow.o -o blib/arch/auto/Cflow/Cflow.so -lnsl
/usr/bin/ld: cannot find -lnsl
*** Error code 1

Stop in /usr/ports/net-mgmt/p5-Cflow/work/Cflow-1.053.
*** Error code 1

Stop in /usr/ports/net-mgmt/p5-Cflow.


Anyone got some magic for me to trick it and make it work?

Thank you
Reply With Quote
  #2  
Old January 23rd, 2009, 12:37
trev trev is offline
Member
 
Join Date: Dec 2008
Posts: 343
Thanks: 13
Thanked 39 Times in 36 Posts
Default

On FreeBSD, unlike Linux, libnsl functionality is included in libc. So you need to remove all references in the makefile to -lnsl.

Assuming you have the port downloaded, type make extract in the cflow port directory, cd to work/Cflow-1.053, edit Makefile.PL removing references to -lnsl, save, go back to main directory and make all install).

This will build and install it WITHOUT the warning which, contrary to what it states, IS FATAL!
Reply With Quote
  #3  
Old January 23rd, 2009, 13:36
bloodhound bloodhound is offline
Junior Member
 
Join Date: Jan 2009
Posts: 34
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thx alot worked like a swish clock.

Also when installed p4-patricia had to take lnsl from Makefile.PL as well. Hope flowscan will work.
Reply With Quote
  #4  
Old January 23rd, 2009, 22:39
ale's Avatar
ale ale is offline
Senior Member
 
Join Date: Nov 2008
Location: Roma
Posts: 1,064
Thanks: 0
Thanked 160 Times in 146 Posts
Default

Maybe you should send-pr(1) or send an email to
Code:
$ cd /usr/ports/net-mgmt/p5-Cflow
$ make maintainer
Reply With Quote
Reply

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No disks found on ASUS P5N-D, nForce 750i. HOLOGRAPHICpizza Installing & Upgrading 7 March 8th, 2009 01:47
8.0-current: no disks found! zeiz FreeBSD Development 7 February 26th, 2009 08:09
g++ library version dependence applebee Userland Programming & Scripting 3 February 3rd, 2009 14:08
Does anyone have any help for a shared library conflict? mdg583 Porting New Software 0 December 29th, 2008 01:36
466 gig lost+found file Pushrod General 2 December 27th, 2008 08:24


All times are GMT +1. The time now is 08:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0