It looks like the Debian maintainers are using GCC 4.6 in Debian 7, which
has some new flags. For reasons passing understanding, those new flags
are enabled by default. This generates warnings during the configuration
process, which the script regards as errors. Yay Debian!
I'll implement a workaround in the next version. Thanks for reporting
this!
-- Sam Clippinger
On Jan 4, 2012, at 3:35 PM, Steve Cole wrote:
>
> 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
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users
I have exactly same error on Open SuSE 12.1 distribution too. It seems to
be related to new distro of both Linuxes
| #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.
uname -a output:
Linux msi1 3.1.0-1.2-pae #1 SMP Thu Nov 3 14:45:45 UTC 2011 (187dde0) i686
i686 i386 GNU/Linux
cat /etc/SuSE-brand
openSUSE
VERSION = 12.1
cat /etc/SuSE-release
openSUSE 12.1 (i586)
VERSION = 12.1
CODENAME = Asparagus
I have found another problem related to qmail instalation of daemon tools
on Open SuSE 12.1. May be all of you running same system will want fix
problem with svc no starting at reboot because now inittab's respawn for
supervise seems to be ignored. I did migrate it as service run from new
systemd replacement of SysV
create file /lib/systemd/system/qmail.service
[Unit]
Description=qmail daemontools
After=network.target
[Service]
ExecStart=/lib/systemd/systemd-qmail
Type=oneshot
RemainAfterExit=true
[Install]
WantedBy=multi-user.target
and starter script in
/lib/systemd/systemd-qmail
#! /bin/sh
/usr/bin/sh -c '/command/svscanboot &'
you need run command systemctl enable qmail.service and then only once
systemctl start qmail.service
Eduard
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users