net-snmp 5.2.1.2 compile issue on cygwin
"Paul Oppenheim" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
(Not sure if I should be posting this to the coders list instead of the
users list)
Linking fails when compiling net-snmp-5.2.1.2 out-of-source on cygwin.
gcc-3.3.3
gnu-make-3.8.0
specifically, when issuing the command:
---
topdir=/cygdrive/z/work/2005.11-net-snmp/sources/tmp;\
FULLPKG=net-snmp-5.2.1.2-1;\
BASEPKG=net-snmp-5.2.1.2;\
srcdir=${topdir}/${BASEPKG};\
objdir=${srcdir}/build;\
instdir=${srcdir}/inst;\
srcinstdir=${srcdir}/sinst;\
buildlogdir=${srcdir}/buildlogs;\
prefix=/usr;\
sysconfdir=/etc;\
localstatedir=/var;\
configurelogname=${FULLPKG}-CONFIGURE.LOG;\
\
(cd ${objdir} && \
${srcdir}/configure \
--srcdir=${srcdir} \
--prefix="${prefix}" \
--exec-prefix='${prefix}' \
--sysconfdir="${sysconfdir}" \
--libdir='${prefix}/lib' \
--includedir='${prefix}/include' \
--mandir='${prefix}/share/man' \
--infodir='${prefix}/share/info' \
--libexecdir='${prefix}/sbin' \
--localstatedir="${localstatedir}" \
--datadir='${prefix}/share' \
2>&1 | tee ${configurelogname} )
make
---
I get the link error:
---
making all in
/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.1.2/build/snm
plib
make[1]: Entering directory
`/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.1.2/build/sn
mplib'
make[1]: *** No rule to make target `winservicerc.lo', needed by
`libnetsnmp.la'. Stop.
make[1]: Leaving directory
`/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.1.2/build/sn
mplib'
make: *** [subdirs] Error 1
---
which seems like it's win-specific and would be easy to fix, but I am
still learning the autotools suite :)
Standard "configure ; make ; make install" still works fine. I am making
a cygwin package for net-snmp, and the default way of making a cygwin
package builds out-of-source. I couldn't find anything about this in
README.win32, PORTING, in the bug tracker, on google, etc.
Please let me know if I should join / re-post to the coders list.
+ paul
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users