gnome-libs/support/argp-help.c fails to compile



In my usual rebuilds of gnome, while building gnome-libs I ran into:
(This is the latest code from CVS)

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/glib/include -I/usr/X11R6/include -O
2 -m486 -fno-strength-reduce -Wp,-MD,.deps/argp-fs-xinl.p -c argp-fs-xinl.c >/de
v/null 2>&1
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/lib/g
lib/include -I/usr/X11R6/include -O2 -m486 -fno-strength-reduce -c argp-help.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/glib/include -I/usr/X11R6/include -O
2 -m486 -fno-strength-reduce -Wp,-MD,.deps/argp-help.p -c -fPIC -DPIC argp-help.c
argp-help.c: In function `argp_doc':
argp-help.c:1414: warning: assignment makes pointer from integer without a cast
argp-help.c: In function `argp_state_help':
argp-help.c:1627: `program_invocation_short_name' undeclared (first use this function)
argp-help.c:1627: (Each undeclared identifier is reported only once
argp-help.c:1627: for each function it appears in.)
argp-help.c: In function `argp_error':
argp-help.c:1656: `program_invocation_short_name' undeclared (first use this function)
argp-help.c: In function `argp_failure':
argp-help.c:1692: `program_invocation_short_name' undeclared (first use this function)
make[2]: *** [argp-help.lo] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/gnome-libs-0.13/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/gnome-libs-0.13'
make: *** [all-recursive-am] Error 2
Bad exit status from /tmp/rpm-tmp.96193 (%build)
removing tar and generated spec...  

After poking around, it looks like these lines in gnome-argp.h are not 'TRUE':

****** start of code snippet ******
#ifndef HAVE_PROGRAM_INVOCATION_SHORT_NAME
extern char *program_invocation_short_name;
#endif

#ifndef HAVE_PROGRAM_INVOCATION_NAME
extern char *program_invocation_name;
#endif
****** end of code snippet ******

It looks like automake (or configure?) is not setting these to TRUE, and they aren't
being included at compile time.

--
John Ellis <gqview@geocities.com>
http://www.geocities.com/SiliconValley/Haven/5235/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]