ninpaths

Alexey Luckyanchikov alexl at alkar.net
Mon Jan 29 16:33:40 UTC 2001



On 29 Jan 2001, Russ Allbery wrote:

RA> INN doesn't use DEFS for anything, so I don't understand what this would

Macro VERSION defined in DEFS is required to compile ninpaths.c. If you
try to compile it without DEFS you'll receive:

gcc -g -O2 -I../include   -o ninpaths.o -c ninpaths.c
ninpaths.c: In function `writedump':
ninpaths.c:149: parse error before `VERSION'
ninpaths.c: In function `report':
ninpaths.c:420: `VERSION' undeclared (first use this function)
ninpaths.c:420: (Each undeclared identifier is reported only once
ninpaths.c:420: for each function it appears in.)
*** Error code 1

RA> change.  INN also uses $< all over the place, so I don't see how this
RA> change would really help.
RA>
RA> Thanks for the LDFLAGS/CFLAGS stuff; I'll fix that.
RA>
RA> For the rest, what problem are you trying to solve?

Ninpaths compilation failed. It was only one problem :)

sendinpaths also requires a small modification:

--- contrib/ninpaths/sendinpaths.in.orig	Mon Jan 29 18:03:42 2001
+++ contrib/ninpaths/sendinpaths.in	Mon Jan 29 18:04:18 2001
@@ -7,7 +7,7 @@
 # Assuming the ninpaths dump files are in ${MOST_LOGS}/path/inpaths.%d

 cd ${MOST_LOGS}/path
-ME=`innconfval pathhost`
+ME=`${NEWSBIN}/innconfval pathhost`
 report=30
 keep=14
 TMP=tmp$$

-- 
Sincerely,                                      e-mail: alexl at alkar.net
Alexey Luckyanchikov



More information about the inn-bugs mailing list