Yeah, that's one way to do it... ugly, but it works...  I personally patch
the Makefiles.  Someday I'll learn enough about automake/autoconf/make et al
to fix it for real (ha!).

As to the other problem...

I guess updating to FreeBDS 5 isn't an option?


ATOI(3)             Linux Programmer's Manual             ATOI(3)

NAME
       atoi, atol, atoll, atoq - convert a string to an integer.

SYNOPSIS
       #include <stdlib.h>

       int atoi(const char *nptr);
       long atol(const char *nptr);
       long long atoll(const char *nptr);
       long long atoq(const char *nptr);

DESCRIPTION
       The  atoi() function converts the initial portion of the string
pointed to by nptr to int.  The behaviour
       is the same as

              strtol(nptr, (char **)NULL, 10);

       except that atoi() does not detect errors.

       The atol() and atoll() functions behave the same as atoi(), except
that they convert the initial  portion
       of the string to their return type of long or long long.  atoq() is
an obsolete name for atoll().

RETURN VALUE
       The converted value.

CONFORMING TO
       SVID  3,  POSIX.1, BSD 4.3, ISO/IEC 9899.  ISO/IEC 9899:1990 (C89)
and POSIX.1 (1996 edition) include the
       functions atoi() and atol() only; C99 adds the function atoll().

NOTES
       The non-standard atoq() function is not present in libc 4.6.27 or
glibc 2, but is present  in  libc5  and
       libc  4.7  (though  only as an inline function in <stdlib.h> until
libc 5.4.44).  The atoll() function is
       present in glibc 2 since version 2.0.2, but not in libc4 or libc5.

SEE ALSO
       atof(3), strtod(3), strtol(3), strtoul(3)

GNU                         2000-12-17                    ATOI(3)


I don't know how your version will handle the long long, but you could
create a #define for atoll...  this might work... (or some similar hack)...
I think you might lose some resolution/information if you exceed the size of
a long...  check limits.h


#define atoll(a) (long long) strtol(a, (char **)NULL, 10);


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


K ... I cheated a bit and hacked libtool by changing the following

         #current="$2"
         current=0

This allowed the compile to continue - somewhat.  Now I'm getting this:

.libs/libntop.so: undefined reference to `atoll'
gmake[2]: *** [ntop] 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

According to http://people.freebsd.org/~mike/c99/, atoll() isn't in FreeBSD
4.x - its in FreeBSD 5.x.  So maybe, for FreeBSD 4.x ntop should be using
strtoll() in address.c ?

At 09:58 AM 2/15/2002 -0600, Sean O'Neill wrote:
>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

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

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