Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33039 - fltk 1.1.4 and Python 2.2.3-r5 compilation fails because of sed problems with sed 4.0.7
Summary: fltk 1.1.4 and Python 2.2.3-r5 compilation fails because of sed problems with...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: Highest major (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-08 14:38 UTC by Raymond Causton
Modified: 2003-11-30 23:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raymond Causton 2003-11-08 14:38:43 UTC
When trying to 'emerge -u --deep world' both fltk 1.1.4 and Python-2.2.3-r5 
fail because of sed errors during their configure scripts: 
 
FLTK 1.1.4 Errors: 
>>> md5 src_uri ;-) fltk-1.1.4-source.tar.bz2 
eutils 
>>> Unpacking source... 
>>> Unpacking fltk-1.1.4-source.tar.bz2 to /var/tmp/portage/fltk-1.1.4/work 
 * Applying libs.diff...                                                       
[ ok ] 
>>> Source unpacked. 
eutils 
opengl 
nptl 
configure: WARNING: If you wanted to set the --build type, don't use --host. 
    If a cross compiler is detected then cross compile mode will be used. 
checking for i686-pc-linux-gnu-gcc... g++ 
checking for C compiler default output... 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 g++ accepts -g... yes 
checking for i686-pc-linux-gnu-g++... g++ 
checking whether we are using the GNU C++ compiler... yes 
checking whether g++ accepts -g... yes 
checking for nroff... /usr/bin/nroff 
checking for htmldoc... no 
checking for i686-pc-linux-gnu-ranlib... no 
checking for ranlib... ranlib 
checking for ar... /usr/bin/ar 
checking whether byte ordering is bigendian... no 
checking how to run the C preprocessor... g++ -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 short... yes 
checking size of short... 2 
checking for int... yes 
checking size of int... 4 
checking for long... yes 
checking size of long... 4 
checking whether the compiler recognizes bool as a built-in type... yes 
checking for dirent.h that defines DIR... yes 
checking for library containing opendir... none required 
checking sys/select.h usability... yes 
checking sys/select.h presence... yes 
checking for sys/select.h... yes 
checking sys/stdtypes.h usability... no 
checking sys/stdtypes.h presence... no 
checking for sys/stdtypes.h... no 
checking for scandir... yes 
checking for vsnprintf... yes 
checking for snprintf... yes 
checking for strings.h... (cached) yes 
checking for strcasecmp... yes 
checking for strlcat... no 
checking for strlcpy... no 
checking for library containing pow... none required 
checking jpeglib.h usability... yes 
checking jpeglib.h presence... yes 
checking for jpeglib.h... yes 
checking for jpeg_destroy_decompress in -ljpeg... yes 
checking zlib.h usability... yes 
checking zlib.h presence... yes 
checking for zlib.h... yes 
checking for gzopen in -lz... yes 
checking png.h usability... yes 
checking png.h presence... yes 
checking for png.h... yes 
checking libpng/png.h usability... yes 
checking libpng/png.h presence... yes 
checking for libpng/png.h... yes 
checking for png_read_rows in -lpng... yes 
checking for png_get_valid... yes 
checking for png_set_tRNS_to_alpha... yes 
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include 
checking for gethostbyname... yes 
checking for connect... yes 
checking for remove... yes 
checking for shmat... yes 
checking for IceConnectionNumber in -lICE... yes 
configure: WARNING: Ignoring libraries " -lSM -lICE" requested by configure. 
checking for library containing dlopen... none required 
checking GL/gl.h usability... yes 
checking GL/gl.h presence... yes 
checking for GL/gl.h... yes 
checking for glXMakeCurrent in -lGL... yes 
checking GL/glu.h usability... yes 
checking GL/glu.h presence... yes 
checking for GL/glu.h... yes 
checking for freetype-config... /usr/bin/freetype-config 
checking X11/Xft/Xft.h usability... yes 
checking X11/Xft/Xft.h presence... yes 
checking for X11/Xft/Xft.h... yes 
checking for XftDrawCreate in -lXft... yes 
checking for X11/extensions/Xdbe.h... yes 
checking for X overlay visuals... no 
checking if libsupc++ is required... yes 
checking if GCC supports -fno-exceptions... yes 
configure: creating ./config.status 
config.status: creating makeinclude 
sed: file /var/tmp/portage/fltk-1.1.4/temp/cs372TvY/subs-2.sed line 16: 
Unterminated `s' command 
sed: Couldn't flush stdout: Broken pipe 
config.status: creating fltk.list 
sed: file /var/tmp/portage/fltk-1.1.4/temp/cs372TvY/subs-2.sed line 16: 
Unterminated `s' command 
sed: couldn't write 66 items to stdout: Broken pipe 
config.status: creating fltk-config 
sed: file /var/tmp/portage/fltk-1.1.4/temp/cs372TvY/subs-2.sed line 16: 
Unterminated `s' command 
sed: Couldn't flush stdout: Broken pipe 
config.status: creating FL/Makefile 
sed: file /var/tmp/portage/fltk-1.1.4/temp/cs372TvY/subs-2.sed line 16: 
Unterminated `s' command 
config.status: creating config.h 
for dir in src fluid test documentation; do\ 
        echo "=== making $dir ===";\ 
        (cd $dir; make - --jobserver-fds=3,4 -j) || break;\ 
