From owner-freebsd-ports@FreeBSD.ORG Mon Mar 5 18:32:46 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B9D501065672 for ; Mon, 5 Mar 2012 18:32:46 +0000 (UTC) (envelope-from norman@khine.net) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 82BB58FC15 for ; Mon, 5 Mar 2012 18:32:46 +0000 (UTC) Received: by iahk25 with SMTP id k25so8027988iah.13 for ; Mon, 05 Mar 2012 10:32:45 -0800 (PST) Received-SPF: pass (google.com: domain of norman@khine.net designates 10.50.179.3 as permitted sender) client-ip=10.50.179.3; Authentication-Results: mr.google.com; spf=pass (google.com: domain of norman@khine.net designates 10.50.179.3 as permitted sender) smtp.mail=norman@khine.net Received: from mr.google.com ([10.50.179.3]) by 10.50.179.3 with SMTP id dc3mr7784145igc.25.1330972365972 (num_hops = 1); Mon, 05 Mar 2012 10:32:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.179.3 with SMTP id dc3mr6445464igc.25.1330972365863; Mon, 05 Mar 2012 10:32:45 -0800 (PST) Received: by 10.50.170.106 with HTTP; Mon, 5 Mar 2012 10:32:45 -0800 (PST) In-Reply-To: References: <4F54FD0B.9070401@acsalaska.net> Date: Mon, 5 Mar 2012 19:32:45 +0100 Message-ID: From: Norman Khine To: Mel Flynn Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQnlESKyirUe4PWBbCz2VGTgYnTGrZQk1Dl+w4vXqVfzy/MPyBKZ2Ay1VTPS6HuTYDo1kxHr Cc: freebsd-ports@freebsd.org Subject: Re: installing GeoIP X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2012 18:32:46 -0000 when i run $ /usr/bin/ld -lGeoIP /usr/bin/ld: cannot find -lGeoIP perhaps i have a problem with the settings of my location of the headers in my linker path. how do i verify this? or is it a problem with https://github.com/kuno/GeoIP ? On Mon, Mar 5, 2012 at 7:16 PM, Norman Khine wrote: > hi thank you for this. > > so in order to build https://github.com/kuno/GeoIP into freebsd, as i > get this issue: https://github.com/kuno/GeoIP/issues/33 > > i am really not sure why that is not working. > > > > On Mon, Mar 5, 2012 at 6:51 PM, Mel Flynn wrote: >> On 3/5/2012 18:37, Norman Khine wrote: >> >>> $ gcc -lGeoIP example.c >>> example.c:1:19: error: GeoIP.h: No such file or directory >> >>> what am i missing? >> >> Basic compiling flags when working with software that does not install >> into default search paths: >> cc -I/usr/local/include -L/usr/local/lib -o example example.c -lGeoIP >> =C2=A0 [ CFLAGS/CPPFLAGS =C2=A0] [ LDFLAGS =C2=A0 =C2=A0 =C2=A0] =C2=A0 = =C2=A0[ PROG] [ SRCS =C2=A0] [LDADD] >> >> The brackets above refer to variable names in /usr/share/mk/bsd.prog.mk >> which can be used by make(1) on stock FreeBSD. Example Makefile: >> >> PROG=3Dexample >> SRCS=3Dexample.c # optional, if not specified will assume ${PROG}.c >> CPPFLAGS=3D-I/usr/local/include >> LDFLAGS=3D-L/usr/local/lib >> LDADD=3D-lGeoIP >> >> .include >> -- >> Mel >> _______________________________________________ >> freebsd-ports@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ports >> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > > > > -- > %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or > chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] ) --=20 %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )