Edit the generated Makefile, puting a valid # after the -release...

There is something wrt to automake/autoconf/make, whatever, where it doesn't
put the version # in properly.  I though this was fixed, but it comes back.

1. run ./autogen.sh -1  this rebuilds everything and is an especially good
idea if your environment isn't 100% the same as Luca's...

2. I use this patch, fwiw:

--- ntop-current/Makefile.am    Tue Jan  8 17:05:04 2002
+++ 2.0-released/Makefile.am    Fri Dec 28 08:57:06 2001
@@ -57,5 +57,6 @@
 SUBDIRS = . @PLUGINS@ @INTOP@

-DIST_COMMON = AUTHORS CONTENTS COPYING ChangeLog \
+DIST_COMMON =
+DIST_COMMON += AUTHORS CONTENTS COPYING ChangeLog \
               MANIFESTO NEWS PORTING  \
               SUPPORT_NTOP.txt THANKS \
@@ -130,5 +131,5 @@
 libntop_la_DEPENDENCIES = config.h
 libntop_la_LIBADD       = $(CORELIBS)
-libntop_la_LDFLAGS      = -version-info @NTOP_VERSION_INFO@ -release
@NTOP_RELEASE@ -export-dynamic @DYN_FLAGS@
+libntop_la_LDFLAGS      = -version-info 0 -release 2 -export-dynamic
@DYN_FLAGS@

 # Archive for http representation, or the 'viewer'
@@ -144,5 +145,5 @@
 libntopreport_la_DEPENDENCIES = config.h
 libntopreport_la_LIBADD       = $(MORELIBS)
-libntopreport_la_LDFLAGS      = -version-info @NTOP_VERSION_INFO@ -release
@NTOP_RELEASE@ -export-dynamic @DYN_FLAGS@
+libntopreport_la_LDFLAGS      = -version-info 0 -release 2 -export-dynamic
@DYN_FLAGS@

 man_MANS = ntop.8 intop/intop.1
--- ntop-current/plugins/pep/Makefile.am        Wed Jan  2 17:07:21 2002
+++ 2.0-released/plugins/pep/Makefile.am        Fri Dec 28 08:57:06 2001
@@ -24,5 +24,6 @@
 #

-DIST_COMMON = Makefile.am Makefile.in
+DIST_COMMON =
+DIST_COMMON += Makefile.am Makefile.in
 CLEANFILES  =
 EXTRA_DIST  = available.pl hosts.pl
@@ -54,6 +55,6 @@
 LIBS = # ${PEPLIBS}

-pep.so: pep.c
+pep.so($EXEEXT): pep.c
 #      ${CC} -shared ${libpep_la_OBJECTS}
${PEPLIBS} -Wl,-soname -Wl,libpep.so.0 -o pep.so
        @${CC} -shared ${libpep_la_OBJECTS} ${PEPLIBS} -o pep.so
-       (cd .. && ln -fs pep/pep.so .)
\ No newline at end of file
+       (cd .. && ln -fs pep/pep.so .)
--- ntop-current/intop/Makefile.am      Wed Jan  2 17:07:05 2002
+++ 2.0-released/intop/Makefile.am      Fri Dec 28 08:57:06 2001
@@ -25,5 +25,6 @@
 #

-DIST_COMMON = Makefile.am Makefile.in intop.1
+DIST_COMMON =
+DIST_COMMON += Makefile.am Makefile.in intop.1

 DISTCLEANFILES = logger.db ntop.db ntop_pw.db intops
--- ntop-current-original/plugins/Makefile.am   Tue Feb  5 17:05:34 2002
+++ ntop-current/plugins/Makefile.am    Wed Feb  6 10:40:18 2002
@@ -27,5 +27,6 @@
 SUBDIRS = . #pep

-DIST_COMMON = Makefile.am Makefile.in
+DIST_COMMON =
+DIST_COMMON += Makefile.am Makefile.in
 CLEANFILES  =
 EXTRA_DIST  =
@@ -52,20 +53,20 @@

 libicmpPlugin_la_SOURCES = icmpPlugin.c
-libicmpPlugin_la_LDFLAGS = -shared -version-info @NTOP_VERSION_INFO@
@DYN_FLAGS@
+libicmpPlugin_la_LDFLAGS = -shared -version-info 2 @DYN_FLAGS@

 libsflowPlugin_la_SOURCES = sflowPlugin.c
-libsflowPlugin_la_LDFLAGS = -shared -version-info @NTOP_VERSION_INFO@
@DYN_FLAGS@
+libsflowPlugin_la_LDFLAGS = -shared -version-info 2 @DYN_FLAGS@

 liblastSeenPlugin_la_SOURCES = lastSeenPlugin.c
-liblastSeenPlugin_la_LDFLAGS = -shared -version-info @NTOP_VERSION_INFO@
@DYN_FLAGS@
+liblastSeenPlugin_la_LDFLAGS = -shared -version-info 2 @DYN_FLAGS@

 libnfsPlugin_la_SOURCES = nfsPlugin.c
-libnfsPlugin_la_LDFLAGS = -shared -version-info @NTOP_VERSION_INFO@
@DYN_FLAGS@
+libnfsPlugin_la_LDFLAGS = -shared -version-info 2 @DYN_FLAGS@

 #librmonPlugin_la_SOURCES = rmonPlugin.c rmon.h
-#librmonPlugin_la_LDFLAGS = @SNMPLIBS@ -shared -version-info
@NTOP_VERSION_INFO@ @DYN_FLAGS@
+#librmonPlugin_la_LDFLAGS = @SNMPLIBS@ -shared -version-info 2 @DYN_FLAGS@

 #libwapPlugin_la_SOURCES = wapPlugin.c
-#libwapPlugin_la_LDFLAGS = -shared -version-info @NTOP_VERSION_INFO@
@DYN_FLAGS@
+#libwapPlugin_la_LDFLAGS = -shared -version-info 2 @DYN_FLAGS@


@@ -79,5 +80,5 @@
        cc -bundle -flat_namespace -undefined suppress -o
.libs/libicmpPlugin.so@SO_VERSION_PATCH@ icmpPlugin.o

-icmpPlugin.so: .libs/libicmpPlugin.so@SO_VERSION_PATCH@
+icmpPlugin.so$(EXEEXT): .libs/libicmpPlugin.so@SO_VERSION_PATCH@
        @ln -s .libs/libicmpPlugin.so icmpPlugin.so

@@ -85,5 +86,5 @@
        cc -bundle -flat_namespace -undefined suppress -o
.libs/libsflowPlugin.so@SO_VERSION_PATCH@ sflowPlugin.o

-sflowPlugin.so: .libs/libsflowPlugin.so@SO_VERSION_PATCH@
+sflowPlugin.so$(EXEEXT): .libs/libsflowPlugin.so@SO_VERSION_PATCH@
        @ln -s .libs/libsflowPlugin.so sflowPlugin.so

@@ -91,5 +92,5 @@
        cc -bundle -flat_namespace -undefined suppress -o
.libs/liblastSeenPlugin.so@SO_VERSION_PATCH@ lastSeenPlugin.o

-lastSeenPlugin.so: .libs/liblastSeenPlugin.so@SO_VERSION_PATCH@
+lastSeenPlugin.so$(EXEEXT): .libs/liblastSeenPlugin.so@SO_VERSION_PATCH@
        @ln -s .libs/liblastSeenPlugin.so lastSeenPlugin.so

@@ -97,5 +98,5 @@
        cc -bundle -flat_namespace -undefined suppress -o
.libs/libnfsPlugin.so@SO_VERSION_PATCH@ nfsPlugin.o

-nfsPlugin.so: .libs/libnfsPlugin.so@SO_VERSION_PATCH@
+nfsPlugin.so$(EXEEXT): .libs/libnfsPlugin.so@SO_VERSION_PATCH@
        @ln -s .libs/libnfsPlugin.so nfsPlugin.so

@@ -103,5 +104,5 @@
 #      cc -bundle -flat_namespace -undefined suppress -o
.libs/librmonPlugin.so@SO_VERSION_PATCH@ rmonPlugin.o

-#rmonPlugin.so: .libs/librmonPlugin.so@SO_VERSION_PATCH@
+#rmonPlugin.so$(EXEEXT): .libs/librmonPlugin.so@SO_VERSION_PATCH@
 #      @ln -s .libs/librmonPlugin.so rmonPlugin.so

@@ -109,5 +110,5 @@
 #      cc -bundle -flat_namespace -undefined suppress -o
.libs/libwapPlugin.so@SO_VERSION_PATCH@ wapPlugin.o

-#wapPlugin.so: .libs/libwapPlugin.so@SO_VERSION_PATCH@
+#wapPlugin.so$(EXEEXT): .libs/libwapPlugin.so@SO_VERSION_PATCH@
 #      @ln -s .libs/libwapPlugin.so wapPlugin.so


-----Burton


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sean
O'Neill
Sent: Friday, February 15, 2002 9:58 AM
To: [EMAIL PROTECTED]
Subject: RE: [Ntop] FreeBSD 4.5R and LOTS of ntop zombies when using web
interface


I'm trying to compile snapshot 2-15-2002 but I'm getting the following
error on FreeBSD 4.5R:

# gmake
gmake  all-recursive
gmake[1]: Entering directory `/tmp/ntop-current/ntop'
Making all in .
gmake[2]: Entering directory `/tmp/ntop-current/ntop'
/bin/sh ./libtool --mode=link gcc  -g -O2 -pipe  -o libntop.la -rpath
/usr/local/ntop/lib -version-info  -release  -export-dynamic  address.lo
dataFormat.lo event.lo globals-core.lo hash.lo initialize.lo leaks.lo
logger.lo mysql.lo netflow.lo ntop.lo pbuf.lo protocols.lo plugin.lo
qsort.lo regex.lo rules.lo sql.lo sessions.lo ssl.lo term.lo traffic.lo
util.lo vendor.lo version.lo ntop_darwin.lo -lpcap -L/usr/local/lib -lgdbm
-lc_r   -lcrypt -lm -lz -L/tmp/ntop-current/gdchart0.94c -lgdchart
-L/tmp/ntop-current/gdchart0.94c/gd-1.8.3 -lgd
-L/tmp/ntop-current/gdchart0.94c/gd-1.8.3/libpng-1.0.8 -lpng
-L/tmp/ntop-current/gdchart0.94c/zlib-1.1.3 -lz -lssl -lcrypto
libtool: link: CURRENT `-release' is not a nonnegative integer
libtool: link: `-release' is not valid version information
gmake[2]: *** [libntop.la] Error 1
gmake[2]: Leaving directory `/tmp/ntop-current/ntop'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/ntop-current/ntop'
gmake: *** [all-recursive-am] Error 2

Any ideas how I can "fix" this and continue testing ?

At 07:26 AM 2/15/2002 -0600, Burton M. Strauss III wrote:
>In my 04Feb2002 message about changes to ntop, I mentioned the zombie:
>
>7. Some code that looks like it's work on the BSD zombie problem... grep
for
>usedFork...  then again...
>
>Have you tried one of the more recent snapshots?  Feed back on whether it's
>fixed would be useful...
>
>-----Burton
>
>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sean
>O'Neill
>Sent: Thursday, February 14, 2002 9:31 AM
>To: [EMAIL PROTECTED]
>Subject: [Ntop] FreeBSD 4.5R and LOTS of ntop zombies when using web
>interface
>
>
>I noticed that in Jan 02 of the ntop archives that a couple of posts for
>FreeBSD 4.5 having ntop zombies showing up when using the web interface.  I
>recently installed the ntop port in FreeBSD 4.5R.  It runs fine.  Its just
>I don't particularly like having 306+ ntop zombies laying around.
>
>Besides the -K switch, was any resolution found for this annoying issue ?
>
>-
>........................................................
>......... ..- -. .. -..- .-. ..- .-.. . ... ............
>.-- .. -. -... .-.. --- .-- ... -.. .-. --- --- .-.. ...
>
>Sean O'Neill
>
>_______________________________________________
>Ntop mailing list
>[EMAIL PROTECTED]
>http://listmanager.unipi.it/mailman/listinfo/ntop
>
>_______________________________________________
>Ntop mailing list
>[EMAIL PROTECTED]
>http://listmanager.unipi.it/mailman/listinfo/ntop

-
........................................................
......... ..- -. .. -..- .-. ..- .-.. . ... ............
.-- .. -. -... .-.. --- .-- ... -.. .-. --- --- .-.. ...

Sean O'Neill

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop

Reply via email to