[FUG-BR] Problema compilando net-snmp no FreeBSD 8.3 [RESOLVIDO]
Marcelo Gondim
gondim em bsdinfo.com.br
Terça Fevereiro 26 08:24:16 BRT 2013
Em 25/02/13 20:38, Marcelo Gondim escreveu:
> Pessoal,
>
> Estou com um FreeBSD 8.3-STABLE aqui que não consigo instalar por nada o
> pacote net-mgmt/net-snmp. Já recompilei todos os pacotes no sistema mas
> só ele dá problema. Alguém já viu esse erro abaixo?
>
> /bin/sh ../libtool --mode=compile cc -I../include -I. -I../agent
> -I../agent/mibgroup -I../snmplib -I/usr/include -DNETSNMP_ENABLE_IPV6
> -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -Ufreebsd8
> -Dfreebsd8=freebsd8 -DAPPLLIB_EXP="/usr/local/lib/perl5/5.12.4/BSDPAN"
> -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe
> -fstack-protector -I/usr/local/include
> -I/usr/local/lib/perl5/5.12.4/mach/CORE -c -o snmpd.lo snmpd.c
> libtool: compile: cc -I../include -I. -I../agent -I../agent/mibgroup
> -I../snmplib -I/usr/include -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing
> -O2 -pipe -fno-strict-aliasing -Ufreebsd8 -Dfreebsd8=freebsd8
> -DAPPLLIB_EXP=/usr/local/lib/perl5/5.12.4/BSDPAN -DHAS_FPSETMASK
> -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector
> -I/usr/local/include -I/usr/local/lib/perl5/5.12.4/mach/CORE -c snmpd.c
> -fPIC -DPIC -o .libs/snmpd.o
> libtool: compile: cc -I../include -I. -I../agent -I../agent/mibgroup
> -I../snmplib -I/usr/include -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing
> -O2 -pipe -fno-strict-aliasing -Ufreebsd8 -Dfreebsd8=freebsd8
> -DAPPLLIB_EXP=/usr/local/lib/perl5/5.12.4/BSDPAN -DHAS_FPSETMASK
> -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector
> -I/usr/local/include -I/usr/local/lib/perl5/5.12.4/mach/CORE -c snmpd.c
> -o snmpd.o >/dev/null 2>&1
> /bin/sh ../libtool --mode=link cc -DNETSNMP_ENABLE_IPV6
> -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -Ufreebsd8
> -Dfreebsd8=freebsd8 -DAPPLLIB_EXP="/usr/local/lib/perl5/5.12.4/BSDPAN"
> -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe
> -fstack-protector -I/usr/local/include
> -I/usr/local/lib/perl5/5.12.4/mach/CORE -o snmpd snmpd.lo -L/usr/lib -lm
> -lkvm -ldevstat libnetsnmpagent.la libnetsnmpmibs.la
> ../snmplib/libnetsnmp.la -lelf -lssp_nonshared
> -Wl,-R/usr/local/lib/perl5/5.12.4/mach/CORE
> libtool: link: cc -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -O2 -pipe
> -fno-strict-aliasing -Ufreebsd8 -Dfreebsd8=freebsd8
> -DAPPLLIB_EXP=/usr/local/lib/perl5/5.12.4/BSDPAN -DHAS_FPSETMASK
> -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector
> -I/usr/local/include -I/usr/local/lib/perl5/5.12.4/mach/CORE -o
> .libs/snmpd .libs/snmpd.o -Wl,-R/usr/local/lib/perl5/5.12.4/mach/CORE
> -L/usr/lib ./.libs/libnetsnmpagent.so -L/usr/local/lib
> -L/usr/local/lib/perl5/5.12.4/mach/CORE ./.libs/libnetsnmpmibs.so
> /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/agent/.libs/libnetsnmpagent.so
> -lwrap
> /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/snmplib/.libs/libnetsnmp.so
> -lperl -lcrypt -lutil ../snmplib/.libs/libnetsnmp.so -lm -lkvm -ldevstat
> -lcrypto -lelf -lssp_nonshared -pthread -Wl,-rpath -Wl,/usr/local/lib
> ./.libs/libnetsnmpmibs.so: undefined reference to `setutxent'
> ./.libs/libnetsnmpmibs.so: undefined reference to `endutxent'
> ./.libs/libnetsnmpmibs.so: undefined reference to `getutxent'
> *** Error code 1
>
> Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/agent.
> *** Error code 1
>
> Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2.
> *** Error code 1
>
> Stop in /usr/ports/net-mgmt/net-snmp.
> *** Error code 1
>
> Stop in /usr/ports/net-mgmt/net-snmp.
>
> Grande abraço pessoal,
>
> Gondim
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>
Pessoal,
Para quem tem ou teve algum problema parecido aqui vai a solução:
Esse sistema foi um downgrade da versão 9.1-STABLE para a 8.3-STABLE e
por isso ficou o header /usr/include/utmpx.h e /usr/include/utmp.h
causando o conflito. Removi o utmpx.h que era da versão 9.1-STABLE e
agora foi de boa.
Fica aqui a dica pro histórico.
Grande abraço,
Gondim
Mais detalhes sobre a lista de discussão freebsd