Issues with plesk and haggybears spamdyke addon

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
visualrealityink
Forum User
Forum User
Posts: 23
Joined: Mon Feb 28, 2011 6:59 pm
Location: Charlotte NC

Issues with plesk and haggybears spamdyke addon

Unread post by visualrealityink »

I have major issues with spam and I had spamassassin and tweaked it and tweaked it and spam just got worse. So after some research I found haggybears Spamdyke Plesk Addon.I am running 10.x so I followed the instructions for compiling the mysql logging version of spamdyke however I never get past ./configure because it tells me that it cannot compile because it cannot find the library containing inet_aton.
I am currently running the spamdyke from the atomic repo and its not displaying anything in the reports under the haggybear spamdyke control panel.
Can someone help me please, thanks in advance. :)

PLESK 10.0.1 qmail

uname -a output:
Linux u15362910.onlinehome-server.com 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
visualrealityink
Forum User
Forum User
Posts: 23
Joined: Mon Feb 28, 2011 6:59 pm
Location: Charlotte NC

Re: Issues with plesk and haggybears spamdyke addon

Unread post by visualrealityink »

So I upgraded PLESK to 10.1.1 and successfully compiled and installed spamdyke, I created a "Custom Button" with the appropriate URL being "haggybear?addon=spamdyke2" I have also selected "Include subscription ID" "Include Primary Domain Name" " Include customer ID" and "Open URL in Parallels Panel". When I go into the "SpamDyke Control Panel" it is blank and displays no error. I have tried "chmod 775 -R *" and it is still blank :( I am pretty sure I am almost there :) any suggestions guys?

Thanks in advance everyone 8)
haggybear
Forum User
Forum User
Posts: 5
Joined: Tue May 19, 2009 5:23 pm

Re: Issues with plesk and haggybears spamdyke addon

Unread post by haggybear »

I am currently running the spamdyke from the atomic repo and its not displaying anything in the reports under the haggybear spamdyke control panel.
Can someone help me please, thanks in advance.
Maybe you haven't created /etc/spamdyke.conf or you modified the /etc/xinetd.d/smtp_psa incorrectly.

Sample spamdyke.conf:

Code: Select all

#für das Plesk-Addon von Haggybear:
log-level=info

local-domains-file=/var/qmail/control/rcpthosts
tls-certificate-file=/var/qmail/control/servercert.pem

#Copy&Paste from xinetd-conf
smtp-auth-command=/var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /bin/qmail/bin/true
smtp-auth-level=ondemand-encrypted

#wichtiger Timeout:
idle-timeout-secs=100
graylist-level=always-create-dir
graylist-dir=/var/qmail/spamdyke/greylist
#(300 Sek. = 5 Min.)
graylist-min-secs=300
#1814400 Sek. = 3 Wochen
graylist-max-secs=1814400

sender-blacklist-file=/var/qmail/spamdyke/blacklist_senders
recipient-blacklist-file=/var/qmail/spamdyke/blacklist_recipients
ip-in-rdns-keyword-blacklist-file=/var/qmail/spamdyke/blacklist_keywords
ip-blacklist-file=/var/qmail/spamdyke/blacklist_ip
rdns-whitelist-file=/var/qmail/spamdyke/whitelist_rdns
ip-whitelist-file=/var/qmail/spamdyke/whitelist_ip
sender-whitelist-file=/var/qmail/spamdyke/whitelist_senders
greeting-delay-secs=5

#ggf. ein-/auskommentieren:
dns-blacklist-entry=ix.dnsbl.manitu.net
#dns-blacklist-entry=sbl.spamhaus.org
#dns-blacklist-entry=zen.spamhaus.org
#dns-blacklist-entry=list.dsbl.org
#dns-blacklist-entry=zombie.dnsbl.sorbs.net
#dns-blacklist-entry=dul.dnsbl.sorbs.net
#dns-blacklist-entry=bogons.cymru.com

reject-missing-sender-mx
reject-empty-rdns
reject-unresolvable-rdns
reject-ip-in-cc-rdns

#MySQL-Logging:
config-mysql-database=spamdyke
config-mysql-username=spamdyke
config-mysql-password=spamdyke
Sample /etc/xinetd.d/smtp_psa:

Code: Select all

