[MacPorts] #13297: net-snmp-5.4 fails to build on Mac OS X 10.5 Leopard
MacPorts
noreply at macports.org
Wed Nov 5 03:26:50 PST 2008
#13297: net-snmp-5.4 fails to build on Mac OS X 10.5 Leopard
------------------------------+---------------------------------------------
Reporter: arion at arion.net | Owner: ricci at macports.org
Type: defect | Status: assigned
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.5.0
Resolution: | Keywords: net-snmp leopard intel
Port: |
------------------------------+---------------------------------------------
Old description:
> {{{
> ginza:~ arion$ sudo port install net-snmp
> ---> Fetching net-snmp
> ---> Verifying checksum(s) for net-snmp
> ---> Extracting net-snmp
> ---> Applying patches to net-snmp
> ---> Configuring net-snmp
> ---> Building net-snmp with target all
> Error: Target org.macports.build returned: shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
> .org_release_ports_net_net-snmp/work/net-snmp-5.4" && make all " returned
> error 2
> Command output: gcc -E -Iinclude -I./include -I./agent/mibgroup -I. -I.
> -DDONT_INC_STRUCTS -DBINDIR=/opt/local/bin -x c -no-cpp-precomp
> ./sedscript.in | egrep '^s[/#]' | sed 's/REMOVEME//g;s# */#/#g;s/
> *#/#/g;s#/ *#/#g;s/# g/#g/;' > sedscript
> echo 's#DATADIR#/opt/local/share#g' >> sedscript
> echo 's#LIBDIR#/opt/local/lib#g' >> sedscript
> echo 's#BINDIR#/opt/local/bin#g' >> sedscript
> echo 's#PERSISTENT_DIRECTORY#/opt/local/var/net-snmp#g' >> sedscript
> echo 's#SYSCONFDIR#/opt/local/etc#g' >> sedscript
> /usr/bin/sed -f sedscript ./EXAMPLE.conf.def > EXAMPLE.conf
> making all in
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
> .org_release_ports_net_net-snmp/work/net-snmp-5.4/snmplib
> /bin/sh ../libtool --mode=compile gcc -I../include -I.
> -I../snmplib -I/opt/local/include -I/opt/local/include -arch i386 -arch
> ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-
> aliasing -Wdeclaration-after-statement -I/usr/local/include
> -I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE -O2
> -Udarwin9 -Ddarwin9=darwin9 -c -o snmp_client.lo snmp_client.c
> mkdir .libs
> gcc -I../include -I. -I../snmplib -I/opt/local/include
> -I/opt/local/include -arch i386 -arch ppc -g -pipe -fno-common
> -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-
> statement -I/usr/local/include -I/System/Library/Perl/5.8.8/darwin-
> thread-multi-2level/CORE -O2 -Udarwin9 -Ddarwin9=darwin9 -c snmp_client.c
> -fno-common -DPIC -o .libs/snmp_client.o
> In file included from snmp_client.c:96:
> ../include/net-snmp/types.h:68: error: conflicting types for 'ssize_t'
> /usr/include/string.h:70: error: previous declaration of 'ssize_t' was
> here
> In file included from snmp_client.c:96:
> ../include/net-snmp/types.h:68: error: conflicting types for 'ssize_t'
> /usr/include/string.h:70: error: previous declaration of 'ssize_t' was
> here
> lipo: can't open input file: /var/tmp//cc0g3x3H.out (No such file or
> directory)
> make[1]: *** [snmp_client.lo] Error 1
> make: *** [subdirs] Error 1
>
> Error: Status 1 encountered during processing.
> ginza:~ arion$
> }}}
>
> I was able to get past the "ssize_t" with a little hackery but then ran
> into problems related to missing architectures during linking (even
> though I did not specify +universal variant).
New description:
{{{
ginza:~ arion$ sudo port install net-snmp
---> Fetching net-snmp
---> Verifying checksum(s) for net-snmp
---> Extracting net-snmp
---> Applying patches to net-snmp
---> Configuring net-snmp
---> Building net-snmp with target all
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_net_net-snmp/work/net-snmp-5.4" && make all " returned
error 2
Command output: gcc -E -Iinclude -I./include -I./agent/mibgroup -I. -I.
-DDONT_INC_STRUCTS -DBINDIR=/opt/local/bin -x c -no-cpp-precomp
./sedscript.in | egrep '^s[/#]' | sed 's/REMOVEME//g;s# */#/#g;s/
*#/#/g;s#/ *#/#g;s/# g/#g/;' > sedscript
echo 's#DATADIR#/opt/local/share#g' >> sedscript
echo 's#LIBDIR#/opt/local/lib#g' >> sedscript
echo 's#BINDIR#/opt/local/bin#g' >> sedscript
echo 's#PERSISTENT_DIRECTORY#/opt/local/var/net-snmp#g' >> sedscript
echo 's#SYSCONFDIR#/opt/local/etc#g' >> sedscript
/usr/bin/sed -f sedscript ./EXAMPLE.conf.def > EXAMPLE.conf
making all in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_net_net-snmp/work/net-snmp-5.4/snmplib
/bin/sh ../libtool --mode=compile gcc -I../include -I.
-I../snmplib -I/opt/local/include -I/opt/local/include -arch i386 -arch
ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-
aliasing -Wdeclaration-after-statement -I/usr/local/include
-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE -O2
-Udarwin9 -Ddarwin9=darwin9 -c -o snmp_client.lo snmp_client.c
mkdir .libs
gcc -I../include -I. -I../snmplib -I/opt/local/include
-I/opt/local/include -arch i386 -arch ppc -g -pipe -fno-common
-DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-
statement -I/usr/local/include -I/System/Library/Perl/5.8.8/darwin-thread-
multi-2level/CORE -O2 -Udarwin9 -Ddarwin9=darwin9 -c snmp_client.c -fno-
common -DPIC -o .libs/snmp_client.o
In file included from snmp_client.c:96:
../include/net-snmp/types.h:68: error: conflicting types for 'ssize_t'
/usr/include/string.h:70: error: previous declaration of 'ssize_t' was
here
In file included from snmp_client.c:96:
../include/net-snmp/types.h:68: error: conflicting types for 'ssize_t'
/usr/include/string.h:70: error: previous declaration of 'ssize_t' was
here
lipo: can't open input file: /var/tmp//cc0g3x3H.out (No such file or
directory)
make[1]: *** [snmp_client.lo] Error 1
make: *** [subdirs] Error 1
Error: Status 1 encountered during processing.
ginza:~ arion$
}}}
I was able to get past the "ssize_t" with a little hackery but then ran
into problems related to missing architectures during linking (even though
I did not specify +universal variant).
--
Comment(by nox at macports.org):
Does it still occur with net-snmp-5.4.1?
--
Ticket URL: <http://trac.macports.org/ticket/13297#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list