Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58647 - vpopmail 5.4.x fail to compile
Summary: vpopmail 5.4.x fail to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-28 05:25 UTC by Sébastien Riccio
Modified: 2004-08-24 11:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sébastien Riccio 2004-07-28 05:25:51 UTC
When trying to emerge vpopmail 5.4.x builds i got a compilation error. It looks like it is searching for mysql.h and it is available in /usr/include/mysql.



Reproducible: Always
Steps to Reproduce:
1. emerge vpopmail

Actual Results:  
vauth.c:33:19: mysql.h: No such file or directory
vauth.c:40: error: syntax error before "mysql_update"
vauth.c:40: warning: type defaults to `int' in declaration of `mysql_update'
vauth.c:41: error: syntax error before "mysql_read_getall"
vauth.c:41: warning: type defaults to `int' in declaration of `mysql_read_getall
'


Expected Results:  
Compiled vpopmail :)

Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-
gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) MP 1900+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-mp -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s
hare/config /usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/
domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-mp -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache apm arts avi berkdb crypt cups encode esd foomaticdb gd gdbm gif 
gpm gtk2 imap imlib innodb java jikes jpeg kde libg++ libwww mad maildir mikmod 
mmx motif mpeg mysql ncurses nls nocd odbc oggvorbis opengl oss pam pdflib perl 
png prelude python qt quicktime readline ruby sdl slang snmp spell ssl svga 
tcltk tcpd truetype x86 xml2 xmms xv zlib"
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-08-21 14:08:45 UTC
please try vpopmail-5.4.6.
Comment 2 Sébastien Riccio 2004-08-24 11:01:53 UTC
Same problem with 5.4.6 and 5.4.6, but now i get the problem.

I tried a little work that thing out... and discovered that when compiling, configure reports this:

auth inc = -I/usr/local/include/mysql
auth lib = -L/usr/local/lib/mysql  -lmysqlclient -lz -lm

but it should be /usr/include/mysql and /usr/lib/mysql

If i look into the original vpopmail configure options, I can see this:

  --enable-incdir=DIR        Your MySQL/Oracle 'include' directory.
  --enable-libdir=DIR        Your MySQL/Oracle 'lib' directory.

Looking closer at the .ebuild files i can see this:

     --enable-libs=/usr/include/mysql \
     --enable-sqllibdir=/usr/lib/mysql \

Looks like these configure options have been renamed.

When replacing these with :

     --enable-incdir=/usr/include/mysql \
     --enable-libdir=/usr/lib/mysql \

Everythings compile successfully.

It would be nice to apply these changes to the original .ebuild files.

Thank you.


Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-24 11:12:04 UTC
In CVS now.
In future, please don't mark a bug as resolved+fixed until we have it in CVS.
It might easily get lost and forgotten about as already done.