done 
=== making src === 
make[1]: Entering directory `/var/tmp/portage/fltk-1.1.4/work/fltk-1.1.4/src' 
make[1]: Nothing to be done for `all'. 
make[1]: Leaving directory `/var/tmp/portage/fltk-1.1.4/work/fltk-1.1.4/src' 
=== making fluid === 
make[1]: Entering directory 
`/var/tmp/portage/fltk-1.1.4/work/fltk-1.1.4/fluid' 
echo Linking fluid... 
Linking fluid... 
g++ -mcpu=athlon-xp -Wno-deprecated -O2 -pipe -Wall -funroll-loops 
g++: no input files 
make[1]: *** [fluid] Error 1 
make[1]: Leaving directory `/var/tmp/portage/fltk-1.1.4/work/fltk-1.1.4/fluid' 
 
>>> Install fltk-1.1.4 into /var/tmp/portage/fltk-1.1.4/image/ category 
x11-libs 
mkdir -p 
mkdir: too few arguments 
Try `mkdir --help' for more information. 
make: [install] Error 1 (ignored) 
rm -f /fltk-config 
ACCESS DENIED  unlink:    /fltk-config 
rm: cannot remove `/fltk-config': Permission denied 
make: *** [install] Error 1 
 
!!! ERROR: x11-libs/fltk-1.1.4 failed. 
!!! Function einstall, Line 361, Exitcode 2 
!!! einstall failed 
 
--------------------------- ACCESS VIOLATION SUMMARY 
--------------------------- 
LOG FILE = "/tmp/sandbox-fltk-1.1.4-20475.log" 
 
unlink:    /fltk-config 
-------------------------------------------------------------------------------- 
 
 
PYTHON 2.2.3-r5: 
>>> emerge (1 of 1) dev-lang/python-2.2.3-r5 to / 
>>> md5 src_uri ;-) Python-2.2.3.tgz 
flag-o-matic 
eutils 
alternatives 
python 
>>> Unpacking source... 
>>> Unpacking Python-2.2.3.tgz to /var/tmp/portage/python-2.2.3-r5/work 
 * Applying python-2.2.3-db4.patch...                                          
[ ok ] 
 * Applying python-2.2.3-disable_modules_and_ssl.patch...                      
[ ok ] 
 * Applying python-2.3-add_portage_search_path.patch...                        
[ ok ] 
 * Applying python-2.2.3-gentoo_py_dontcompile.patch...                        
[ ok ] 
>>> Source unpacked. 
flag-o-matic 
eutils 
alternatives 
python 
gdbm 
berkdb 
readline 
tcltk 
ncurses 
ssl 
creating cache ./config.cache 
checking MACHDEP... linux2 
checking for --without-gcc... no 
checking for --with-cxx=<compiler>... no 
checking for c++... g++ 
checking whether the C++ compiler (g++ -mcpu=athlon-xp -Wno-deprecated -O2 
-pipe -Wall -funroll-loops 
 -fprefetch-loop-arrays -finline-limit=1200 -falign-functions=32 ) works... 
yes 
checking whether the C++ compiler (g++ -mcpu=athlon-xp -Wno-deprecated -O2 
-pipe -Wall -funroll-loops 
 -fprefetch-loop-arrays -finline-limit=1200 -falign-functions=32 ) is a 
cross-compiler... no 
checking for gcc... gcc 
checking whether the C compiler (gcc -mcpu=athlon-xp -O3 -pipe ) works... yes 
checking whether the C compiler (gcc -mcpu=athlon-xp -O3 -pipe ) is a 
cross-compiler... no 
checking whether we are using GNU C... yes 
checking whether gcc accepts -g... yes 
checking how to run the C preprocessor... gcc -E 
checking for AIX... no 
checking for minix/config.h... no 
checking for Cygwin environment... no 
checking for mingw32 environment... no 
checking for executable suffix... no 
checking for --with-suffix... 
checking for case-insensitive build directory... no 
checking LIBRARY... libpython$(VERSION).a 
checking LINKCC... $(PURIFY) $(CXX) 
checking LDLIBRARY... libpython$(VERSION).a 
checking for ranlib... ranlib 
checking for ar... ar 
checking for a BSD compatible install... /bin/install -c 
checking for --with-pydebug... no 
checking whether gcc accepts -OPT:Olimit=0... no 
checking whether gcc accepts -Olimit 1500... no 
checking whether pthreads are available without options... no 
checking whether gcc accepts -Kpthread... no 
checking for ANSI C header files... yes 
checking for dlfcn.h... yes 
checking for fcntl.h... yes 
checking for grp.h... yes 
checking for limits.h... yes 
checking for langinfo.h... yes 
checking for locale.h... yes 
checking for ncurses.h... yes 
checking for poll.h... yes 
checking for pthread.h... yes 
checking for signal.h... yes 
checking for stdarg.h... yes 
checking for stddef.h... yes 
checking for stdlib.h... yes 
checking for thread.h... no 
checking for unistd.h... yes 
checking for utime.h... yes 
checking for termios.h... yes 
checking for sys/audioio.h... no 
checking for sys/file.h... yes 
checking for sys/lock.h... no 
checking for sys/modem.h... no 
checking for db_185.h... yes 
checking for db.h... yes 
checking for sys/param.h... yes 
checking for sys/poll.h... yes 
checking for sys/select.h... yes 
checking for sys/socket.h... yes 
checking for sys/time.h... yes 
checking for sys/times.h... yes 
checking for sys/un.h... yes 
checking for sys/utsname.h... yes 
checking for sys/wait.h... yes 
checking for pty.h... yes 
checking for term.h... yes 
checking for libutil.h... no 
checking for ndbm.h... yes 
checking for db1/ndbm.h... yes 
checking for gdbm/ndbm.h... yes 
checking for sys/resource.h... yes 
checking for netpacket/packet.h... yes 
checking for dirent.h that defines DIR... yes 
checking for opendir in -ldir... no 
checking for clock_t in time.h... yes 
checking for mode_t... yes 
checking for off_t... yes 
checking for pid_t... yes 
checking return type of signal handlers... void 
checking for size_t... yes 
checking for uid_t in sys/types.h... yes 
checking size of int... 4 
checking size of long... 4 
checking size of void *... 4 
checking size of char... 1 
checking size of short... 2 
checking size of float... 4 
checking size of double... 8 
checking size of fpos_t... 16 
checking for long long support... yes 
checking size of long long... 8 
checking for uintptr_t support... no 
checking size of off_t... 8 
checking whether to enable large file support... yes 
checking size of time_t... 4 
checking for pthread_t... yes 
checking size of pthread_t... 4 
checking for --enable-toolbox-glue... no 
checking for --enable-framework... no 
checking for dyld... no 
checking SO... .so 
checking LDSHARED... $(CC) -shared 
checking CCSHARED... -fPIC 
checking LINKFORSHARED... -Xlinker -export-dynamic 
checking CFLAGSFORSHARED... 
checking for dlopen in -ldl... yes 
checking for shl_load in -ldld... no 
checking for t_open in -lnsl... no 
checking for socket in -lsocket... no 
checking for --with-libs... no 
checking for --with-signal-module... yes 
checking for --with-dec-threads... no 
checking for --with-threads... yes 
checking for _POSIX_THREADS in unistd.h... yes 
checking for mach/cthreads.h... no 
checking for --with-pth... no 
checking for pthread_create in -lpthread... yes 
checking if PTHREAD_SCOPE_SYSTEM is supported... yes 
checking for pthread_sigmask... yes 
checking for usconfig in -lmpc... no 
checking for thr_create in -lthread... no 
checking if --enable-ipv6 is specified... no 
checking for --with-cycle-gc... yes 
checking for --with-pymalloc... no 
checking for --with-wctype-functions... no 
checking for --with-sgi-dl... no 
checking for --with-dl-dld... no 
checking for dlopen... yes 
checking DYNLOADFILE... dynload_shlib.o 
checking MACHDEP_OBJS... MACHDEP_OBJS 
checking for alarm... yes 
checking for chown... yes 
checking for chroot... yes 
checking for clock... yes 
checking for confstr... yes 
checking for ctermid... yes 
checking for ctermid_r... no 
checking for execv... yes 
checking for flock... yes 
checking for fork... yes 
checking for fsync... yes 
checking for fdatasync... yes 
checking for fpathconf... yes 
checking for ftime... yes 
checking for ftruncate... yes 
checking for gai_strerror... yes 
checking for getgroups... yes 
checking for getlogin... yes 
checking for getpeername... yes 
checking for getpid... yes 
checking for getpwent... yes 
checking for getwd... yes 
checking for hstrerror... yes 
checking for inet_pton... yes 
checking for kill... yes 
checking for link... yes 
checking for lstat... yes 
checking for mkfifo... yes 
checking for mktime... yes 
checking for mremap... yes 
checking for nice... yes 
checking for pathconf... yes 
checking for pause... yes 
checking for plock... no 
checking for poll... yes 
checking for pthread_init... no 
checking for putenv... yes 
checking for readlink... yes 
checking for select... yes 
checking for setegid... yes 
checking for seteuid... yes 
checking for setgid... yes 
checking for setgroups... yes 
checking for setlocale... yes 
checking for setregid... yes 
checking for setreuid... yes 
checking for setsid... yes 
checking for setpgid... yes 
checking for setuid... yes 
checking for setvbuf... yes 
checking for snprintf... yes 
checking for sigaction... yes 
checking for siginterrupt... yes 
checking for sigrelse... yes 
checking for strftime... yes 
checking for strptime... yes 
checking for symlink... yes 
checking for sysconf... yes 
checking for tcgetpgrp... yes 
checking for tcsetpgrp... yes 
checking for tempnam... yes 
checking for timegm... yes 
checking for times... yes 
checking for tmpfile... yes 
checking for tmpnam... yes 
checking for tmpnam_r... yes 
checking for truncate... yes 
checking for uname... yes 
checking for unsetenv... yes 
checking for waitpid... yes 
checking for _getpty... no 
checking for getpriority... yes 
checking for openpty... no 
checking for openpty in -lutil... yes 
checking for forkpty... yes 
checking for fseek64... no 
checking for fseeko... yes 
checking for fstatvfs... yes 
checking for ftell64... no 
checking for ftello... yes 
checking for statvfs... yes 
checking for dup2... yes 
checking for getcwd... yes 
checking for strdup... yes 
checking for strerror... yes 
checking for memmove... yes 
checking for getpgrp... yes 
checking for setpgrp... yes 
checking for gettimeofday... yes 
checking for getaddrinfo... yes 
checking getaddrinfo bug... good 
checking for getnameinfo... yes 
checking whether time.h and sys/time.h may both be included... yes 
checking whether struct tm is in sys/time.h or time.h... time.h 
checking for tm_zone in struct tm... yes 
checking for st_rdev in struct stat... yes 
checking for st_blksize in struct stat... yes 
checking for st_blocks in struct stat... yes 
checking for time.h that defines altzone... no 
checking whether sys/select.h and sys/time.h may both be included... yes 
checking for addrinfo... yes 
checking for sockaddr_storage... yes 
checking whether char is unsigned... no 
checking for working const... yes 
checking for working volatile... yes 
checking for working signed char... yes 
checking for prototypes... yes 
checking for variable length prototypes and stdarg.h... yes 
checking for bad exec* prototypes... no 
checking if sockaddr has sa_len member... no 
checking for bad static forward... no 
checking whether va_list is an array... no 
checking for gethostbyname_r... yes 
checking gethostbyname_r with 6 args... yes 
checking for __fpu_control... yes 
checking for --with-fpectl... yes 
checking for --with-libm=STRING... default LIBM="-lm" 
checking for --with-libc=STRING... default LIBC="" 
checking for hypot... yes 
checking what malloc(0) returns... null 
checking for wchar.h... yes 
checking size of wchar_t... 4 
checking what type to use for unicode... unsigned short 
checking whether byte ordering is bigendian... no 
checking whether right shift extends the sign bit... yes 
checking for getc_unlocked() and friends... yes 
checking for rl_pre_input_hook in -lreadline... yes 
checking for rl_completion_matches in -lreadline... yes 
checking for broken nice()... no 
checking whether mvwdelch is an expression... yes 
checking whether WINDOW has _flags... yes 
checking for socklen_t... yes 
checking for build directories... done 
updating cache ./config.cache 
creating ./config.status 
creating Makefile.pre 
sed: file conftest.s1 line 6: Unterminated `s' command 
sed: couldn't write 27 items to stdout: Broken pipe 
creating Modules/Setup.config 
sed: file conftest.s1 line 6: Unterminated `s' command 
creating pyconfig.h 
creating Setup 
creating Setup.local 
creating Makefile 
make: *** No rule to make target `/Modules/posixmodule.c', needed by 
`Modules/posixmodule.o'.  Stop. 
 
!!! ERROR: dev-lang/python-2.2.3-r5 failed. 
!!! Function src_compile, Line 99, Exitcode 2 
!!! Parallel make failed 
 
 
 

Reproducible: Always
Steps to Reproduce:
1. emerge -u --deep world 
2. 
3. 
Actual Results:  
the errors displayed in the details above. 

Expected Results:  
compile? 

my system has sed 4.0.7 installed, its running gentoo 1.4 vanilla with custom 
2.6.0-test9 kernel, alsa and x + kde 3.1.4.
Comment 1 Raymond Causton 2003-11-10 02:54:27 UTC
Same seems to be the case on libnet-1.1.0-r3 update that arrived over the
weekend. re-emerging sed didn't help. =(

checking for net/ethernet.h... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
sed: file conftest.s1 line 6: Unterminated `s' command
sed: couldn't write 59 items to stdout: Broken pipe
creating man/Makefile
sed: file conftest.s1 line 6: Unterminated `s' command
sed: Couldn't flush stdout: Broken pipe
creating src/Makefile
sed: file conftest.s1 line 6: Unterminated `s' command
sed: couldn't write 57 items to stdout: Broken pipe
creating include/Makefile
sed: file conftest.s1 line 6: Unterminated `s' command
sed: couldn't write 34 items to stdout: Broken pipe
creating include/libnet/Makefile
sed: file conftest.s1 line 6: Unterminated `s' command
sed: Couldn't flush stdout: Broken pipe
creating sample/Makefile
sed: file conftest.s1 line 6: Unterminated `s' command
sed: couldn't write 40 items to stdout: Broken pipe
creating version.h
sed: file conftest.s1 line 6: Unterminated `s' command
creating include/libnet.h
sed: file conftest.s1 line 6: Unterminated `s' command
creating libnet-config
sed: file conftest.s1 line 6: Unterminated `s' command
creating include/config.h
Please note this is libnet 1.1.x.  Any code written for 1.0.x will NOT work
without porting.  Read the MIGRATION document for more info.
make: *** No targets.  Stop.

