From owner-freebsd-ports@FreeBSD.ORG Mon Mar 5 18:16:04 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 AE8C3106568F for ; Mon, 5 Mar 2012 18:16:02 +0000 (UTC) (envelope-from norman@khine.net) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5FBB38FC0A for ; Mon, 5 Mar 2012 18:16:02 +0000 (UTC) Received: by yhgm50 with SMTP id m50so2044826yhg.13 for ; Mon, 05 Mar 2012 10:16:01 -0800 (PST) Received-SPF: pass (google.com: domain of norman@khine.net designates 10.50.85.227 as permitted sender) client-ip=10.50.85.227; Authentication-Results: mr.google.com; spf=pass (google.com: domain of norman@khine.net designates 10.50.85.227 as permitted sender) smtp.mail=norman@khine.net Received: from mr.google.com ([10.50.85.227]) by 10.50.85.227 with SMTP id k3mr7769844igz.17.1330971361522 (num_hops = 1); Mon, 05 Mar 2012 10:16:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.85.227 with SMTP id k3mr6420856igz.17.1330971361467; Mon, 05 Mar 2012 10:16:01 -0800 (PST) Received: by 10.50.170.106 with HTTP; Mon, 5 Mar 2012 10:16:01 -0800 (PST) In-Reply-To: <4F54FD0B.9070401@acsalaska.net> References: <4F54FD0B.9070401@acsalaska.net> Date: Mon, 5 Mar 2012 19:16:01 +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: ALoCoQk2gNc83xiwmlQu96zn2k0PzjGthaF3drrPMlahvHpCAArALQnpGwGzb2VcH5oVrR+KUpH2 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:16:04 -0000 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" --=20 %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )