Browse Source

-fpic doesn't work here with solaris, why is it used anyway ? Additionally disable 64bit off_t for solaris specific procfs/swapctl code

master
Michael van Elst 23 years ago committed by Ralf S. Engelschall
parent
commit
5cd6963a57
  1. 16
      snmp/snmp.patch
  2. 4
      snmp/snmp.spec

16
snmp/snmp.patch

@ -56,3 +56,19 @@
#ifdef HAVE_LIBRPM
rpmdbClose(swi->swi_rpmdb); /* or only on finishing ? */
swi->swi_rpmdb = NULL;
--- agent/mibgroup/ucd-snmp/memory_solaris2.c.dist Tue Aug 19 09:46:12 2003
+++ agent/mibgroup/ucd-snmp/memory_solaris2.c Tue Aug 19 09:51:30 2003
@@ -1,3 +1,4 @@
+#undef _FILE_OFFSET_BITS /* swapctl doesn't support 64bit off_t */
#include <net-snmp/net-snmp-config.h> /* local SNMP configuration details */
#if HAVE_STRING_H
#include <string.h>
--- agent/mibgroup/ucd-snmp/proc.c.dist 2003-08-19 10:26:49.000000000 +0200
+++ agent/mibgroup/ucd-snmp/proc.c 2003-08-19 10:27:45.000000000 +0200
@@ -1,3 +1,6 @@
+#ifdef solaris2
+#undef _FILE_OFFSET_BITS /* solaris procfs doesn't support 64bit off_t */
+#endif
#include <net-snmp/net-snmp-config.h>
#ifdef solaris2

4
snmp/snmp.spec

@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
Group: Network
License: BSD
Version: 5.0.8
Release: 20030818
Release: 20030819
# package options
%option with_fsl yes
@ -126,7 +126,7 @@ AutoReqProv: no
./configure \
--cache-file=./config.cache \
--with-cc="%{l_cc}" \
--with-cflags="%{l_cflags -O} %{l_cppflags} -fpic" \
--with-cflags="%{l_cflags -O} %{l_cppflags}" \
--with-ldflags="%{l_ldflags} %{l_fsl_ldflags}" \
--with-libs="%{l_fsl_libs}" \
--prefix=%{l_prefix} \

Loading…
Cancel
Save