Re: [greenstone-devel] Problems compiling 2.72 source on FreeBSD

From Michael Dewsnip
DateFri, 19 Jan 2007 11:56:13 +1300
Subject Re: [greenstone-devel] Problems compiling 2.72 source on FreeBSD
In-Reply-To (6CAE458C9D09F24CA08199E9DF3003EC01094607-exchangeserver-citmatel-inf-cu)
Hi,

Try adding "-I." to the compile command, ie.

gcc -c -DHAVE_CONFIG_H -DUNAC_VERSION="1.7.0" -I. -g -O2 -Wall -Wmissing-declarations -Wmissing-prototypes unac.c

If this works we'll fix the Makefile so this problem won't exist in the
future.

Regards,

Michael

Alexis Denis Martinez wrote:

>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
>
>
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>greenstone-devel mailing list
>greenstone-devel@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel
>
>