i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../Source/Include -I/usr/include/php -I/usr/include/php/Zend -I/usr/include/php/main -I/usr/include/php/TSRM -march=athlon-xp -O2 -pipe -Wall -MT libswigphp4_la-libphp4.lo -MD -MP -MF .deps/libswigphp4_la-libphp4.Tpo -c libphp4.c -fPIC -DPIC -o .libs/libswigphp4_la-libphp4.o libphp4.c:288:18: zend.h: No such file or directory libphp4.c:289:22: zend_API.h: No such file or directory libphp4.c:290:17: php.h: No such file or directory libphp4.c:324: warning: return type defaults to `int' libphp4.c: In function `SWIG_SetPointerChar': libphp4.c:357: warning: implicit declaration of function `estrdup' libphp4.c:357: warning: assignment makes pointer from integer without a cast libphp4.c: At top level: libphp4.c:363: error: parse error before '*' token libphp4.c: In function `SWIG_ZTS_SetPointerZval': libphp4.c:366: error: `type' undeclared (first use in this function) libphp4.c:366: error: (Each undeclared identifier is reported only once libphp4.c:366: error: for each function it appears in.) libphp4.c:367: warning: implicit declaration of function `zend_error' libphp4.c:367: error: `E_ERROR' undeclared (first use in this function) libphp4.c:368: warning: implicit declaration of function `emalloc' libphp4.c:369: error: `ptr' undeclared (first use in this function) libphp4.c:370: error: `newobject' undeclared (first use in this function) libphp4.c:371: warning: implicit declaration of function `ZEND_REGISTER_RESOURCE' libphp4.c:371: error: `z' undeclared (first use in this function) libphp4.c: At top level: libphp4.c:465: error: parse error before '*' token libphp4.c: In function `SWIG_ZTS_ConvertResourcePtr': libphp4.c:471: warning: implicit declaration of function `zend_list_find' libphp4.c:471: error: `z' undeclared (first use in this function) libphp4.c:475: warning: implicit declaration of function `zend_rsrc_list_get_rsrc_type' libphp4.c:475: warning: assignment makes pointer from integer without a cast libphp4.c:477: error: `ptr' undeclared (first use in this function) libphp4.c:477: error: `ty' undeclared (first use in this function) libphp4.c: At top level: libphp4.c:489: error: parse error before '*' token libphp4.c: In function `SWIG_ZTS_ConvertPtr': libphp4.c:491: error: `zval' undeclared (first use in this function) libphp4.c:491: error: `val' undeclared (first use in this function) libphp4.c:493: error: `z' undeclared (first use in this function) libphp4.c:494: error: `ptr' undeclared (first use in this function) libphp4.c:498: error: `IS_OBJECT' undeclared (first use in this function) libphp4.c:499: error: `_cPtr' undeclared (first use in this function) libphp4.c:500: warning: implicit declaration of function `zend_hash_find' libphp4.c:500: warning: implicit declaration of function `HASH_OF' libphp4.c:500: error: `SUCCESS' undeclared (first use in this function) libphp4.c:502: error: `IS_STRING' undeclared (first use in this function) libphp4.c:502: warning: implicit declaration of function `Z_STRVAL_PP' libphp4.c:502: warning: assignment makes pointer from integer without a cast libphp4.c:503: error: `IS_RESOURCE' undeclared (first use in this function) libphp4.c:504: error: `ty' undeclared (first use in this function) libphp4.c:510: warning: implicit declaration of function `Z_STRVAL_P' libphp4.c:510: warning: assignment makes pointer from integer without a cast libphp4.c:552:21: php_ini.h: No such file or directory libphp4.c:553:31: ext/standard/info.h: No such file or directory In file included from libphp4.c:554: php_swigrun.h: At top level: php_swigrun.h:34: error: parse error before "swigrun_module_entry" php_swigrun.h:34: warning: type defaults to `int' in declaration of `swigrun_module_entry' php_swigrun.h:34: warning: data definition has no type or storage class php_swigrun.h:43: warning: type defaults to `int' in declaration of `PHP_MINIT_FUNCTION' php_swigrun.h:43: warning: parameter names (without types) in function declaration php_swigrun.h:43: warning: data definition has no type or storage class php_swigrun.h:44: warning: type defaults to `int' in declaration of `PHP_MSHUTDOWN_FUNCTION' php_swigrun.h:44: warning: parameter names (without types) in function declaration php_swigrun.h:44: warning: data definition has no type or storage class php_swigrun.h:45: warning: type defaults to `int' in declaration of `PHP_RINIT_FUNCTION' php_swigrun.h:45: warning: parameter names (without types) in function declaration php_swigrun.h:45: warning: data definition has no type or storage class php_swigrun.h:46: warning: type defaults to `int' in declaration of `PHP_RSHUTDOWN_FUNCTION' php_swigrun.h:46: warning: parameter names (without types) in function declaration php_swigrun.h:46: warning: data definition has no type or storage class php_swigrun.h:47: warning: type defaults to `int' in declaration of `PHP_MINFO_FUNCTION' php_swigrun.h:47: warning: parameter names (without types) in function declaration php_swigrun.h:47: warning: data definition has no type or storage class libphp4.c:564: error: parse error before "swigrun_functions" libphp4.c:564: warning: type defaults to `int' in declaration of `swigrun_functions' libphp4.c:565: warning: braces around scalar initializer libphp4.c:565: warning: (near initialization for `swigrun_functions[0]') libphp4.c:565: warning: initialization makes integer from pointer without a cast libphp4.c:565: warning: excess elements in scalar initializer libphp4.c:565: warning: (near initialization for `swigrun_functions[0]') libphp4.c:565: warning: excess elements in scalar initializer libphp4.c:565: warning: (near initialization for `swigrun_functions[0]') libphp4.c:566: warning: data definition has no type or storage class libphp4.c:568: error: parse error before "swigrun_module_entry" libphp4.c:568: warning: type defaults to `int' in declaration of `swigrun_module_entry' libphp4.c:572: warning: initialization makes integer from pointer without a cast libphp4.c:573: warning: excess elements in scalar initializer libphp4.c:573: warning: (near initialization for `swigrun_module_entry') libphp4.c:574: warning: implicit declaration of function `PHP_MINIT' libphp4.c:574: error: `swigrun' undeclared here (not in a function) libphp4.c:574: warning: excess elements in scalar initializer libphp4.c:574: warning: (near initialization for `swigrun_module_entry') libphp4.c:575: warning: implicit declaration of function `PHP_MSHUTDOWN' libphp4.c:575: warning: excess elements in scalar initializer libphp4.c:575: warning: (near initialization for `swigrun_module_entry') libphp4.c:576: warning: implicit declaration of function `PHP_RINIT' libphp4.c:576: warning: excess elements in scalar initializer libphp4.c:576: warning: (near initialization for `swigrun_module_entry') libphp4.c:577: warning: implicit declaration of function `PHP_RSHUTDOWN' libphp4.c:577: warning: excess elements in scalar initializer libphp4.c:577: warning: (near initialization for `swigrun_module_entry') libphp4.c:578: warning: implicit declaration of function `PHP_MINFO' libphp4.c:578: warning: excess elements in scalar initializer libphp4.c:578: warning: (near initialization for `swigrun_module_entry') libphp4.c:583: error: `STANDARD_MODULE_PROPERTIES' undeclared here (not in a function) libphp4.c:583: warning: excess elements in scalar initializer libphp4.c:583: warning: (near initialization for `swigrun_module_entry') libphp4.c:583: warning: data definition has no type or storage class libphp4.c:584: error: parse error before '*' token libphp4.c:584: warning: type defaults to `int' in declaration of `SWIG_module_entry' libphp4.c:584: warning: data definition has no type or storage class libphp4.c:614: error: parse error before "PHP_MSHUTDOWN_FUNCTION" libphp4.c:615: warning: return type defaults to `int' libphp4.c: In function `PHP_MSHUTDOWN_FUNCTION': libphp4.c:616: error: `SUCCESS' undeclared (first use in this function) libphp4.c: At top level: libphp4.c:619: warning: return type defaults to `int' libphp4.c: In function `PHP_MINIT_FUNCTION': libphp4.c:625: warning: implicit declaration of function `CG' libphp4.c:625: error: `active_class_entry' undeclared (first use in this function) libphp4.c:625: error: invalid lvalue in assignment libphp4.c:628: error: `SUCCESS' undeclared (first use in this function) libphp4.c: At top level: libphp4.c:631: warning: return type defaults to `int' libphp4.c: In function `PHP_RINIT_FUNCTION': libphp4.c:638: error: `SUCCESS' undeclared (first use in this function) libphp4.c: At top level: libphp4.c:641: warning: return type defaults to `int' libphp4.c: In function `PHP_RSHUTDOWN_FUNCTION': libphp4.c:642: error: `SUCCESS' undeclared (first use in this function) libphp4.c: At top level: libphp4.c:645: warning: return type defaults to `int' libphp4.c:324: warning: 'ZEND_RSRC_DTOR_FUNC' defined but not used make[1]: *** [libswigphp4_la-libphp4.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/swig-1.3.21/work/SWIG-1.3.21/Runtime' make: *** [runtime] Error 2 # emerge info Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.13-gentoo-r5 i686) ================================================================= System uname: 2.6.13-gentoo-r5 i686 AMD Athlon(tm) XP 3000+ Gentoo Base System version 1.6.13 ccache version 2.3 [disabled] dev-lang/python: 2.2.3-r6, 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks emergemail fixpackages nostrip notitles sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_GB" LINGUAS="en_GB" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-gentopia" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 4kstacks S3TC X aac aalib acpi acpi4linux apm arts artswrappersuid audiofile avi bash-completion berkdb bitmap-fonts browserplugin bzip2 bzlib calendar cddb cdparanoia cdr codecs cscope cups curl curlwrappers dbase devmap dmx doc dv dvd dvdr dvdread emboss encode escreen esd exif expat faac faad fam fbcon ffmpeg flac foomaticdb ftp gd ggi gif gimp gimpprint glut gmp gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml idn imagemagick imlib innodb interbase iodbc java javascript jbig joystick jp2 jpeg jpeg2k junit kde kdexdeltas lcms libg++ libwww live lua lzw-tiff mad maildir mbox mhash mikmod mime mmx mmx2 mng monkey mono motif mozcalendar moznocompose moznoirc mp3 mpeg mysql mysqli ncurses network nls no_wxgtk1 nocardbus nomac nptl nsplugin odbc ogg oggvorbis ooo-kde opengl oss pcre pdflib perl png posix ppds python qt quicktime readline real rtc samba scanner sdl slang slp smartcard sox speex spell sqlite sqlite3 sse ssl svg tcltk tcpd tetex tga theora tiff timidity truetype truetype-fonts type1-fonts udev unicode usb videos vim-with-x vorbis win32codecs wmf wxwindows xbase xine xml xml2 xmms xpm xv xvid yv12 zlib linguas_en_GB userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS
not a bug with gcc-3.4, i used 3.4.4 to build swig often
This version is not in the tree anymore, needs verification with newer swig.