Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Oct 2012 10:32:27 GMT
From:      Jiri Pridal <jiri.pridal@firebrno.cz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/172901: can't build net-snmp 5.7.2 on amd64 system
Message-ID:  <201210201032.q9KAWRkd068993@red.freebsd.org>
Resent-Message-ID: <201210201040.q9KAe1Ok033032@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         172901
>Category:       ports
>Synopsis:       can't build net-snmp 5.7.2 on amd64 system
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 20 10:40:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jiri Pridal
>Release:        7.4-RELEASE-p2
>Organization:
HZS JmK
>Environment:
FreeBSD <censored> 7.4-RELEASE-p2 FreeBSD 7.4-RELEASE-p2 #1: Sat Aug 20 22:05:47 CEST 2011     yura@<censored>:/usr/obj/usr/src/sys/Zaloha-7_4  amd64

>Description:

I can't portupgrade net-snmp from 5.7.1_7 to 5.7.2 on FreeBSD 7.x amd64 systems.
Many build options tried, no one is working. Instalations on i386 servers are OK. Installations ends on the same place:

....
libtool: relink: cc -shared  -fPIC -DPIC  helpers/.libs/all_helpers.o helpers/.libs/baby_steps.o helpers/.libs/bulk_to_next.o helpers/.libs/cache_handler.o helpers/.libs/debug_handler.o helpers/.libs/instance.o helpers/.libs/mode_end_call.o helpers/.libs/multiplexer.o helpers/.libs/null.o helpers/.libs/old_api.o helpers/.libs/read_only.o helpers/.libs/row_merge.o helpers/.libs/scalar.o helpers/.libs/scalar_group.o helpers/.libs/serialize.o helpers/.libs/snmp_get_statistic.o helpers/.libs/stash_cache.o helpers/.libs/stash_to_next.o helpers/.libs/table.o helpers/.libs/table_array.o helpers/.libs/table_container.o helpers/.libs/table_data.o helpers/.libs/table_dataset.o helpers/.libs/table_iterator.o helpers/.libs/table_row.o helpers/.libs/table_tdata.o helpers/.libs/watcher.o .libs/agent_handler.o .libs/agent_index.o .libs/agent_read_config.o .libs/agent_registry.o .libs/agent_sysORTable.o .libs/agent_trap.o .libs/kernel.o .libs/snmp_agent.o .libs/snmp_vars.o mibgroup/smux/.libs/smux.o
  mibgroup/snmpv3/.libs/usmConf.o mibgroup/agentx/.libs/master.o mibgroup/agentx/.libs/subagent.o mibgroup/utilities/.libs/execute.o mibgroup/utilities/.libs/iquery.o mibgroup/mibII/.libs/vacm_conf.o mibgroup/agentx/.libs/protocol.o mibgroup/agentx/.libs/client.o mibgroup/agentx/.libs/master_admin.o mibgroup/agentx/.libs/agentx_config.o   -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -lnetsnmp -L/usr/lib -lcrypto -lwrap -lm -lkvm -ldevstat -lelf  -O2   -Wl,-soname -Wl,libnetsnmpagent.so.30 -o .libs/libnetsnmpagent.so.30
/usr/bin/ld: /usr/local/lib/libcrypto.a(hmac.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libcrypto.a: could not read symbols: Bad value
libtool: install: error: relink `libnetsnmpagent.la' with the above command before installing it
*** 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.
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp.
** Command failed [exit code 1]: /usr/local/libexec/pkgtools/script -qa /tmp/portupgrade20121020-37689-pu1jd0-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=net-snmp-5.7.1_7 UPGRADE_PORT_VER=5.7.1_7 make reinstall
--->  Restoring the old version
....
>How-To-Repeat:

on 64bit FBSD 7:

cd /usr/ports/net-mgmt/net-snmp && make install


>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210201032.q9KAWRkd068993>