Still an issue on Debian Stable & Wheezy:

Straight-up ./configure used

-- cut

checking whether anonymous inner functions are supported by default... yes
checking whether struct option is defined in getopt.h... no
checking whether struct option is defined in unistd.h... no
configure: error: Unable to compile without struct option for getopt_long()
See `config.log' for more details.

-- cut

configure:5975: checking whether struct option is defined in unistd.h
configure:6000: gcc -c -Wall -O2  conftest.c >&5
conftest.c: In function 'main':
conftest.c:33:16: error: storage size of 'tmp_option' isn't known
conftest.c:33:16: warning: unused variable 'tmp_option' [-Wunused-variable]
configure:6006: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "spamdyke"
| #define PACKAGE_TARNAME "-spamdyke-"
| #define PACKAGE_VERSION "4.2.1"
| #define PACKAGE_STRING "spamdyke 4.2.1"
| #define PACKAGE_BUGREPORT "samc (at) silence (dot) org"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_STDINT_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_STRUCT_DIRENT_D_TYPE 1
| #define HAVE_DECL_DT_WHT 1
| #define HAVE_DECL_S_IFWHT 0
| #define HAVE_DECL_INADDR_LOOPBACK 1
| #define HAVE_LIBSSL 1
| /* end confdefs.h.  */
|  #include <stdio.h>
|                                   #include <unistd.h>
| int
| main ()
| {
|  struct option tmp_option;
|                                   tmp_option.name = NULL;
|   ;
|   return 0;
| }
configure:6017: result: no
configure:6020: error: Unable to compile without struct option for 
getopt_long()
See `config.log' for more details.

-- cut

_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users

Reply via email to