Marc Lehmann schrieb:
>> Removing the perl cflags altogether also would ask for trouble as you would
>> loose the largefile config information.
>
> But that has no relation to the problem at hand.
Fortunately, netsnmp doesn't seem to export data structures with a different
size for largefile (off_t). Could you test
the attached patch (just dump it into debian/patches and recompile)?
Thanks,
Jochen
--- net-snmp-5.4.1.orig/net-snmp-config.in 2008-10-30 11:17:18.000000000 +0100
+++ net-snmp-5.4.1/net-snmp-config.in 2008-10-30 12:29:45.000000000 +0100
@@ -104,10 +104,10 @@
;;
#################################################### compile
--base-cflags)
- echo @CFLAGS@ @CPPFLAGS@ -I${NSC_INCLUDEDIR}
+ echo @CFLAGS@ @LIBCPPFLAGS@ -I${NSC_INCLUDEDIR}
;;
--cflags|--cf*)
- echo @CFLAGS@ @DEVFLAGS@ @CPPFLAGS@ -I. -I${NSC_INCLUDEDIR}
+ echo @CFLAGS@ @DEVFLAGS@ @LIBCPPFLAGS@ -I. -I${NSC_INCLUDEDIR}
;;
--srcdir)
echo $NSC_SRCDIR
--- net-snmp-5.4.1.orig/configure.in 2008-10-30 11:17:27.000000000 +0100
+++ net-snmp-5.4.1/configure.in 2008-10-30 12:29:26.000000000 +0100
@@ -3031,6 +3031,10 @@
fi
fi
+# Save CPPFLAGS for net-snmp-config
+LIBCPPFLAGS="$CPPFLAGS"
+AC_SUBST(LIBCPPFLAGS)
+
####################
# on to embedding...