Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Sep 1996 16:19:11 +0200 (MET DST)
From:      grog@lemis.de (Greg Lehey)
To:        cawimm0@service1.uky.edu (Charles A. Wimmer)
Cc:        questions@FreeBSD.org (FreeBSD Questions)
Subject:   Re: fetch won't work
Message-ID:  <199609171419.QAA09014@allegro.lemis.de>
In-Reply-To: <2.2.32.19960917130944.0071e644@pop.uky.edu> from "Charles A. Wimmer" at Sep 17, 96 09:09:44 am

next in thread | previous in thread | raw e-mail | index | archive | help
Charles A. Wimmer writes:
>
>>> I recently suped to 2.1.5-STABLE and rebuilt my kernel.  Everything went
>>> fine and everything (seemingly) works OK.  I tried to install a port and it
>>> couldn't find fetch.  I went to manually make fetch and got this:
>>>
>>> ph162: {32} pwd
>>> /usr/src/usr.bin/fetch
>>> ph162: {33} make
>>> cc -O   -c /usr/src/usr.bin/fetch/main.c
>>> /usr/src/usr.bin/fetch/main.c:47: ftpio.h: No such file or directory
>>> *** Error code 1
>>>
>>> Stop.
>>> ph162: {34} locate ftpio.h
>>> /usr/src/lib/libftpio/ftpio.h
>>> ph162: {35}
>>>
>>> Everything looks normal to me.  Any ideas?  I manually got the distfile, but
>>> I would like to get fetch working again.
>>
>> Doesn't look normal to me.  Line 47 of main.c almost certainly looks like
>>
>> #include <ftpio.h>
>>
>> Since you didn't specify any search paths, it looks for ftpio.h in
>> /usr/include, and doesn't find it.  Add -I/usr/src/lib/libftpio to
>> your CFLAGS.
>>
> I added this to my CFLAGS and got the following:
>
> ph162: {12} cat Makefile
> PROG = fetch
> SRCS = main.c
>
> CFLAGS= -I/usr/src/lib/libftpio
> DPADD=  ${LIBFTPIO}
> LDADD=  -lftpio
>
> .include <bsd.prog.mk>
> ph162: {13} make
> cc -I/usr/src/lib/libftpio    -o fetch main.o  -lftpio
> ld: -lftpio: no match
> *** Error code 1
>
> Stop.
> ph162: {14}
>
>
> That doesn't seem to help.  Any Ideas?

Looks good to me.  Now you've got through the compilation and can't
link.  Where's your libftpio.a?  Put the directory name in the LDADD
variable.  Assuming the obvious, it would be

  LDADD=  -L/usr/src/lib/libftpio -lftpio

Greg



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