service smtp {
	...
	server          = /var/qmail/bin/tcp-env
	server_args     = -Rt0 /var/qmail/bin/relaylock /usr/local/bin/spamdyke -f 
/etc/spamdyke.conf /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true
 /var/qmail/bin/cmd5checkpw /var/qmail/bin/true
}
visualrealityink
Forum User
Forum User
Posts: 23
Joined: Mon Feb 28, 2011 6:59 pm
Location: Charlotte NC

Re: Issues with plesk and haggybears spamdyke addon

Unread post by visualrealityink »

Haggybear, thanks man but I confirmed everything is input properly in both spamdyke.conf and smtp_psa however it is still coming up as a blank screen.
Any more suggestions?
Thanks Again
haggybear
Forum User
Forum User
Posts: 5
Joined: Tue May 19, 2009 5:23 pm

Re: Issues with plesk and haggybears spamdyke addon

Unread post by haggybear »

Since Plesk Version 10.1.1 the integration of the addons it's again possible via the old URL (like Plesk 7-9).

Call of the Spamdyke Control Panel for example -> /spamdyke/index.php

The call via the Modul Controller forPlesk 10.x is possible as well. Simply uncheck the option "Open URL in Parallels Panel".
visualrealityink
Forum User
Forum User
Posts: 23
Joined: Mon Feb 28, 2011 6:59 pm
Location: Charlotte NC

Re: Issues with plesk and haggybears spamdyke addon

Unread post by visualrealityink »

Thanks again Haggybear, I have changed the settings and still the screen is white. Any more suggestions?
visualrealityink
Forum User
Forum User
Posts: 23
Joined: Mon Feb 28, 2011 6:59 pm
Location: Charlotte NC

Re: Issues with plesk and haggybears spamdyke addon

Unread post by visualrealityink »

Ok so I am attempting to compile spamdyke-4.2.0-mysql when I run ./configure I get this

Code: Select all

