WRT config.h

The RIGHT fixup is to figure out how those blathering idiots packaged the
files and fix the stuff in configure.in:

dnl> The failed recheck stuff below is courtesy of Chris Turbeville
[EMAIL PROTECTED]
dnl> Chris developed this for Solaris 9, confirming work I had done earlier
for FreeBSD
AC_CHECK_HEADERS([net/if.h], [], [], [
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif])

and

AC_CHECK_HEADERS([netinet/if_ether.h], [], [], [
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NET_IF_H
#include <net/if.h>
#endif])

As you can see, we already have one set of try-again cases.


WRT to the make, that's not going to cut it

-.libs/libicmpPlugin.so.0.0:
-       $(CC) -bundle -flat_namespace -undefined suppress -o
.libs/libicmpPlugin.so.0.0 icmpPlugin.o
+.libs/libicmpPlugin.so.0.0:
+       $(LD) -Bshareable -o $@ icmpPlugin.o

We use $(CC) meaning the gcc invocation of ld, not ld directly.  But we
actually don't even generate the lines.  That's done for us by automake and
./configure...

automake does the Makefile.am -> Makefile.in stuff and ./configure does the
Makefile.in -> Makefile

Basically all we write is this:

.libs/[EMAIL PROTECTED]@:
        $(CC) -bundle -flat_namespace -undefined suppress -o
.libs/[EMAIL PROTECTED]@ icmpPlugin.o

Then automake copies it and ./configure translates that into this:

.libs/libicmpPlugin.so:
        $(CC) -bundle -flat_namespace -undefined suppress -o
.libs/libicmpPlugin.so icmpPlugin.o


We can try pushing the parms into a Makefile parameter and use
configureextra/OPENBSD, but we'll need the gcc parameter equivalent.  Try
the attached patch and configureextra file...

-----Burton







-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Julien TOUCHE
Sent: Tuesday, December 02, 2003 9:02 AM
To: Ntop
Subject: [Ntop] ntop + openbsd (reminder)



you can successfully compile and use (partially) ntop on openbsd with
the two joined patch to use AFTER configure.
it works ONLY with ntop 2.2.95 (on sf.net), some other problem on
2.2.97. (test with openbsd 3.4-stable / i386)

Regards

                Julien

for information, my configure: ./configure --prefix=/opt
--with-rrd-root=/usr/local --enable-sslv3 -enable-iknowbetter
--with-libpng-include=/usr/local/include/libpng
--with-localedir=/usr/local/share/locale

Attachment: BMS0396-solibrary.patch
Description: Binary data

Attachment: OPENBSD
Description: Binary data

Reply via email to