Opened 18 years ago

Closed 18 years ago

#1858 closed defect (worksforme)

NAS-1.7 patch

Reported by: craigmjackson@… Owned by: blfs-book@…
Priority: normal Milestone: 6.2.0
Component: BOOK Version: SVN
Severity: major Keywords: NAS
Cc:

Description

in BLFS-SVN-20060324: when installing NAS-1.7: Here is the output of "make install" from the result of the SVN instructions:

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 -Di386 -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DNASCONFSEARCHPATH=\"/etc/nas/\" lex.c <stdout>: In function 'yylex': <stdout>:834: error: 'yy_prev_more_offset' undeclared (first use in this function) <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 +0200 @@ -173,7 +173,6 @@

AuCreateResourceTypes() {

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 +0200 @@ -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 message:

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 `/home/epitome/sources/nas-1.7/server/dda/voxware' 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 `/home/epitome/sources/nas-1.7/server/dda/voxware' 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 :)

Attachments (1)

nas-1.7-gcc4-1.patch.epitome (6.3 KB ) - added by craigmjackson@… 18 years ago.
Modified version of Randy McMurchy's patch

Download all attachments as: .zip

Change History (6)

by craigmjackson@…, 18 years ago

Modified version of Randy McMurchy's patch

comment:1 by Randy McMurchy, 18 years ago

Keywords: rman dia lex removed

I have installed NAS in 3 separate installations using current BLFS SVN. One as recent as 20060322. I don't see any issues, specifically, I don't see this issue, building NAS. It builds clean and works as it is supposed to.

I'll leave the ticket open for a week or so, and if nobody can confirm the issues actually exist, I'll close the ticket.

comment:2 by Randy McMurchy, 18 years ago

Last chance before this ticket is closed as 'worksforme'. Will close on 4/23 if nobody speaks up with anything.

comment:3 by craigmjackson@…, 18 years ago

I am about to test again with latest SVN. My jhalfs should be done by now and I will install NAS and its dependencies when I get off work at 8:00pm PST. It should be completed before the end of the night, sorry I could not confirm sooner, I have been extremely busy the past few weeks due to my new kid :)

Thanks for the attention to this!

-Craig

comment:4 by craigmjackson@…, 18 years ago

Okay, I tested NAS against the latest LFS-SVN and it compiled cleanly. My original test was several revisions ago. Now it WORKSFORME too. Thank you for your help with this Randy!

Craig Jackson craigmjackson@…

comment:5 by Randy McMurchy, 18 years ago

Resolution: worksforme
Status: newclosed

Closing as WORKSFORME

Note: See TracTickets for help on using tickets.