#266 sed: hold space overflow !

open
Build (61)
7
2003-11-03
2003-11-03
Uros Bizjak
No

On Solaris 2.8, I can't build gtk-gnutella with new
build system. At the end, ./Configure asks me to run
make depend, and I got:

Run make depend now? [y]
Depending in src...
(/bin/sed '/^# DO NOT DELETE/q' Makefile && \ /home/uros/gtk-gnutella/gtk-gnutella-current/mkdep -I..
-I/usr/local/include/gtk-1.2 -I/usr/openwin/include
-I/usr/local/include/glib-1.2
-I/usr/local/lib/glib/include
-I/usr/local/include/libxml2 -- getdate.y
interface-glade1.c
[... lots of *.c files here ...]
utf8.c vendors.c verify.c version.c vmsg.c
walloc.c whitelist.c zalloc.c zlib_util.c | \ /bin/sed -e 's:/usr/lib[^ ]*::g; s:/usr/include[^
]*::g; ' \ -e '/: / b print' -e 'H; d; n; : print' -e 'x; s/\\\n//g' \ -e 's/ */ /g; s/ :/:/;' -e '/: *$/d' \ ) > Makefile.new
sed: hold space overflow !
*** Error code 1
make: Fatal error: Command failed for target `depend'
Current working directory
/home/uros/gtk-gnutella/gtk-gnutella-current/src
*** Error code 1
make: Fatal error: Command failed for target `depend'

man sed says:
Hold space overflowed.
More than 4000 characters were to be
stored in the
hold space.

This error happens with /usr/ucb/sed as well as with
/usr/bin/sed.

Discussion

  • Raphael Manfredi

    • priority: 5 --> 7
    • assigned_to: nobody --> rmanfredi
     
  • Raphael Manfredi

    Logged In: YES
    user_id=13887

    I'll try to see whether something can be done without having
    to move to perl instead of sed!

     
  • Christian Biere

    Christian Biere - 2004-08-18

    Logged In: YES
    user_id=643728

    Couldn't we ship gtk-gnutella (the release tarballs) with a
    static dependency set
    anyway? The extraction of the dependencies takes incredibly
    long on Solaris (with GNU sed, IIRC) and this step is
    unnecessary as far as I can see.

     
  • Christian Biere

    Christian Biere - 2005-09-14

    Logged In: YES
    user_id=643728

    Maybe, awk would be a better choice.

     
  • Christian Biere

    Christian Biere - 2005-10-07

    Logged In: YES
    user_id=643728

    Maybe a pipeline of several sed's can be used to solve the
    problem?

     

Log in to post a comment.