[PATCH] Fix paths for building in FreeBSD

Dan Rue drue at therub.org
Wed Oct 17 18:39:18 CEST 2012


On Wed, Oct 17, 2012 at 06:32:32PM +0200, Jason A. Donenfeld wrote:
> I've cleaned things up and rewritten it. Let me know if this works for you:
> http://git.zx2c4.com/cgit/commit/?h=jd/freebsd&id=5ea22a6b0f7821d9415a27791bacec617c66ec39
> 
> Remember to ``make clean'' before testing.

$ gmake clean && V=y gmake
...
cc -o vector.o -c -I/usr/local/include -g -Wall -Igit -DSHA1_HEADER='<openssl/sha.h>' -DCGIT_VERSION='"v0.9.0.3-85-gb20e"' -DCGIT_CONFIG='"/etc/cgitrc"' -DCGIT_SCRIPT_NAME='"cgit.cgi"' -DCGIT_CACHE_ROOT='"/var/cache/cgit"' vector.c
gmake -C git  NO_CURL=1 prefix=/usr libgit.a
gmake[1]: Entering directory `/usr/local/www/cgit-devel/cgit/git'
gmake[1]: Leaving directory `/usr/local/www/cgit-devel/cgit/git'
gmake -C git  NO_CURL=1 prefix=/usr xdiff/lib.a
gmake[1]: Entering directory `/usr/local/www/cgit-devel/cgit/git'
gmake[1]: Leaving directory `/usr/local/www/cgit-devel/cgit/git'
cc -I/usr/local/include -g -Wall -Igit -DSHA1_HEADER='<openssl/sha.h>' -DCGIT_VERSION='"v0.9.0.3-85-gb20e"' -DCGIT_CONFIG='"/etc/cgitrc"' -DCGIT_SCRIPT_NAME='"cgit.cgi"' -DCGIT_CACHE_ROOT='"/var/cache/cgit"' -L/usr/local/lib -o cgit  cache.o cgit.o cmd.o configfile.o html.o parsing.o scan-tree.o shared.o ui-atom.o ui-blob.o ui-clone.o ui-commit.o ui-diff.o ui-log.o ui-patch.o ui-plain.o ui-refs.o ui-repolist.o ui-shared.o ui-snapshot.o ui-ssdiff.o ui-stats.o ui-summary.o ui-tag.o ui-tree.o vector.o git/libgit.a git/xdiff/lib.a -lz -lpthread -lcrypto
git/libgit.a(utf8.o): In function `reencode_string':
/usr/local/www/cgit-devel/cgit/git/utf8.c:436: undefined reference to `libiconv_open'
/usr/local/www/cgit-devel/cgit/git/utf8.c:447: undefined reference to `libiconv'
/usr/local/www/cgit-devel/cgit/git/utf8.c:472: undefined reference to `libiconv_close'
/usr/local/www/cgit-devel/cgit/git/utf8.c:453: undefined reference to `libiconv_close'
gmake: *** [cgit] Error 1

It seems NEEDS_LIBICONV still needs to be defined.

drue




More information about the CGit mailing list