compile error gtkextra-2
Martijn Brouwer <[email protected]>
| Newsgroups | gmane.comp.scigraphica.gtkextra |
|---|---|
| Message-ID | <[email protected]> |
Hi,
When I compiled gtkextra-2 from cvs, I encountered the error shown below. I have gtk 2.2.1 and tried gcc-2.95 and 3.2, with the same result. Is there somebody out there who can fix it. I hope I supplied enough information. config.log is enclosed.
Bye,
Martijn Brouwer
make all-recursive
make[1]: Entering directory `/home/martijn/build/gtkextra-2'
Making all in gtkextra
make[2]: Entering directory `/home/martijn/build/gtkextra-2/gtkextra'
make[2]: Circular gtkextratypebuiltins.h <- gtkextratypebuiltins.h dependency dropped.
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I -I.. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -Wall -c gtkplotsurface.c
rm -f .libs/gtkplotsurface.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I -I.. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -Wall -Wp,-MD,.deps/gtkplotsurface.pp -c gtkplotsurface.c -fPIC -DPIC -o .libs/gtkplotsurface.lo
gtkplotsurface.c: In function `gtk_plot_surface_draw_polygons':
gtkplotsurface.c:669: syntax error before '{' token
gtkplotsurface.c:672: `discard' undeclared (first use in this function)
gtkplotsurface.c:672: (Each undeclared identifier is reported only once
gtkplotsurface.c:672: for each function it appears in.)
gtkplotsurface.c: At top level:
gtkplotsurface.c:754: syntax error before '}' token
make[2]: *** [gtkplotsurface.lo] Error 1
make[2]: Leaving directory `/home/martijn/build/gtkextra-2/gtkextra'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/martijn/build/gtkextra-2'
make: *** [all-recursive-am] Error 2
Physics is a approximate description of a part of the physical phenomena, that are only a small portion of human perceptions.
H Casimir, Dutch Physicist
config.log
(application/octet-stream, 7.8 KB)
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:775: checking for a BSD compatible install
configure:828: checking whether build environment is sane
configure:885: checking whether make sets ${MAKE}
configure:924: checking for working aclocal-1.4
configure:937: checking for working autoconf
configure:950: checking for working automake-1.4
configure:963: checking for working autoheader
configure:976: checking for working makeinfo
configure:997: checking whether build environment is sane
configure:1039: checking for gcc
configure:1152: checking whether the C compiler (gcc ) works
configure:1168: gcc -o conftest conftest.c 1>&5
configure:1194: checking whether the C compiler (gcc ) is a cross-compiler
configure:1199: checking whether we are using GNU C
configure:1208: gcc -E conftest.c
configure:1227: checking whether gcc accepts -g
configure:1260: checking for strerror in -lcposix
configure:1279: gcc -o conftest -g -O2 conftest.c -lcposix 1>&5
/usr/bin/ld: cannot find -lcposix
collect2: ld returned 1 exit status
configure: failed program was:
#line 1268 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char strerror();
int main() {
strerror()
; return 0; }
configure:1305: checking for gcc option to accept ANSI C
configure:1358: gcc -c -g -O2 conftest.c 1>&5
configure:1393: checking for a BSD compatible install
configure:1446: checking whether make sets ${MAKE}
configure:1487: checking for Cygwin environment
configure:1503: gcc -c -g -O2 conftest.c 1>&5
configure: In function `main':
configure:1499: `__CYGWIN32__' undeclared (first use in this function)
configure:1499: (Each undeclared identifier is reported only once
configure:1499: for each function it appears in.)
configure: failed program was:
#line 1492 "configure"
#include "confdefs.h"
int main() {
#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:1520: checking for mingw32 environment
configure:1532: gcc -c -g -O2 conftest.c 1>&5
configure: In function `main':
configure:1528: `__MINGW32__' undeclared (first use in this function)
configure:1528: (Each undeclared identifier is reported only once
configure:1528: for each function it appears in.)
configure: failed program was:
#line 1525 "configure"
#include "confdefs.h"
int main() {
return __MINGW32__;
; return 0; }
configure:1549: checking how to run the C preprocessor
configure:1570: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1704: checking host system type
configure:1725: checking build system type
configure:1754: checking for ld used by GCC
configure:1822: checking if the linker (/usr/bin/ld) is GNU ld
GNU ld version 2.13.90.0.18 20030121 Debian GNU/Linux
configure:1839: checking for /usr/bin/ld option to reload object files
configure:1851: checking for BSD-compatible nm
configure:1889: checking for a sed that does not truncate output
configure:1973: checking whether ln -s works
configure:1994: checking how to recognise dependent libraries
configure:2180: checking for object suffix
configure:2186: gcc -c -g -O2 conftest.c 1>&5
configure:2206: checking for executable suffix
configure:2216: gcc -o conftest -g -O2 conftest.c 1>&5
configure:2247: checking command to parse /usr/bin/nm -B output
configure:2330: gcc -c -g -O2 conftest.c 1>&5
configure:2333: /usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ ]\([ABCDGISTW][ABCDGISTW]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm
configure:2384: gcc -o conftest -g -O2 conftest.c conftstm.o 1>&5
configure:2433: checking for dlfcn.h
configure:2443: gcc -E conftest.c >/dev/null 2>conftest.out
configure:2612: checking for ranlib
configure:2679: checking for strip
configure:3194: checking for objdir
configure:3221: checking for gcc option to produce PIC
configure:3369: checking if gcc PIC flag -fPIC works
configure:3383: gcc -c -g -O2 -fPIC -DPIC conftest.c 1>&5
configure:3435: checking if gcc static flag -static works
configure:3450: gcc -o conftest -g -O2 -static conftest.c 1>&5
configure:3477: checking if gcc supports -c -o file.o
configure:3496: gcc -c -g -O2 -o out/conftest2.o conftest.c 1>&5
configure:3525: checking if gcc supports -c -o file.lo
configure:3543: gcc -c -g -O2 -c -o conftest.lo conftest.c 1>&5
configure:3593: checking if gcc supports -fno-rtti -fno-exceptions
configure:3606: gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c conftest.c 1>&5
configure:3633: checking whether the linker (/usr/bin/ld) supports shared libraries
configure:4332: checking how to hardcode library paths into programs
configure:4360: checking whether stripping libraries is possible
configure:4374: checking dynamic linker characteristics
configure:4798: checking if libtool supports shared libraries
configure:4802: checking whether to build shared libraries
configure:4825: checking whether to build static libraries
configure:5361: checking whether -lc should be explicitly linked in
configure:5368: gcc -c -g -O2 conftest.c 1>&5
configure:5381: gcc -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2>&1 | grep -lc >/dev/null 2>&1
configure:5967: checking whether to enable maintainer-specific portions of Makefiles
configure:5997: checking host system type
configure:6019: checking for some Win32 platform
configure:6040: checking for native Win32
configure:6175: checking for ANSI C header files
configure:6188: gcc -E conftest.c >/dev/null 2>conftest.out
configure:6255: gcc -o conftest -g -O2 -Wall conftest.c 1>&5
configure: In function `main':
configure:6250: warning: implicit declaration of function `exit'
configure:6281: checking for working const
configure:6335: gcc -c -g -O2 -Wall conftest.c 1>&5
configure: In function `main':
configure:6309: warning: unused variable `s'
configure:6329: warning: unused variable `foo'
configure:6291: warning: unused variable `x'
configure:6297: warning: unused variable `zero'
configure:6308: warning: `t' might be used uninitialized in this function
configure:6326: warning: `b' might be used uninitialized in this function
configure:6360: checking for unistd.h
configure:6370: gcc -E conftest.c >/dev/null 2>conftest.out
configure:6403: checking for dirent.h
configure:6413: gcc -E conftest.c >/dev/null 2>conftest.out
configure:6447: checking for fnmatch.h
configure:6457: gcc -E conftest.c >/dev/null 2>conftest.out
configure:6489: checking for extra flags for POSIX compliance
configure:6498: gcc -c -g -O2 -Wall conftest.c 1>&5
configure: In function `main':
configure:6494: warning: unused variable `dir'
configure:6533: checking for working const
configure:6608: checking for inline
configure:6622: gcc -c -g -O2 -Wall conftest.c 1>&5
configure: In function `main':
configure:6618: warning: control reaches end of non-void function
configure: At top level:
configure:6618: warning: return type defaults to `int'
configure:6684: checking for pkg-config
configure:6732: checking for GTK+ - version >= 1.3.13
configure:6842: gcc -o conftest -g -O2 -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include conftest.c -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 1>&5
configure:6945: checking for pkg-config
configure:6995: checking for GLIB - version >= 1.3.13
configure:7109: gcc -o conftest -g -O2 -Wall -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include conftest.c -lglib-2.0 1>&5
configure:7242: checking for gtk+-2.0 >= 1.3.13
configure:7249: checking GTK_CFLAGS
configure:7254: checking GTK_LIBS