[asterisk-bugs] [JIRA] (ASTERISK-25228) configure with netsnmp fail

MS (JIRA) noreply at issues.asterisk.org
Fri Jul 3 09:14:33 CDT 2015


MS created ASTERISK-25228:
-----------------------------

             Summary: configure with netsnmp fail
                 Key: ASTERISK-25228
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25228
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
    Affects Versions: 11.18.0
            Reporter: MS


First I compile net-snmp 5.7.2 in a custom path /usr/local/snmp/
Next I want to configure asterisk with this command line:
./configure --prefix=/usr/local/asterisk/ --with-netsnmp=/usr/local/snmp/

The command fail and I can read this line in the config.log:
NETSNMP_INCLUDE='-fno-strict-aliasing -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/snmp//usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/local/snmp//usr/lib/perl/5.18/CORE -I/usr/local/snmp/. -I/usr/local/snmp//usr/local/snmp/include'
NETSNMP_LIB='-L/usr/local/snmp//usr/local/snmp/lib -lnetsnmpmibs -ldl -lnetsnmpagent -Wl,-E -lnetsnmp -lcrypto -lm' 

My command line was ok with the previous version 11.7.0.
I've made a diff between the 2 files 'configure' and I have seen a difference on these lines:

NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
/*NETSNMP_INCLUDE=$(echo ${NETSNMP_INCLUDE} | $SED -e "s|-I|-I${NETSNMP_DIR}|g")*/
and
NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
/*NETSNMP_LIB=$(echo ${NETSNMP_LIB} | $SED -e "s|-L|-L${NETSNMP_DIR}|g")*/

I have comment with /* */ the 2nd rows and I have been able to execute the configure.
I don't know very well 'configure' but something duplicates custom prefix in the path.





--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list