On Mon, Sep 10, 2007 at 03:32:28PM +0000, Robert Boone wrote: > I'm getting this error when I run gmake on FreeBSD 5.5 > > CC builtin-archive.o > builtin-archive.c: In function `format_specfile': > builtin-archive.c:96: warning: implicit declaration of function `memmem' > builtin-archive.c:96: warning: assignment makes pointer from integer > without a cast > LINK git > builtin-archive.o(.text+0x225): In function `sha1_file_to_archive': > /root/git/builtin-archive.c:96: undefined reference to `memmem' > collect2: ld returned 1 exit status > gmake: *** [git] Error 1 Yeah this is a GNU extension, edit your makefile, and set NO_MEMMEM for freebsd as well, it seems it has been forgotten. Though maybe freebsd has it, and some #include misses, so I'd rather see someone actually used to FreeBSD answer for sure. But the above "fix" should make git build. -- ·O· Pierre Habouzit ··O madcoder@xxxxxxxxxx OOO http://www.madism.org
Attachment:
pgpLZoqcTVr9W.pgp
Description: PGP signature