!!! ERROR: net-libs/libnet-1.1.0-r3 failed.
!!! Function src_compile, Line 17, Exitcode 2
!!! Failed to compile
Comment 2 Raymond Causton 2003-11-20 05:44:07 UTC
Because of this bug, which still persists I've accumulated already the following packages into my update queue because they use sed's s/foo/bar in their configuration files:

mithril root # emerge -pu --deep world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild     U ] dev-lang/python-2.2.3-r5 [2.2.3-r1]
[ebuild     U ] net-libs/libnet-1.0.2a-r3 [1.0.2a-r2]
[ebuild     U ] x11-libs/fltk-1.1.4 [1.1.2-r2]
[ebuild  N    ] net-www/apache-2.0.48-r1
[ebuild     U ] net-irc/irssi-0.8.6-r5 [0.8.6-r2]

Apache here depends on one of the other libs - all the rest fail because of sed.
Comment 3 Raymond Causton 2003-11-20 05:45:07 UTC
Tried sed 4.0.8 from ~x86 with no lock as to this bug too =(
Comment 4 Raymond Causton 2003-11-30 23:53:34 UTC
Well, the problem in the end was a load of make.conf -options that were suggested in a thread in the forums (that were advertised in GWN). 

The problematic options are as follows:

USE="3dnow apache2 dvd gtk2 matrox mozilla nptl openal sse tiff usb wmf \
     xml -gnome"

CFLAGS="-mcpu=athlon-xp -O3 -pipe"

CXXFLAGS="-mcpu=athlon-xp -Wno-deprecated -O2 -pipe -Wall -funroll-loops\
 -fprefetch-loop-arrays -finline-limit=1200 -falign-functions=32"

When I changed these back to:

# USE=""
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
CXXFLAGS="${CFLAGS}"

All pending packages compiled without problems.

Best Regards,

  Raymond Causton