
On Mon, May 07, 2012 at 10:41:46AM +0100, R. Diez wrote:
Hi all:
The release version 0.4.8 of libsmi does not build under Cygwin, see the build log at the bottom.
Something is probably not right with asnprintf and the like. I would guess that this is not specific to Cygwin, it's probably an issue when building against newlib. asnprintf is being detected in the system C library, but it's redeclared in lib/snprintf.h anyway.
I tried the Subversion head too, but I'm getting the same build problems.
Perhaps you can send a patch. Most likely check for the presence of asnprintf() et al. as we already do for snprintf et al.
By the way, I noticed that autogen.sh seems to trigger "configure", which I don't think it's a good idea, as I want to specify my own "configure" argument before polluting the source directory.
Arguments are passed through to configure.
File autogen.sh is rather large, nowadays the following will probably do:
autoreconf --warnings=all
I would also fix the many autoconf warnings that the above command produces.
Again, a patch that can be tested would be helpful. (Or replacing autoconf all together as suggested and prototypes before.)
/js