Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jun 1997 12:33:34 -0700 (PDT)
From:      Satoshi Asami <asami>
To:        asami, freebsd-ports, ache
Subject:   Re: ports/3256
Message-ID:  <199706061933.MAA06487@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
Synopsis: ncftp-2.4.2 in packages-2.2 was not linked readline

Responsible-Changed-From-To: freebsd-ports->ache
Responsible-Changed-By: asami
Responsible-Changed-When: Fri Jun 6 12:22:07 PDT 1997
Responsible-Changed-Why: 
I wish you read your mail more carefully.  I verified the problem still
happens on ports-current too.  Here is the log:

## make install
>> Checksum OK for ncftp-2.4.2.tar.gz.
===>  Extracting for ncftp-2.4.2
===>  Patching for ncftp-2.4.2
===>  Applying FreeBSD patches for ncftp-2.4.2
===>  Configuring for ncftp-2.4.2
 :
checking for extra include and lib directories...
checking for -lreadline... no
 :
checking for readline/history.h... yes
checking for cursesX.h... no
checking for ncurses.h... yes
 :
===>  Building for ncftp-2.4.2
 :
cc -O2 -pipe Bookmark.o Cmdline.o Cmdlist.o Cmds.o Complete.o Cpp.o DateSize.o FTP.o Get.o GetPass.o Getopt.o Sio.o Glob.o Hostwin.o LGets.o LineList.o List.o Macro.o Main.o MakeArgv.o Open.o Prefs.o Progress.o Put.o RCmd.o Strn.o Tips.o Util.o WGets.o Win.o Xfer.o -o ncftp -L/usr/local/lib -lreadline -lncurses -lmytinfo
-rwxr-xr-x  1 root  wheel  157486 Jun  6 12:13 ncftp
Done.
 :
## ldd /usr/local/bin/ncftp2
/usr/local/bin/ncftp2:
        -lncurses.3 => /usr/lib/libncurses.so.3.0 (0x2003f000)
        -lmytinfo.2 => /usr/lib/libmytinfo.so.2.0 (0x2004e000)
        -lc.3 => /usr/lib/libc.so.3.0 (0x20063000)
## ldconfig -r | grep readline
        99:-lreadline.3.0 => /usr/lib/libreadline.so.3.0
## ls -slg /usr/lib/libreadline* /usr/local/lib/libreadline*
176 -r--r--r--  1 bin  bin  165538 Jun  4 21:37 /usr/lib/libreadline.a
152 -r--r--r--  1 bin  bin  140358 Jun  4 21:37 /usr/lib/libreadline.so.3.0
184 -r--r--r--  1 bin  bin  180018 Jun  4 21:37 /usr/lib/libreadline_p.a
152 -r--r--r--  1 bin  bin  145588 May 28 03:08 /usr/local/lib/libreadline.a
144 -r-xr-xr-x  1 bin  bin  135991 May 28 03:08 /usr/local/lib/libreadline.so*

It appears it is picking up libreadline.a from /usr/local/lib, even
though it finds there is no -lreadline.  devel/linuxgdb and devel/scogdb
both have lib/libreadline.a listed in their PLISTs, even though neither
lists libreadline.so.

Anyway, can you change ncftp2 to always use /usr/lib's libreadline?
We don't want the build to be affected by other ports, especially
for things like libreadline that many software wants to install 
their own version of.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706061933.MAA06487>