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

Asterisk Team (JIRA) noreply at issues.asterisk.org
Thu Jul 23 12:00:35 CDT 2015


     [ https://issues.asterisk.org/jira/browse/ASTERISK-25228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team closed ASTERISK-25228.
------------------------------------


> 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
>            Assignee: Rusty Newton
>
> 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:
> {noformat}
> 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' 
> {noformat}
> 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:
> {noformat}
> 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")*/
> {noformat}
> 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