Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Mar 2012 19:32:45 +0100
From:      Norman Khine <norman@khine.net>
To:        Mel Flynn <rflynn@acsalaska.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: installing GeoIP
Message-ID:  <CAKgQ7UJffa951O-k-LqA7E72eEPkQE3JwkZh%2Bom0-1Ky89EJ4Q@mail.gmail.com>
In-Reply-To: <CAKgQ7U%2BGRyR0L7hS4WMAgJRABFVe%2BGiy0hOsROEo3n807tqLPg@mail.gmail.com>
References:  <CAKgQ7UJogA3iH=XiFGz46NBLTdj-bet=Bv=CWuuQeYsr0rXeuQ@mail.gmail.com> <4F54FD0B.9070401@acsalaska.net> <CAKgQ7U%2BGRyR0L7hS4WMAgJRABFVe%2BGiy0hOsROEo3n807tqLPg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <norman@khine.net> 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 <rflynn@acsalaska.net> 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 <bsd.prog.mk>
>> --
>> 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" ] )



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKgQ7UJffa951O-k-LqA7E72eEPkQE3JwkZh%2Bom0-1Ky89EJ4Q>