Re: [Exim] OT: Virtual domains implementation (general under…

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Michael Ludwig
Data:  
Para: exim-users
Assunto: Re: [Exim] OT: Virtual domains implementation (general understand issue)
Hi,

okay, you convinced me to use mysql with vexim.
The database itself is running on the server anyway for web purposes.
But now I ran into the following problem, googling just pointed me to this list (message http://www.exim.org/pipermail/exim-users/Week-of-Mon-20020107/033762.html).

I have exact the same problem, with the difference that I absolutely can't see what I made wrong...

I get the following error whilst compiling:

=============================
make[2]: Entering directory `/admin/compile/MTA/exim4/exim-4.24-exiscan-13/exim-4.24/build-Linux-i386/lookups'
gcc -c -O cdb.c
gcc -c -O dbmdb.c
gcc -c -O dnsdb.c
gcc -c -O dsearch.c
gcc -c -O ibase.c
gcc -c -O ldap.c
gcc -c -O lsearch.c
gcc -c -O mysql.c
mysql.c:31:49: mysql.h: No such file or directory
mysql.c:39: error: parse error before "MYSQL"
mysql.c:39: warning: no semicolon at end of struct or union
mysql.c:40: warning: data definition has no type or storage class
mysql.c:42: error: parse error before '*' token
mysql.c:42: warning: data definition has no type or storage class
mysql.c: In function `mysql_tidy':
mysql.c:69: error: `cn' undeclared (first use in this function)
mysql.c:69: error: (Each undeclared identifier is reported only once
mysql.c:69: error: for each function it appears in.)
mysql.c: In function `perform_mysql_search':
mysql.c:108: error: `MYSQL' undeclared (first use in this function)
mysql.c:108: error: `mysql_handle' undeclared (first use in this function)
mysql.c:109: error: `MYSQL_RES' undeclared (first use in this function)
mysql.c:109: error: `mysql_result' undeclared (first use in this function)
mysql.c:110: error: `MYSQL_ROW' undeclared (first use in this function)
mysql.c:110: error: parse error before "mysql_row_data"
mysql.c:111: error: `MYSQL_FIELD' undeclared (first use in this function)
mysql.c:111: error: `fields' undeclared (first use in this function)
mysql.c:119: error: `cn' undeclared (first use in this function)
mysql.c:205: warning: comparison between pointer and integer
mysql.c:272: error: `mysql_row_data' undeclared (first use in this function)
mysql.c:274: warning: initialization makes pointer from integer without a cast
make[2]: *** [mysql.o] Error 1
=============================



and later on this one...

=============================
make[2]: Entering directory `/admin/compile/MTA/exim4/exim-4.24-exiscan-13/exim-4.24/build-Linux-i386/auths'
gcc -c -O b64encode.c
gcc -c -O b64decode.c
gcc -c -O call_pam.c
gcc -c -O call_pwcheck.c
gcc -c -O call_radius.c
gcc -c -O xtextencode.c
gcc -c -O xtextdecode.c
gcc -c -O get_data.c
gcc -c -O get_no64_data.c
gcc -c -O md5.c
gcc -c -O cram_md5.c
gcc -c -O plaintext.c
gcc -c -O pwcheck.c
gcc -c -O sha1.c
gcc -c -O auth-spa.c
gcc -c -O spa.c
/bin/rm -f auths.a
ar cq auths.a b64encode.o b64decode.o call_pam.o call_pwcheck.o call_radius.o xtextencode.o xtextdecode.o get_data.o get_no64_data.o md5.o cram_md5.o plaintext.o pwcheck.o sha1.o auth-spa.o spa.o
ranlib auths.a
/bin/rm -rf ../drtables.o
make[2]: Leaving directory `/admin/compile/MTA/exim4/exim-4.24-exiscan-13/exim-4.24/build-Linux-i386/auths'
make[1]: *** No rule to make target `lookups/lookups.a', needed by `exim'. Stop.
make[1]: Leaving directory `/admin/compile/MTA/exim4/exim-4.24-exiscan-13/exim-4.24/build-Linux-i386'
make: *** [go] Error 2
stargate:/admin/compile/MTA/exim4/exim-4.24-exiscan-13/exim-4.24 #
=============================


System is SuSE 9.0 Pro, mysql 4.0.15 (I think) and -devel package installed as well. (nearly all other mysql packages also installed).


the ld.so.conf looks like that:

=============================
stargate:/admin/compile/MTA/exim4/exim-4.24-exiscan-13/exim-4.24 # less /etc/ld.so.conf
/usr/X11R6/lib/Xaw95
/usr/X11R6/lib/Xaw3d
/usr/X11R6/lib
/usr/i486-linux/lib
/usr/i486-linux-libc5/lib=libc5
/usr/i486-linux-libc6/lib=libc6
/usr/i486-linuxaout/lib
/usr/i386-suse-linux/lib
/usr/local/lib
/usr/openwin/lib
/opt/kde/lib
/opt/kde2/lib
/opt/kde3/lib
/opt/gnome/lib
/opt/gnome2/lib
/usr/bin/mysql
/usr/lib/mysql
/usr/lib
/var/lib/mysql
/usr/include
/usr/include/mysql
stargate:/admin/compile/MTA/exim4/exim-4.24-exiscan-13/exim-4.24 #
=============================

The ldconfig script was run after any change of ld.so.conf, of course.
I inserted the last six lines but I had no success at all.


How can I compile exim with mysql support? What files are missing on my system?

Thanks,

Michael