Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118948 - mod_python-3.1.4-r1 doesn't compile.
Summary: mod_python-3.1.4-r1 doesn't compile.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 119102 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-13 21:19 UTC by Philip H. Smith
Modified: 2006-01-15 09:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The config log as requested by the ebuild itself. (config.log,8.31 KB, text/plain)
2006-01-13 21:22 UTC, Philip H. Smith
Details
patch to configure.in (mod_python-3.1.4-configure-bash-3.1.patch,473 bytes, patch)
2006-01-15 05:47 UTC, Marien Zwart (RETIRED)
Details | Diff
Patch to 3.1.4-r1 ebuild applying the previous patch and rerunning autoconf (mod_python-ebuild.patch,1.01 KB, patch)
2006-01-15 05:48 UTC, Marien Zwart (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philip H. Smith 2006-01-13 21:19:32 UTC
bombs out with:

checking for python... /usr/bin/python
checking Python version... 2.4
checking Python install prefix... /usr
checking for Py_NewInterpreter in -lpython2.4... yes
checking what libraries Python was linked with... -lpython2.4   -lpthread -ldl -lutil   -lm 
checking linker flags used to link Python...
checking where Python include files are... -I/usr/include/python2.4
./configure: line 2951: syntax error near unexpected token `('
./configure: line 2951: `as_me=`(basename "$0") 2>/dev/null ||'

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/mod_python-3.1.4-r1/work/mod_python-3.1.4/config.log
Comment 1 Philip H. Smith 2006-01-13 21:22:02 UTC
Created attachment 77046 [details]
The config log as requested by the ebuild itself.
Comment 2 Philip H. Smith 2006-01-13 21:23:20 UTC
# emerge info
Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo i686)
=================================================================
System uname: 2.6.15-gentoo i686 Intel(R) Pentium(R) 4 CPU 3.60GHz
Gentoo Base System version 1.12.0_pre14
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirror.datapipe.net/gentoo http://prometheus.cs.wmich.edu/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow S3TC X X509 Xaw3d a52 aac aalib acpi aim alsa apache2 arts artswrappersuid asf async audiofile avi bash-completion berkdb bitmap-fonts bl blender-game bluetooth bonobo bootsplash browserplugin bzip2 cairo cardbus cddb cdio cdparanoia cdr cegui cg chroot cjk cpudetection crypt css cups curl devil dga dhcp dio djbfft dmx doc double-precision dts dvd dvdr dvdread ecc editor edl eds emacs emboss encode enscript escreen exif expat extras fam fat fbcon ffcall ffmpeg figlet firefox flac flood fmod font-server foomaticdb fortran freetds gcj gdbm gif gimpprint glep glitz glut gmail gmailtimestamps gnome gnustep gnutls gphoto2 gpm gps gs gsm gsnd gssapi gstreamer gtk gtk2 gtkhtml guile gzip hal hfs hpn http icecast icq idn ieee1394 imagemagick imap imlib imlib2 inifile inkjar innkeywords innodb intl irc irda irmc jabber jack jack-tmpfs jai java javacomm javamail javascript jbig jce jfs jikes jimi jms jmx joystick jp2 jpeg jpeg2k jta junit jython kde kdeenablefinal kdepim kerberos keyscrub kqemu krb4 ladcca largeterminal latex lcd lcms leim libcaca libclamav libdsk libg++ libsamplerate libvisual libwww lirc live lj lm_sensors logitech-mouse ltsp lua lzo lzw mad maildir mailwrapper mapeditor maps math mccp mcve mgetty mikmod mime ming mjpeg mmap mmx mmxext mng mod mod_irc mod_muc mod_pubsub mozcalendar mozdevelop mozsvg mozxmlterm mp3 mp4live mpeg mpeg2 mpeg4 mplayer msn multi-tty multicall multitarget musepack music nas ncurses neXt net network neural nls nntp no-htdocs nocd nodrm nptl nptlonly nsplugin ntfs numeric nvidia oav objc offensive ofx ogdi ogg oggvorbis ogre on-the-fly-crypt openal openexr opengl openntpd openssh osc oscar pam pam_chroot parse-clocks pcmcia pcntl pcre pda pdflib perl pfpro pg-hier physfs pic plotutils plugin png pnp posix postgres ppds print python qemu-fast qmail qt quicktime quotes rar readline real recode reiserfs remix remote rhino rogue rpc rss rtc sasl savedconfig sblive screen sdl sensord serial session sftp sftplogging sharedmem shorten silc silverxp skey slp smime sms sndfile soap sockets socks5 sounds source sox spamassassin speedo speex spell sse sse2 ssl stencil-buffer stream streamzap stroke subp subtitles subversion svg svgz symlink sysfs sysvipc szip tcpd tetex tga theora threads tidy tiff tools transcode transparent-proxy truetype truetype-fonts trusted type1 type1-fonts udev underscores unicode ups urandom usb utf8 v4l v4l2 vcd vcdimager verbose videos vidix virus-scan visualization vlm vnc voice vorbis web webdav wifi win32codecs winbind wma wma123 wmf xanim xatrix xfs xim xine xinerama xml xml2 xmlrpc xmms xosd xpm xrandr xscreensaver xsl xslt xv xvid xvmc yahoo yv12 zeroconf zlib zvbi elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-01-14 00:46:56 UTC
Sigh. Another bash-3.1 "boon"?
Comment 4 Marien Zwart (RETIRED) gentoo-dev 2006-01-14 01:17:25 UTC
I had a look at this earlier and this line in configure.in seems to be responsible:

MP_VERSION=`echo $MP_VERSION | sed s/\\"//g`

on bash 3.0, foo=`echo \\"` sets foo to '"'. on bash 3.1 it waits for more input. In case of this configure script this makes it fail about 200 lines further on.

Haven't gotten around to patching it yet, but replacing the above line with:

MP_VERSION=`echo $MP_VERSION | sed s/\"//g`

and rerunning autoconf will probably do the trick.
Comment 5 Philip H. Smith 2006-01-15 00:07:06 UTC
To confirm, I've got bash 3.1.

I tried my hand at patching with the change suggested..  still fails with the same error.  Is there anything else that catches your eye?
Comment 6 Marien Zwart (RETIRED) gentoo-dev 2006-01-15 05:47:34 UTC
Created attachment 77162 [details, diff]
patch to configure.in

Makes the change from my earlier comment.
Comment 7 Marien Zwart (RETIRED) gentoo-dev 2006-01-15 05:48:28 UTC
Created attachment 77164 [details, diff]
Patch to 3.1.4-r1 ebuild applying the previous patch and rerunning autoconf
Comment 8 Marien Zwart (RETIRED) gentoo-dev 2006-01-15 05:50:05 UTC
(In reply to comment #5)
> To confirm, I've got bash 3.1.
> 
> I tried my hand at patching with the change suggested..  still fails with the
> same error.  Is there anything else that catches your eye?

Odd, the two patches I just attached fixed it here. Perhaps autoconf didn't rerun? Can you try the patches?

Comment 9 Philip H. Smith 2006-01-15 08:35:12 UTC
Yup, your patches did the trick.  I hadn't realized that autoconf had to be called again explicitly after the epatch (I thought the src_unpack would take place before the first autoconf invocation.)

Thanks!
Comment 10 Marien Zwart (RETIRED) gentoo-dev 2006-01-15 09:17:59 UTC
Committed a fixed 3.1.4-r1, thanks for testing.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-01-15 09:45:56 UTC
*** Bug 119102 has been marked as a duplicate of this bug. ***