From owner-freebsd-questions Tue Sep 17 08:28:13 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA17325 for questions-outgoing; Tue, 17 Sep 1996 08:28:13 -0700 (PDT) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id IAA17288 for ; Tue, 17 Sep 1996 08:28:05 -0700 (PDT) Received: from allegro.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0v31Ir-000QjzC; Tue, 17 Sep 96 16:39 MET DST From: grog@lemis.de (Greg Lehey) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Received: (grog@localhost) by allegro.lemis.de (8.6.9/8.6.9) id QAA09014; Tue, 17 Sep 1996 16:19:11 +0200 Message-Id: <199609171419.QAA09014@allegro.lemis.de> Subject: Re: fetch won't work To: cawimm0@service1.uky.edu (Charles A. Wimmer) Date: Tue, 17 Sep 1996 16:19:11 +0200 (MET DST) Cc: questions@FreeBSD.org (FreeBSD Questions) In-Reply-To: <2.2.32.19960917130944.0071e644@pop.uky.edu> from "Charles A. Wimmer" at Sep 17, 96 09:09:44 am X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk 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 >> >> 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 > 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