Subject: Re: ncftp?
To: Jorgen Pehrson <jp@spektr.ludvika.se>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: port-pmax
Date: 04/19/1998 05:39:16
Jorgen Pehrson <jp@spektr.ludvika.se> writes:

>On Sat, 18 Apr 1998, Jonathan Stone wrote:
>
>> Which version of NetbSD are you running?
>
>1.3


>> If you're running 1.3, a temporary workaround is to build ncftp
>> statically linked.

>But I used gdb to look where  things went wrong. And I discovered that if
>I didn't have a ~/.ncftp/bookmarks file ncftp would seg fault. But if I
>touched the bookmarks file ncftp worked fine..
>
>
>
>/* The next line is 491...*/
>                if (rename(path2, pathName) == 0) {


I bet you're linking ncftp with -lposix.  There's a rename(2) in both
libposix.a and libc.a.  That will definitely trigger the
duplicate-symbol bug.  (perl ran into this bug with rename(), too.)

Either upgrade to 1.3.1, or link statically.