Don't really know, but I believe Luca runs Solaris on both.
Questions -
1. If you locate libiconv, do you find it on the various systems?
2. Which gd are you using? Hand compiled, or the binary from Sun Freeware?
(It could be that they have the dependency (and maybe are the source of
libiconv too, for that matter).
3. You might try something fancy in the configureextra/SOLARIS9 file. In
the redhat9, I've got an example of using an if to test for something:
echo " Setting RedHat 9 specific flag values"
CPPFLAGS="-DHAVE_FILEDESCRIPTORBUG ${CPPFLAGS}"
# If we have krb5.h and openssl was compiled with it, we need the -I setting
# since there's no way to easily test the latter and no harm from an
extra -I,
# just do it...
if test -d /usr/kerberos/include &&
test -f /usr/kerberos/include/krb5.h; then
CPPFLAGS="-I/usr/kerberos/include/ ${CPPFLAGS}"
fi
would something like this work across all systems???
if test -f /usr/lib/libiconv.so; then
LIBS="-liconv ${LIBS}"
fi
-----Burton
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike
Tremaine
Sent: Wednesday, November 12, 2003 11:48 PM
To: [EMAIL PROTECTED]
Subject: Re: [Ntop] Solaris 8 & 9 Ntop 2.2.96
On Wed, 2003-11-12 at 19:55, Burton Strauss wrote:
> You might want to try the bogus file descriptor workaround vs. the Socket
0 fix - there's a heap of problems under Linux with fd=0...
>
Ah ha.. I did not see that when search the back traffic. (or more
specifically I stopped at the first answer I found.) I've backed out my
webInterface.c change and added the cppflag. This works fine.
So I now have
[EMAIL PROTECTED] ~/ntop_2.2.96/ntop [7] cvs diff webInterface.c
[EMAIL PROTECTED] ~/ntop_2.2.96/ntop [8] cvs diff configureextra/SOLARIS9
Index: configureextra/SOLARIS9
===================================================================
RCS file: /export/home/ntop/ntop/configureextra/SOLARIS9,v
retrieving revision 1.2
diff -r1.2 SOLARIS9
5,7c5,6
< LIBS="-lnsl -lsocket ${LIBS}"
< CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/opt/sfw/include"
<
---
> LIBS="-lnsl -lsocket -liconv ${LIBS}"
> CPPFLAGS="-DHAVE_FILEDESCRIPTORBUG ${CPPFLAGS} -I/usr/local/include
-I/opt/sfw/include"
> Y'all also need to figure out why some systems need -liconv and others
won't run with it - Luca pulled that out because it was causing him
problems...
I really don't know. I just tried this on another Solaris 8 machine
(SunFire v100) which did not have the libiconv package from Sunfreeware
and I have never installed ntop on it before (but did install MRTG once
which means several sunfreeware packages gd, libpng, zlib, etc) and I
still get the same error from gd.h if I do not include the -liconv flag.
I'm pretty puzzled, I do remember spending a lot of time figuring out to
add that flag, but as to why Luca would have problems with it I have no
idea. (I'm assuming he is having problems under Solaris sparc and not
x86? )
If no one else seems to need then just count me as an aberration and
I'll just edit my configureextra files.. ;)
>
> -----Burton
>
Mike Tremaine
[EMAIL PROTECTED]
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop