Building the autogen tearoff (30:0:5) on XP w/ Cygwin.  Problem seems
to be a failure to detect strsignal() which causes it to be redefined
in libopts/compat/compat.h.  Adding a

#define HAVE_STRSIGNAL

to compat/compat.h solves the problem.

Actual error:

[EMAIL PROTECTED] ~/tcpreplay/trunk/libopts
$ make
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../src  -
I..   -D_U_="__attribute__((unused))"  -ggdb -std=gnu99 -Wall -Wextra   -I/wpdpa
ck/include -MT libopts_la-libopts.lo -MD -MP -MF .deps/libopts_la-libopts.Tpo -c
 -o libopts_la-libopts.lo `test -f 'libopts.c' || echo './'`libopts.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I../src -I.. "-D_U_=__attribute__((unused))" -ggdb -st
d=gnu99 -Wall -Wextra -I/wpdpack/include -MT libopts_la-libopts.lo -MD -MP -MF .
deps/libopts_la-libopts.Tpo -c libopts.c  -DDLL_EXPORT -DPIC -o .libs/libopts_la
-libopts.o
In file included from /usr/include/memory.h:15,
                 from compat/compat.h:179,
                 from libopts.c:2:
/usr/include/string.h:78: error: conflicting types for 'strsignal'
compat/compat.h:66: error: previous declaration of 'strsignal' was here
/usr/include/string.h:78: error: conflicting types for 'strsignal'
compat/compat.h:66: error: previous declaration of 'strsignal' was here
In file included from autoopts.c:100,
                 from libopts.c:9:

I didn't see any tests for strsignal in any of the autoconf m4 files,
so I'm not really sure what the plan was, but this patch takes care of
the problem (don't forget to re-run autoheader)

Index: libopts.m4
===================================================================
--- libopts.m4  (revision 1904)
+++ libopts.m4  (working copy)
@@ -85,7 +85,7 @@
   # ----------------------------------------------------------------------
   AC_CHECK_LIB(gen, pathfind)
   AC_FUNC_VPRINTF
-  AC_CHECK_FUNCS([mmap canonicalize_file_name snprintf strdup strchr strrchr])
+  AC_CHECK_FUNCS([mmap canonicalize_file_name snprintf strdup strchr
strrchr strsignal])
 [  INVOKE_LIBOPTS_MACROS_FIRST_done=yes
 fi]])

Thanks,
Aaron

-- 
Aaron Turner
http://synfin.net/
http://tcpreplay.synfin.net/ - Pcap editing & replay tools for Unix
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.  -- Benjamin Franklin

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Autogen-users mailing list
Autogen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/autogen-users

Reply via email to