[greenstone-devel] Problems compiling 2.72 source on FreeBSD

From Alexis Denis Martinez
DateThu, 18 Jan 2007 13:15:28 -0500
Subject [greenstone-devel] Problems compiling 2.72 source on FreeBSD
Hello Everyone,

I have problems compiling my source distribution (2.72 version) in
FreeBSD 6 Stable, this is the error

gmake[2]: Leaving directory `/usr/local/virtual/bvweb/gsdl/packages/d2m'
making all in unac
gmake[2]: Entering directory
`/usr/local/virtual/bvweb/gsdl/packages/unac'
gcc -c -DHAVE_CONFIG_H -DUNAC_VERSION="1.7.0" -g -O2 -Wall
-Wmissing-declarations -Wmissing-prototypes unac.c
unac.c:33:19: iconv.h: No such file or directory
unac.c: In function `utf16be':
unac.c:12592: error: syntax error before "cd"
unac.c:12596: error: `cd' undeclared (first use in this function)
unac.c:12596: error: (Each undeclared identifier is reported only once
unac.c:12596: error: for each function it appears in.)
unac.c:12596: warning: implicit declaration of function `iconv_open'
unac.c:12596: error: `iconv_t' undeclared (first use in this function)
unac.c:12600: warning: implicit declaration of function `iconv_close'
unac.c: In function `convert':
unac.c:12709: error: syntax error before "cd"
unac.c:12730: error: `cd' undeclared (first use in this function)
unac.c:12730: error: `iconv_t' undeclared (first use in this function)
unac.c:12734: warning: implicit declaration of function `iconv'
gmake[2]: *** [unac.o] Error 1
gmake[2]: Leaving directory
`/usr/local/virtual/bvweb/gsdl/packages/unac'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/usr/local/virtual/bvweb/gsdl/packages'
gmake: *** [all] Error 1

How you can see, gmake can't find file iconv.h file but this file is in
the same directory that unac.c when the call #include <iconv.h> must not
be a error. In addition, I have installed iconv-2.0.tar.gz library.

Sincerely,

Alexis Denis Martinez