#4699: bison-3.7
--------------------+-----------------------
 Reporter:  bdubbs  |       Owner:  lfs-book
     Type:  task    |      Status:  new
 Priority:  normal  |   Milestone:  10.0
Component:  Book    |     Version:  SVN
 Severity:  normal  |  Resolution:
 Keywords:          |
--------------------+-----------------------

Comment (by bdubbs):

 Upstream is being too clever.  There is one place that uses ostream_printf
 and another that uses styled_ostream_set_hyperlink,  These are just used
 to format error messages in complain.c.

 I was able to get bison to build by adding the following:

 {{{

 static inline ptrdiff_t
 ostream_printf (ostream_t stream, const char *format, ...)
 {
   va_list args;
   char *temp_string;
   ptrdiff_t ret;

   va_start (args, format);
   ret = vasprintf (&temp_string, format, args);
   va_end (args);
   if (ret >= 0)
     {
       if (ret > 0)
         ostream_write_str (stream, temp_string);
       free (temp_string);
     }
   return ret;
 }
 }}}

 to complain.c.  I also needed to comment out styled_ostream_set_hyperlink
 in two places.  I took the  ostream_printf function from
 lib/textstyle.in.h.

 I'd rather add a patch to bison rather than a new library.

--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/4699#comment:2>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to