From owner-freebsd-ports@FreeBSD.ORG Mon Mar 5 17:37:21 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 02B3A106566B for ; Mon, 5 Mar 2012 17:37:21 +0000 (UTC) (envelope-from norman@khine.net) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id B997F8FC1A for ; Mon, 5 Mar 2012 17:37:20 +0000 (UTC) Received: by ggnk4 with SMTP id k4so2018957ggn.13 for ; Mon, 05 Mar 2012 09:37:20 -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 dc3mr7594550igc.25.1330969040207 (num_hops = 1); Mon, 05 Mar 2012 09:37:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.179.3 with SMTP id dc3mr6289959igc.25.1330969040063; Mon, 05 Mar 2012 09:37:20 -0800 (PST) Received: by 10.50.170.106 with HTTP; Mon, 5 Mar 2012 09:37:20 -0800 (PST) Date: Mon, 5 Mar 2012 18:37:20 +0100 Message-ID: From: Norman Khine To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnxcH70xMb34S9rpKgREmZvSPMtqfoDZ/sCCttupHGpPzLEaAEknKuJKJgY6KJLSgRNRI1K Subject: 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 17:37:21 -0000 Hello, I have installed the GeoIP port from ports/net/GeoIP/, using: # make all install clean but when i run the example from the website, i get this error: $ gcc -lGeoIP example.c example.c:1:19: error: GeoIP.h: No such file or directory example.c: In function 'main': example.c:3: error: 'GeoIP' undeclared (first use in this function) example.c:3: error: (Each undeclared identifier is reported only once example.c:3: error: for each function it appears in.) example.c:3: error: 'gi' undeclared (first use in this function) example.c:4: error: 'GEOIP_STANDARD' undeclared (first use in this function) example.c:5: warning: incompatible implicit declaration of built-in function 'printf' what am i missing? thanks -- %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )