localcharset.c: In function `get_charset_aliases':

Christian Stimming stimming@tuhh.de
Thu, 15 Aug 2002 14:39:00 +0200


Gansser, Martin wrote:

> removing CFLAGS="${CFLAGS} -Werror-implicit-function-declaration" in configure
> solves this Problem.


Err... are you sure this is a real solution? Now you have an implicit 
function declaration during your compile (which doesn't give an error 
anymore once you removed that compile option). IMHO implictly declared 
functions are highly likely to be a BAD THING (tm), and solving this 
problem rather means finding the right header file where that function 
is declared.

How about a 'grep getc_unlocked /usr/include/*.h' or the other favorite 
locations for header-files?

Also, I'm not quite sure whether the source files in the intl/ 
subdirectory actually are written by us. Maybe they have just been 
copied by some other i18n tool... anybody has more info here?

Christian

> 
> 
>>Hi,
>>
>>I tried to compile gnucash-1.6.7 on hpux 11.00, but I get the 
>>following error message:
>>
>>...
>>gcc -c -DLOCALEDIR=\"/opt/gnucash/share/locale\" 
>>-DLOCALE_ALIAS_PATH=\"/opt/gnucash/share/locale\" -
>>DLIBDIR=\"/opt/gnucash/lib\" -DIN_LIBINTL -DHAVE_CONFIG_H 
>>-I.. -I. -I../intl -I/opt/gnome/includes -
>>I/opt/gnome/include -g -O2 -Wall -Wunused -Wall -Wno-unused 
>>-Werror-implicit-function-declaration lo
>>calcharset.c  -fPIC -DPIC -o .libs/localcharset.lo
>>localcharset.c: In function `get_charset_aliases':
>>localcharset.c:144: implicit declaration of function `getc_unlocked'
>>gmake[2]: *** [localcharset.lo] Error 1
>>gmake[2]: Leaving directory `/opt/mgansser/GNU/gnucash-1.6.7/intl'
>>gmake[1]: *** [all-recursive] Error 1
>>gmake[1]: Leaving directory `/opt/mgansser/GNU/gnucash-1.6.7'
>>gmake: *** [all-recursive-am] Error 2
>>
>>
>>Systeminformation:
>>hpux 11.00
>>gnome-1.4
>>guile-1.4
>>gcc-3.1
>>
>>g-wrap isn't installed
>>
>>any help ?
>>_______________________________________________
>>gnucash-devel mailing list
>>gnucash-devel@lists.gnucash.org
>>https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>>
>>
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel@lists.gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
> 
>