syntax error compiling swig-1.3.29: s939 swig-1.3.29 # ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for bison... bison -y checking for ranlib... ranlib checking whether gcc and cc understand -c and -o together... yes checking for ar... ar checking maximum warning verbosity option... -Wall -W -ansi -pedantic for C++ -Wall -W -ansi -pedantic for C checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for bool... yes checking SO... .so checking LDSHARED... gcc -shared checking CXXSHARED... gcc -shared checking TRYLINKINGWITHCXX... CXXSHARED= g++ -shared checking CCSHARED... -fpic checking RPATH... -Xlinker -rpath $(exec_prefix)/lib -Xlinker -rpath . checking LINKFORSHARED... -Xlinker -export-dynamic Checking for installed packages. Note : None of the following packages are required to compile SWIG checking for popen... yes checking for dlopen in -ldl... yes checking for shl_load in -ldld... no checking for swill_init in -lswill... no checking for main in -lieee... yes checking for crypt in -lcrypt... yes checking for X... libraries /usr/lib64, headers checking for X11 header files... checking for Tcl configuration... found /usr/lib/tclConfig.sh checking for Tcl header files... -isystem /usr/include checking for Tcl library... -L/usr/lib64 -ltcl8.5 checking for python... python checking for Python prefix... /usr checking for Python exec-prefix... /usr checking for Python version... python2.6 checking for Python lib dir... lib checking for Python header files... -I/usr/include/python2.6 -I/usr/lib/python2.6/config checking for Python library... /usr/lib/python2.6/config checking for perl... perl checking for Perl5 header files... /usr/lib64/perl5/5.12.2/x86_64-linux/CORE checking for Perl5 library... perl.so.5.12.2 checking for Perl5 compiler options... -fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 checking for java... java checking for javac... /etc/java-config-2/current-system-vm/bin/javac checking for java include file jni.h... not found checking for gcj... gcj checking for gcjh... gcjh checking for guile-config... /usr/bin/guile-config checking for Guile header files... /usr/include checking for Guile library... /usr/lib64 checking whether Guile's gh_ API works... yes checking whether Guile's SCM_ API works... yes checking for mzscheme... /usr/bin/mzscheme checking for mzc... /usr/bin/mzc checking for MzScheme dynext object... /usr/bin/mzscheme: bad switch: --mute-banner Use the --help or -h flag for help. checking for ruby... ruby checking for Ruby header files... /usr/lib64/ruby/1.8/x86_64-linux checking for Ruby library... -Wl,-R -Wl,/usr/lib64 -L/usr/lib64 -lruby18 in /usr/lib64 checking for php... php checking for PHP4 header files... -I/usr/lib64/php5.3/include/php -I/usr/lib64/php5.3/include/php/main -I/usr/lib64/php5.3/include/php/TSRM -I/usr/lib64/php5.3/include/php/Zend -I/usr/lib64/php5.3/include/php/ext -I/usr/lib64/php5.3/include/php/ext/date/lib checking for Ocaml DL load generator... checking for ocamldlgen... no checking for Ocaml package tool... checking for ocamlfind... no checking for Ocaml compiler... checking for ocamlc... ocamlc checking for Ocaml interpreter... checking for ocaml... yes checking for Ocaml toplevel creator... checking for ocamlmktop... ocamlmktop checking for Ocaml header files... /usr/lib64/ocaml/caml checking for pike... no checking for pike7.6... no checking for pike7.4... no checking for pike7.2... no checking for chicken... no checking for csc... no checking for csi... no checking for chicken-config... no checking for mcs... mcs checking for mono... mono checking for lua... /usr/bin/lua checking Lua version... Lua 5.1 or later checking whether Lua dynamic loading is enabled... yes checking for Lua header files... /usr/include -isystem /usr/include checking for Lua library... /usr/lib -L/usr/lib checking for alisp... no checking for clisp... no configure: creating ./config.status config.status: creating Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating swig.spec sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Source/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/guile/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/xml/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/GIFPlot/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/GIFPlot/Lib/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/chicken/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/csharp/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/guile/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/guilescm/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/java/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/mzscheme/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/ocaml/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/perl5/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/php4/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/pike/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/python/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/ruby/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/tcl/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/lua/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/allegrocl/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/clisp/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/cffi/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Examples/test-suite/uffi/Makefile sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating preinst-swig sed: file ./confstatfE0e70/subs-4.sed line 3: unterminated `s' command config.status: creating Source/Include/swigconfig.h config.status: Source/Include/swigconfig.h is unchanged config.status: executing depfiles commands Reproducible: Always Steps to Reproduce: 1. wget -O swig-1.3.29.tar.gz http://downloads.sourceforge.net/project/swig/swig/swig-1.3.29/swig-1.3.29.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fswig%2Ffiles%2Fswig%2Fswig-1.3.29%2F&ts=1293999696&use_mirror=netcologne 2. tar xjf swig-1.3.29.tar.gz 3. cd swig-1.3.29 4 ./configure the error happens with all sys-apps/sed 4.2, 4.2.1 and 4.2.1-r1 versions
s939 swig-1.3.29 # emerge --info Portage 2.2.0_alpha11 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r3, 2.6.35-gentoo-r12-p5q x86_64) ================================================================= System uname: Linux-2.6.35-gentoo-r12-p5q-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9400_@_2.66GHz-with-gentoo-2.0.1 Timestamp of tree: Sun, 02 Jan 2011 19:30:22 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11-r1 dev-lang/python: 2.6.6-r1, 3.1.2-r4 dev-util/cmake: 2.8.3-r1 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.6.8 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.4.4-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers) Repositories: gentoo n8x0 wiidea gechi varie localPortage aeskulap ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/openvpn/easy-rsa /var/lib/hsqldb /var/spool/torque" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" DISTDIR="/var/gentoo-var/distfiles" FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.wheel.sk/ http://tux.rainside.sk/gentoo/" LC_ALL="it_IT.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" LINGUAS="it en_GB" MAKEOPTS="-j9 -s" PKGDIR="/var/gentoo-var/packages64" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/gentoo-var/portage" PORTDIR_OVERLAY="/var/lib/layman/n8x0 /var/lib/layman/wiidea /var/lib/layman/gechi /var/lib/layman/cloc3Ovl /usr/local/portage /var/lib/layman/portage-aeskulap" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amd64 ao aotuv apache2 asf asyncns audiofile avi bash-completion beagle berkdb bitmap-fonts bluetooth branding browserplugin bzip2 bzlib cairo caps cdda cddb cdparanoia cdr chroot cli coverage cpdflib cpudetection cracklib crypt cspell cups cupsddk curl cxx dba dbus dga directfb divx djvu dlloader dmi dri dts dv dvd dvdr dvdread dvx4linux eds emboss encode esd exif expat fam fbcon ffmpeg flac fontconfig foomaticdb fortran fpx ftp fuse gcj gd gdbm gdu ggvorbis gif gimp gmedia gnome gphoto2 gpm graphviz gs gstreamer gtk gtkhtml hal htmlhandbook iconv idn ieee1394 imagemagick imlib innodb jack java javascript jbig jikes jpeg jpeg2k kde kdehiddenvisibility kdexdeltas kerberos kipi ladspa lame lcdfilter lcms ldap libcaca libnotify libsamplerate live lm_sensors lzo mad madwifi mailwrapper md5sum memlimit mikmod mime mjpeg mmap mmx mng modules motif mozilla mp3 mp4 mpeg mpi mplayer mssql mudflap multilib musicbrainz mysql nas ncurses network newspr nls nptl nptlonly nsplugin ntlm nuv nvidia ogg openexr opengl openmp oss pam pam_chroot pam_timestamp pango pcmcia pcre pdf perl phonon php plasma png portaudio posix ppds pppd pulseaudio pwdb python qt3support qt4 quicktime readline rle rtc samba sasl scanner sdl seamonkey session slang sndfile snmp sox speex spell sse sse2 ssl startup-notification svg sysfs system-sqlite tcltk tcpd tetex tga theora threads tidy tiff tokenizer tools trace truetype truetype-fonts type1-fonts udev unicode urandom usb userlocales utempter vcd vim-syntax vnc vorbis webkit wmf wmp x264 xattr xcb xcomposite xine xinerama xml xml2 xmlreader xmlwriter xmms xorg xpm xslt xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
What do you need such an old version for ? Even before it failed, configure script was showing incorrect output. If it's fixed in the version in the tree (1.3.40, as far as swig1 goes), this is INVALID.
(In reply to comment #2) > What do you need such an old version for ? > > Even before it failed, configure script was showing incorrect output. > > If it's fixed in the version in the tree (1.3.40, as far as swig1 goes), > this is INVALID. > I know it's an old version. but it's needed to compile cturtle in ros project: http://code.ros.org/lurker/message/20101230.071330.1d676eb4.en.html http://www.ros.org/wiki/cturtle/Installation/Gentoo this is a related thread about this problem: http://code.ros.org/lurker/message/20101230.071330.1d676eb4.en.html They told me that 1.3.29 version of swig is needed for them and that it compiles well with Lucid, with a particular sed patch. I'm not able to find it, so I'm reporting here, to have a developer opinion.
(In reply to comment #3) > > They told me that 1.3.29 version of swig is needed for them and that it > compiles well with Lucid, with a particular sed patch. > this is not true, if the patch is this one: http://archive.ubuntu.com/ubuntu/pool/main/s/sed/sed_4.2.1-6.debian.tar.gz and this is the source code: wget http://archive.ubuntu.com/ubuntu/pool/main/s/sed/sed_4.2.1.orig.tar.gz
First of all: don't touch your sed, regardless of what they say. The first thing I'd try is to go around that tool, to force it to use system version, just to see if the upstream claims are correct (as they may very well not be - it seems to be one of those upstreams, that loves adding their own hacks and never tests if they're still needed). Also, that old tarball configures correctly here, so it may be something specific to your setup.
(In reply to comment #5) > > Also, that old tarball configures correctly here, so it may be something > specific to your setup. > you are wright. in a x86 envinronment of mine it configures correctly, too. so, the problem is in my x86_64 system, but I'm not able to find it. if you like, mark this invalid.
I've found the problem. the failure is triggered by dev-scheme/plt-scheme. rimoving this package, swig configure successes. now, I don't know if this bug should be renamed (now it seems a problem of mzscheme) or closed. but it's surely no a sed bug.
We can't support a version of swig that isn't in the tree. In fact that's why old versions get removed. :)