akpop3d mysql support openbsd problem
Hello, I've got a problem compiling akpop3d with MySQL on OpenBSD. It uses shadow.h which is not included in OpenBSD, can anybody help me, to start it running? I'm not able to fix it by my self that's why I'm writing to the list for assistance. -- Tomasz Pajor Web(Solutions
Re: akpop3d mysql support openbsd problem
On Mon, Apr 10, 2006 at 06:47:02PM +0100, Tomasz Pajor wrote: > Hello, > > I've got a problem compiling akpop3d with MySQL on OpenBSD. > It uses shadow.h which is not included in OpenBSD, can anybody help me, to > start it running? > I'm not able to fix it by my self that's why I'm writing to the list for > assistance. Start by applying the patches in /usr/ports/mail/akpop3d/patches. If that doesn't work, try something that is supported, or try to interest someone enough to do the work for you. Joachim
Re: akpop3d mysql support openbsd problem
I'm replying to my post, but I'm attaching the error message: gcc -O2 -Wall -pipe -DHAVE_CONFIG_H -D_BSD_SOURCE -I/usr/local/include -c mysql.c In file included from mysql.c:1: mysql.h:11:20: shadow.h: No such file or directory mysql.c: In function `UserLookup': mysql.c:94: error: assignment of read-only location mysql.c: In function `getMspnam': mysql.c:196: warning: implicit declaration of function `getspnam' mysql.c:196: warning: assignment makes pointer from integer without a cast mysql.c:214: error: invalid use of undefined type `struct spwd' mysql.c:218: error: invalid use of undefined type `struct spwd' mysql.c: In function `UserLookup': mysql.c:228: error: syntax error at end of input mysql.c:228: warning: unused variable `iFileUsed' mysql.c:27: error: storage size of `stShadow' isn't known -- Tomasz Pajor Web(Solutions -- Original Message --- From: "Tomasz Pajor" <[EMAIL PROTECTED]> To: ports@openbsd.org Sent: Mon, 10 Apr 2006 18:47:02 +0100 Subject: akpop3d mysql support openbsd problem > Hello, > > I've got a problem compiling akpop3d with MySQL on OpenBSD. > It uses shadow.h which is not included in OpenBSD, can anybody help me, to > start it > running? I'm not able to fix it by my self that's why I'm writing to the list > for assistance. > > -- > Tomasz Pajor > Web(Solutions --- End of Original Message ---
Re: akpop3d mysql support openbsd problem
On 11 Apr 2006, at 4:27 AM, Tomasz Pajor wrote: Try the following patch. Builds and packages for me. I haven't tested it. Let me know if it works. kallasjarvi:akpop3d {42} env FLAVOR="mysql" make ===> akpop3d-0.7.7p0-mysql depends on: mysql-client-5.0.18p0 - found ===> akpop3d-0.7.7p0-mysql depends on: bzip2-* - found ===> Verifying specs: c crypto ssl ===> found c.39.0 crypto.12.0 ssl.10.0 ===> Checking files for akpop3d-0.7.7p0-mysql >> akpop3d-0.7.7.tar.bz2 doesn't seem to exist on this system. >> Fetch http://www.synflood.at/akpop3d/akpop3d-0.7.7.tar.bz2. 100% |**| 61497 00:03 >> Size matches for /usr/ports/distfiles/akpop3d-0.7.7.tar.bz2 >> Checksum OK for akpop3d-0.7.7.tar.bz2. (sha1) ===> Extracting for akpop3d-0.7.7p0-mysql ===> Patching for akpop3d-0.7.7p0-mysql ===> Configuring for akpop3d-0.7.7p0-mysql configure: loading site script /usr/ports/infrastructure/db/config.site checking for gcc... cc checking for C compiler default output... 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... (cached) o checking whether we are using the GNU C compiler... (cached) yes checking whether cc accepts -g... (cached) yes checking for cc option to accept ANSI C... none needed checking for a BSD-compatible install... /usr/bin/install -c -o root - g bin checking for BIO_new in -lcrypto... yes checking for SSL_new in -lssl... yes checking for crypt in -lcrypt... no checking for mysql_init in -lmysqlclient... no checking for socket in -lsocket... no checking how to run the C preprocessor... cc -E checking for egrep... (cached) grep -E checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... yes checking for unistd.h... (cached) yes checking crypt.h usability... no checking crypt.h presence... no checking for crypt.h... no checking for time.h... (cached) yes checking for sys/time.h... (cached) yes checking for sys/wait.h... (cached) yes checking for sys/resource.h... (cached) yes checking for ctype.h... (cached) yes checking for errno.h... (cached) yes checking for fcntl.h... (cached) yes checking for netdb.h... (cached) yes checking for pwd.h... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for netinet/in.h... (cached) yes checking shadow.h usability... no checking shadow.h presence... no checking for shadow.h... no checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/file.h... (cached) yes checking for sys/socket.h... (cached) yes checking for syslog.h... (cached) yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... (cached) yes checking for uid_t in sys/types.h... (cached) yes checking for pid_t... (cached) yes checking for size_t... (cached) yes checking for realloc... (cached) yes checking for atexit... (cached) yes checking for memset... (cached) yes checking for socket... (cached) yes checking for strncasecmp... (cached) yes checking for lockf... (cached) yes configure: creating ./config.status config.status: creating Makefile config.status: creating redhat/akpop3d.spec config.status: creating config.h ===> Building for akpop3d-0.7.7p0-mysql cc -O2 -pipe -DHAVE_CONFIG_H -D_BSD_SOURCE -DSYSCONFDIR="\"/etc\"" - c authenticate.c cc -O2 -pipe -DHAVE_CONFIG_H -D_BSD_SOURCE -DSYSCONFDIR="\"/etc\"" - c lock_maildrop.c cc -O2 -pipe -DHAVE_CONFIG_H -D_BSD_SOURCE -DSYSCONFDIR="\"/etc\"" - c main.c cc -O2 -pipe -DHAVE_CONFIG_H -D_BSD_SOURCE -DSYSCONFDIR="\"/etc\"" - c pop3_session.c cc -O2 -pipe -DHAVE_CONFIG_H -D_BSD_SOURCE -DSYSCONFDIR="\"/etc\"" - c process.c cc -O2 -pipe -DHAVE_CONFIG_H -D_BSD_SOURCE -DSYSCONFDIR="\"/etc\"" - c rw.c cc -O2 -pipe -DHAVE_CONFIG_H -D_BSD_SOURCE -DSYSCONFDIR="\"/etc\"" - c signal.c cc -O2 -pipe -DHAVE_CONFIG_H -D_BSD_SOURCE -DSYSCONFDIR="\"/etc\"" - c ssl.c cc -O2 -pipe -DHAVE_CONFIG_H -D_BSD_SOURCE -DSYSCONFDIR="\"/etc\"" - c tcp_listen.c cc -O2 -pipe -DHAVE_CONFIG_H -D_BSD_SOURCE -DSYSCONFDIR="\"/etc\"" - c daemonize.c cc -O2 -pipe -DHAVE_CONFIG_H -D_BSD_SOURCE -DSYSCONFDIR="\"/etc\"" - c md5.c cc -O2 -pipe -DHAVE_CONFIG_H -D_BSD_SOURCE -DSYSCONFDIR="\"/etc\"" - c strlcpy.c cc -O2 -pipe -DHAVE_CONFIG_H -D_BSD_SOURCE -DSYSCONFDIR="\"/etc\"" - c mysql.c cc -o akpop3d authenticate.o lock_maildrop.o main.o pop3_session.o process.o rw.o signal.o ssl.o tcp_listen.o daemonize.o md5.o strlcpy.o mysql.o -lssl -lcrypto kallasjarvi:akpop3d {43} env FLAVOR="mysql" make package ===
Re: akpop3d mysql support openbsd problem
On 11 Apr 2006, at 11:43 PM, Peter Strömberg wrote: On 11 Apr 2006 at 23:35, Ian McWilliam wrote: ;-) You need CONFIGURE_ARGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" LDFLAGS=-L ${LOCALBASE}/lib then you get to fix the compilation errors in mysql.c ... /Peter Take 2. see attached diff. Not tested. Probably needs run deps as well. Ian McWilliam akpop3d.diff Description: Binary data
Re: akpop3d mysql support openbsd problem
On 12 Apr 2006, at 1:13 AM, Ian McWilliam wrote: Take 2. see attached diff. Not tested. Probably needs run deps as well. AHHH. Take 3 easier with a tar ball - includes missing patches Ian McWilliam akpop3d.tgz Description: Binary data