[BLFS Trac] #1858: NAS-1.7 patch

BLFS Trac trac at linuxfromscratch.org
Sat Mar 25 18:15:57 PST 2006

#1858: NAS-1.7 patch
 Reporter:  craigmjackson at gmail.com  |       Owner:  blfs-book at linuxfromscratch.org
     Type:  defect                   |      Status:  new                           
 Priority:  normal                   |   Milestone:  6.2                           
Component:  BOOK                     |     Version:  a-SVN                         
 Severity:  major                    |    Keywords:  NAS rman dia lex              
 in BLFS-SVN-20060324:
 when installing NAS-1.7:
 Here is the output of "make install" from the result of the SVN

 make[1]: Entering directory `/home/epitome/sources/nas-1.7/server'
 making all in server/dia...
 make[2]: Entering directory `/home/epitome/sources/nas-1.7/server/dia'
 rm -f lex.o
 gcc -m32 -c -O2 -fno-strength-reduce -fno-strict-aliasing    -I.
 -I../include -I../../include -I../../lib/audio -I../../include
 -I/usr/include    -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L
 -D_POSIX_SOURCE -D_XOPEN_SOURCE                            -D_BSD_SOURCE
 -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE
 <stdout>: In function 'yylex':
 <stdout>:834: error: 'yy_prev_more_offset' undeclared (first use in this
 <stdout>:834: error: (Each undeclared identifier is reported only once
 <stdout>:834: error: for each function it appears in.)
 make[2]: *** [lex.o] Error 1
 make[2]: Leaving directory `/home/epitome/sources/nas-1.7/server/dia'
 make[1]: *** [dia] Error 2
 make[1]: Leaving directory `/home/epitome/sources/nas-1.7/server'
 make: *** [install] Error 2


 I have found a patch that fixes the "lex" problem.  Can't for the life of
 me find it again, but I have the contents here:

 diff -aur nas-1.7/server/dia/auutil.c nas-1.7.phh/server/dia/auutil.c
 --- nas-1.7/server/dia/auutil.c 1999-09-05 04:43:13.000000000 +0200
 +++ nas-1.7.phh/server/dia/auutil.c     2005-06-05 13:10:19.000000000
 @@ -173,7 +173,6 @@
      void            AuFreeComponent();
 -    static void     freeFlow();

      auComponentType = CreateNewResourceType(AuFreeComponent);
      auFlowType = CreateNewResourceType(freeFlow);
 diff -aur nas-1.7/server/dia/lex.l nas-1.7.phh/server/dia/lex.l
 --- nas-1.7/server/dia/lex.l    2002-07-10 04:28:41.000000000 +0200
 +++ nas-1.7.phh/server/dia/lex.l        2005-06-05 13:15:35.000000000
 @@ -7,6 +7,7 @@
  #include "nasconf.h"

  int Lineno = 1; /* current line number of the scanner */
 +int yy_prev_more_offset;



 When I change the nas-1.7-gcc4-1.patch to reflect the data in the patch I
 found, "make install" runs almost normally.  It stops again with this

 making all in server/os...
 make[2]: Entering directory `/home/epitome/sources/nas-1.7/server/os'
 make[2]: Nothing to be done for `all'.
 make[2]: Leaving directory `/home/epitome/sources/nas-1.7/server/os'
 making all in server/dda/voxware...
 make[2]: Entering directory
 rm -f auvoxware.1x.html auvoxware.1x-html
 rman -f HTML < auvoxware._man \
   > auvoxware.1x-html && mv -f auvoxware.1x-html auvoxware.1x.html
 /bin/sh: rman: command not found
 make[2]: *** [auvoxware.1x.html] Error 127
 make[2]: Leaving directory
 make[1]: *** [dda/voxware] Error 2
 make[1]: Leaving directory `/home/epitome/sources/nas-1.7/server'
 make: *** [install] Error 2


 After installing the "rman" package from source ( available at
 http://superb.dl.sourceforge.net/sourceforge/polyglotman/rman-3.2.tar.gz )
 then the "make install" completes without error.  I will attach Randy's
 patch file with my modifications.  I'm not sure what to do about the
 "rman" dependency since I don't have any editing ability in the book :)

Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/1858>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch

More information about the blfs-book mailing list