#266 sed: hold space overflow !

Build (61)
Uros Bizjak

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/libxml2 -- getdate.y
[... 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
*** 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


  • Raphael Manfredi

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

    Logged In: YES

    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

    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

    Maybe, awk would be a better choice.

  • Christian Biere

    Christian Biere - 2005-10-07

    Logged In: YES

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


Log in to post a comment.