[root@u15362910 spamdyke]# ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdint.h... (cached) yes
checking sys/inttypes.h usability... no
checking sys/inttypes.h presence... no
checking for sys/inttypes.h... no
checking for sys/types.h... (cached) yes
checking for stdint.h... (cached) yes
checking for sys/inttypes.h... (cached) no
checking whether time.h and sys/time.h may both be included... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for struct dirent.d_type... yes
checking whether DT_WHT is declared... yes
checking whether S_IFWHT is declared... no
checking whether INADDR_LOOPBACK is declared... yes
checking whether to include debugging symbols (for gdb)... no
checking for strip... strip spamdyke
checking whether to include excessive debugging output... no
checking whether to include some debugging output... yes
checking whether to include configuration tests... yes
checking if openssl/ssl.h will include without additional include directories... yes
checking for library containing RSA_sign... -lssl
checking for library containing SSL_library_init... none required
checking for OpenSSL libraries (for TLS support)... yes
checking for MySQL (for MySQL-Logging support)... yes
checking for MySQL includes (for MySQL-Logging support)...yes
checking for library containing inet_aton... no
configure: error: unable to compile without inet_aton()
See `config.log' for more details.
I do have mysql-dev installed and am Running MYSQL 5.1
here is the output of config.log

Code: Select all

his file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by spamdyke configure 4.2.0, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = u15362910.onlinehome-server.com
uname -m = x86_64
uname -r = 2.6.18-194.32.1.el5
uname -s = Linux
uname -v = #1 SMP Wed Jan 5 17:52:25 EST 2011

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /root/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1765: checking for gcc
configure:1781: found /usr/bin/gcc
configure:1792: result: gcc
configure:1828: checking for C compiler version
configure:1835: gcc --version >&5
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:1838: $? = 0
configure:1845: gcc -v >&5
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
configure:1848: $? = 0
configure:1855: gcc -V >&5
gcc: '-V' option must have argument
configure:1858: $? = 1
configure:1881: checking for C compiler default output file name
configure:1908: gcc -Wall   conftest.c  >&5
configure:1911: $? = 0
configure:1949: result: a.out
configure:1966: checking whether the C compiler works
configure:1976: ./a.out
configure:1979: $? = 0
configure:1996: result: yes
configure:2003: checking whether we are cross compiling
configure:2005: result: no
configure:2008: checking for suffix of executables
configure:2015: gcc -o conftest -Wall   conftest.c  >&5
configure:2018: $? = 0
configure:2042: result:
configure:2048: checking for suffix of object files
configure:2074: gcc -c -Wall  conftest.c >&5
configure:2077: $? = 0
configure:2100: result: o
configure:2104: checking whether we are using the GNU C compiler
configure:2133: gcc -c -Wall  conftest.c >&5
configure:2139: $? = 0
configure:2156: result: yes
configure:2161: checking whether gcc accepts -g
configure:2191: gcc -c -g  conftest.c >&5
configure:2197: $? = 0
configure:2296: result: yes
configure:2313: checking for gcc option to accept ISO C89
configure:2387: gcc  -c -Wall  conftest.c >&5
configure:2393: $? = 0
configure:2416: result: none needed
configure:2441: checking how to run the C preprocessor
configure:2481: gcc -E  conftest.c
configure:2487: $? = 0
configure:2518: gcc -E  conftest.c
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
configure:2524: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "spamdyke"
| #define PACKAGE_TARNAME "-spamdyke-"
| #define PACKAGE_VERSION "4.2.0"
| #define PACKAGE_STRING "spamdyke 4.2.0"
| #define PACKAGE_BUGREPORT "samc (at) silence (dot) org"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2557: result: gcc -E
configure:2586: gcc -E  conftest.c
configure:2592: $? = 0
configure:2623: gcc -E  conftest.c
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
configure:2629: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "spamdyke"
| #define PACKAGE_TARNAME "-spamdyke-"
| #define PACKAGE_VERSION "4.2.0"
| #define PACKAGE_STRING "spamdyke 4.2.0"
| #define PACKAGE_BUGREPORT "samc (at) silence (dot) org"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2667: checking for grep that handles long lines and -e
configure:2741: result: /bin/grep
configure:2746: checking for egrep
configure:2824: result: /bin/grep -E
configure:2829: checking for ANSI C header files
configure:2859: gcc -c -Wall  conftest.c >&5
configure:2865: $? = 0
configure:2964: gcc -o conftest -Wall   conftest.c  >&5
configure:2967: $? = 0
configure:2973: ./conftest
configure:2976: $? = 0
configure:2993: result: yes
configure:3017: checking for sys/types.h
configure:3038: gcc -c -Wall  conftest.c >&5
configure:3044: $? = 0
configure:3060: result: yes
configure:3017: checking for sys/stat.h
configure:3038: gcc -c -Wall  conftest.c >&5
configure:3044: $? = 0
configure:3060: result: yes
configure:3017: checking for stdlib.h
configure:3038: gcc -c -Wall  conftest.c >&5
configure:3044: $? = 0
configure:3060: result: yes
configure:3017: checking for string.h
configure:3038: gcc -c -Wall  conftest.c >&5
configure:3044: $? = 0
configure:3060: result: yes
configure:3017: checking for memory.h
configure:3038: gcc -c -Wall  conftest.c >&5
configure:3044: $? = 0
configure:3060: result: yes
configure:3017: checking for strings.h
configure:3038: gcc -c -Wall  conftest.c >&5
configure:3044: $? = 0
configure:3060: result: yes
configure:3017: checking for strings.h
configure:3038: gcc -c -Wall  conftest.c >&5
configure:3044: $? = 0
configure:3060: result: yes
configure:3017: checking for inttypes.h
configure:3038: gcc -c -Wall  conftest.c >&5
configure:3044: $? = 0
configure:3060: result: yes
configure:3017: checking for stdint.h
configure:3038: gcc -c -Wall  conftest.c >&5
configure:3044: $? = 0
configure:3060: result: yes
configure:3017: checking for unistd.h
configure:3038: gcc -c -Wall  conftest.c >&5
configure:3044: $? = 0
configure:3060: result: yes
configure:3077: checking for stdint.h
configure:3083: result: yes
configure:3232: checking sys/inttypes.h usability
configure:3249: gcc -c -Wall  conftest.c >&5
conftest.c:52:26: error: sys/inttypes.h: No such file or directory
configure:3255: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "spamdyke"
| #define PACKAGE_TARNAME "-spamdyke-"
| #define PACKAGE_VERSION "4.2.0"
| #define PACKAGE_STRING "spamdyke 4.2.0"
| #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
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <sys/inttypes.h>
configure:3269: result: no
configure:3273: checking sys/inttypes.h presence
configure:3288: gcc -E  conftest.c
conftest.c:19:26: error: sys/inttypes.h: No such file or directory
configure:3294: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "spamdyke"
| #define PACKAGE_TARNAME "-spamdyke-"
| #define PACKAGE_VERSION "4.2.0"
| #define PACKAGE_STRING "spamdyke 4.2.0"
| #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
| /* end confdefs.h.  */
| #include <sys/inttypes.h>
configure:3308: result: no
configure:3341: checking for sys/inttypes.h
configure:3349: result: no
configure:3367: checking for sys/types.h
configure:3373: result: yes
configure:3512: checking for stdint.h
configure:3558: result: no
configure:3570: checking whether time.h and sys/time.h may both be included
configure:3600: gcc -c -Wall  conftest.c >&5
configure:3606: $? = 0
configure:3621: result: yes
configure:3633: checking for int16_t
configure:3664: gcc -c -Wall  conftest.c >&5
configure:3670: $? = 0
configure:3699: gcc -c -Wall  conftest.c >&5
conftest.c: In function 'main':
conftest.c:59: error: size of array 'test_array' is negative
configure:3705: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "spamdyke"
| #define PACKAGE_TARNAME "-spamdyke-"
| #define PACKAGE_VERSION "4.2.0"
| #define PACKAGE_STRING "spamdyke 4.2.0"
| #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
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main ()
| {
| static int test_array [1 - 2 * !((int16_t) ((((int16_t) 1 << (16 - 2)) - 1) * 2 + 1)
|                < (int16_t) ((((int16_t) 1 << (16 - 2)) - 1) * 2 + 2))];
| test_array [0] = 0
|
|   ;
|   return 0;
| }
configure:3734: result: yes
configure:3747: checking for int32_t
configure:3778: gcc -c -Wall  conftest.c >&5
configure:3784: $? = 0
configure:3813: gcc -c -Wall  conftest.c >&5
conftest.c: In function 'main':
conftest.c:59: warning: integer overflow in expression
conftest.c:59: error: size of array 'test_array' is negative
configure:3819: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "spamdyke"
| #define PACKAGE_TARNAME "-spamdyke-"
| #define PACKAGE_VERSION "4.2.0"
| #define PACKAGE_STRING "spamdyke 4.2.0"
| #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
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main ()
| {
| static int test_array [1 - 2 * !((int32_t) ((((int32_t) 1 << (32 - 2)) - 1) * 2 + 1)
|                < (int32_t) ((((int32_t) 1 << (32 - 2)) - 1) * 2 + 2))];
| test_array [0] = 0
|
|   ;
|   return 0;
| }
configure:3848: result: yes
configure:3861: checking for int64_t
configure:3892: gcc -c -Wall  conftest.c >&5
configure:3898: $? = 0
configure:3927: gcc -c -Wall  conftest.c >&5
conftest.c: In function 'main':
conftest.c:59: warning: integer overflow in expression
conftest.c:59: error: size of array 'test_array' is negative
configure:3933: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "spamdyke"
| #define PACKAGE_TARNAME "-spamdyke-"
| #define PACKAGE_VERSION "4.2.0"
| #define PACKAGE_STRING "spamdyke 4.2.0"
| #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
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main ()
| {
| static int test_array [1 - 2 * !((int64_t) ((((int64_t) 1 << (64 - 2)) - 1) * 2 + 1)
|                < (int64_t) ((((int64_t) 1 << (64 - 2)) - 1) * 2 + 2))];
| test_array [0] = 0
|
|   ;
|   return 0;
| }
configure:3962: result: yes
configure:3975: checking for uint16_t
configure:4006: gcc -c -Wall  conftest.c >&5
configure:4012: $? = 0
configure:4033: result: yes
configure:4047: checking for uint32_t
configure:4078: gcc -c -Wall  conftest.c >&5
configure:4084: $? = 0
configure:4105: result: yes
configure:4123: checking for uint64_t
configure:4154: gcc -c -Wall  conftest.c >&5
configure:4160: $? = 0
configure:4181: result: yes
configure:4206: checking for dirent.h that defines DIR
configure:4235: gcc -c -Wall  conftest.c >&5
configure:4241: $? = 0
configure:4257: result: yes
configure:4270: checking for library containing opendir
configure:4311: gcc -o conftest -Wall   conftest.c  >&5
configure:4317: $? = 0
configure:4345: result: none required
configure:4441: checking for struct dirent.d_type
configure:4486: gcc -c -Wall  conftest.c >&5
configure:4492: $? = 0
configure:4566: result: yes
configure:4579: checking whether DT_WHT is declared
configure:4612: gcc -c -Wall  conftest.c >&5
configure:4618: $? = 0
configure:4633: result: yes
configure:4641: checking whether S_IFWHT is declared
configure:4674: gcc -c -Wall  conftest.c >&5
conftest.c: In function 'main':
conftest.c:66: error: 'S_IFWHT' undeclared (first use in this function)
conftest.c:66: error: (Each undeclared identifier is reported only once
conftest.c:66: error: for each function it appears in.)
configure:4680: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "spamdyke"
| #define PACKAGE_TARNAME "-spamdyke-"
| #define PACKAGE_VERSION "4.2.0"
| #define PACKAGE_STRING "spamdyke 4.2.0"
| #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
| /* end confdefs.h.  */
|  #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
|                                    #include <sys/types.h>
|                                     #include <sys/stat.h>
|                                     #include <dirent.h>
|
| int
| main ()
| {
| #ifndef S_IFWHT
|   (void) S_IFWHT;
| #endif
|
|   ;
|   return 0;
| }
configure:4695: result: no
configure:4726: checking whether INADDR_LOOPBACK is declared
configure:4757: gcc -c -Wall  conftest.c >&5
configure:4763: $? = 0
configure:4778: result: yes
configure:4800: checking whether to include debugging symbols (for gdb)
configure:4855: result: no
configure:4859: checking for strip
configure:4875: found /usr/bin/strip
configure:4886: result: strip spamdyke
configure:4899: checking whether to include excessive debugging output
configure:4919: result: no
configure:4924: checking whether to include some debugging output
configure:4944: result: yes
configure:4956: checking whether to include configuration tests
configure:4959: result: yes
configure:4980: checking if openssl/ssl.h will include without additional include directories
configure:5003: gcc -c -Wall -O2  conftest.c >&5
configure:5009: $? = 0
configure:5051: gcc -c -Wall -O2  conftest.c >&5
configure:5057: $? = 0
configure:5063: result: yes
configure:5065: checking for library containing RSA_sign
configure:5106: gcc -o conftest -Wall -O2   conftest.c  >&5
/tmp/ccsRoBka.o: In function `main':
conftest.c:(.text+0x7): undefined reference to `RSA_sign'
collect2: ld returned 1 exit status
configure:5112: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "spamdyke"
| #define PACKAGE_TARNAME "-spamdyke-"
| #define PACKAGE_VERSION "4.2.0"
| #define PACKAGE_STRING "spamdyke 4.2.0"
| #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
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char RSA_sign ();
| int
| main ()
| {
| return RSA_sign ();
|   ;
|   return 0;
| }
configure:5106: gcc -o conftest -Wall -O2   conftest.c -lssl   >&5
configure:5112: $? = 0
configure:5140: result: -lssl
configure:5154: checking for library containing SSL_library_init
configure:5195: gcc -o conftest -Wall -O2   conftest.c -lssl  >&5
configure:5201: $? = 0
configure:5229: result: none required
configure:5239: checking for OpenSSL libraries (for TLS support)
configure:5241: result: yes
configure:5311: checking for library containing inet_aton
configure:5352: gcc -o conftest -Wall -O2   conftest.c -lssl  -lssl -lmysqlclient >&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure:5358: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "spamdyke"
| #define PACKAGE_TARNAME "-spamdyke-"
| #define PACKAGE_VERSION "4.2.0"
| #define PACKAGE_STRING "spamdyke 4.2.0"
| #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
| #define HAVE_LIBMYSQL 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char inet_aton ();
| int
| main ()
| {
| return inet_aton ();
|   ;
|   return 0;
| }
configure:5352: gcc -o conftest -Wall -O2   conftest.c -lresolv  -lssl  -lssl -lmysqlclient >&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure:5358: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "spamdyke"
| #define PACKAGE_TARNAME "-spamdyke-"
| #define PACKAGE_VERSION "4.2.0"
| #define PACKAGE_STRING "spamdyke 4.2.0"
| #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_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
| #define HAVE_LIBMYSQL 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char inet_aton ();
| int
| main ()
| {
| return inet_aton ();
|   ;
|   return 0;
| }
configure:5386: result: no
configure:5394: error: unable to compile without inet_aton()
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_c_int16_t=yes
ac_cv_c_int32_t=yes
ac_cv_c_int64_t=yes
ac_cv_c_uint16_t=yes
ac_cv_c_uint32_t=yes
ac_cv_c_uint64_t=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_have_decl_DT_WHT=yes
ac_cv_have_decl_INADDR_LOOPBACK=yes
ac_cv_have_decl_S_IFWHT=no
ac_cv_header_dirent_dirent_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_inttypes_h=no
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_time=yes
ac_cv_header_unistd_h=yes
ac_cv_member_struct_dirent_d_type=yes
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_STRIP_CMD='strip spamdyke'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_search_RSA_sign=-lssl
ac_cv_search_SSL_library_init='none required'
ac_cv_search_inet_aton=no
ac_cv_search_opendir='none required'

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='gcc'
CFLAGS='-Wall -O2'
CPP='gcc -E'
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
GREP='/bin/grep'
LDFLAGS=''
LIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT='samc (at) silence (dot) org'
PACKAGE_NAME='spamdyke'
PACKAGE_STRING='spamdyke 4.2.0'
PACKAGE_TARNAME='-spamdyke-'
PACKAGE_VERSION='4.2.0'
PATH_SEPARATOR=':'
SHELL='/bin/sh'
STRIP_CMD='strip spamdyke'
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "spamdyke"
#define PACKAGE_TARNAME "-spamdyke-"
#define PACKAGE_VERSION "4.2.0"
#define PACKAGE_STRING "spamdyke 4.2.0"
#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
#define HAVE_LIBMYSQL 1

configure: exit 1
Any help haggybear would be greatly appreciated I am banging my head against the wall trying to get this to work as spamassassin obviously is not doing an effective job on spam control.

I look forward to your response thanks.
8)
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

Re: Issues with plesk and haggybears spamdyke addon

Unread post by biggles »

Hm, I remember having the same problems the first time I installed spamdyke. Unfortunately I don't remember how I got around it. One way is to try with the spamdyke from atomic repo. Have you tried it?

BTW, thanks a lot for your development haggybear. Extremely appreciated!!!
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

Re: Issues with plesk and haggybears spamdyke addon

Unread post by biggles »

Been googling a bit. It has to do with mysql-devel package and it's linkage to modules. Have you installed mysql-devel package?

In german...
http://serversupportforum.de/forum/ples ... fehlt.html
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: Issues with plesk and haggybears spamdyke addon

Unread post by BruceLee »

try this:

Code: Select all

ln -s /usr/lib64/mysql/libmysqlclient.a /usr/lib/libmysqlclient.a
and run again
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Issues with plesk and haggybears spamdyke addon

Unread post by scott »

Thats a pretty bad hack there, you shouldnt have to do something that extreme unless the builder is really messed up.
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: Issues with plesk and haggybears spamdyke addon

Unread post by BruceLee »

you are right.

I checked my notes. This might be better:

after unpacking of spamdyke-mysql.tgz open the configure file
replace:

Code: Select all

LIBS="$LIBS -lssl -lmysqlclient"
with

Code: Select all

LIBS="$LIBS -lssl /usr/lib64/mysql/libmysqlclient.so"
is that better Scott?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Issues with plesk and haggybears spamdyke addon

Unread post by scott »

Still kind of ugly, you could try forcing the library path with -L /usr/lib64/mysql/ -lmysql too. Normally your linker is going to know about /usr/lib/ and /usr/lib64 by default though.
visualrealityink
Forum User
Forum User
Posts: 23
Joined: Mon Feb 28, 2011 6:59 pm
Location: Charlotte NC

Re: Issues with plesk and haggybears spamdyke addon

Unread post by visualrealityink »

Yes mysql-devel is installed and all the files are present in both /usr/lib and /usr/lib64 but its not linking. Should I try any of these hacks scott or is there a better method to getting it to work as I dont really want to mess anything up as the server is live and I just re imaged 2 weeks ago.

Thanks again
visualrealityink
Forum User
Forum User
Posts: 23
Joined: Mon Feb 28, 2011 6:59 pm
Location: Charlotte NC

Re: Issues with plesk and haggybears spamdyke addon

Unread post by visualrealityink »

Ok here is something odd tried the hacks sense I hadn't got a response yet and it still fails on the same thing.

same output in config.log
Post Reply