Postfix um MySQL erweitern?

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
lev1332
Posts: 6
Joined: 2006-10-18 14:17
 

Postfix um MySQL erweitern?

Post by lev1332 »

Hallo erstmal!


Ich habe einen Rootserver mit Suse 9.3
Habe auch alles soweit am laufen
Postfix macht alles was er soll, nur eine sache stört mich!!!

Bei postfix steht bei den "lookup tables" nicht MySQL.
Den kram auf der Postfix homepage bekomm ich nicht hin.
Wenn ich postfix mit diesem make befehl machen will bekomme ich irgendwelche fehler.
Leider bin ich auch kein wirklicher linux benutzer und verstehe nicht viel davon.
Hab es mir einfach gemacht und installiere meistens alles über webmin.
leider finde ich auch kein funktionierendes rpm packet mit postfix und mysql.
Kann mir einer sagen wo ich eine anleitung für Dummys finde oder es mir selber erklären?
muss ich postfix komplett neu installieren, oder kann man es auch so um MySQL erweitern?


Vielen dank schonmal im vorraus!!!

Lev1332
User avatar
Joe User
Project Manager
Project Manager
Posts: 11185
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: Postfix um MySQL erweitern?

Post by Joe User »

SuFu nutzen, das Thema wurde bereits mehrfach diskutiert...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
User avatar
daemotron
Administrator
Administrator
Posts: 2641
Joined: 2004-01-21 17:44
 

Re: Postfix um MySQL erweitern?

Post by daemotron »

Wenn Du MySQL-Unterstützung in Postfix haben willst, musst Du es auch so kompilieren. Das geht natürlich nur gut, wenn die MySQL-Headerdateien auf Deinem System auch an der Stelle liegen, an denen das configure-Skript von Postfix sie erwartet...

Will heißen:
1. Du musst mysql-devel o. ä. installieren
2. feststellen, wo die Header gelandet sind (z. B. /usr/lib/mysql o. ä.)
3. configure --with-mysql=/usr/lib/mysql (oder so ähnlich)
lev1332
Posts: 6
Joined: 2006-10-18 14:17
 

Re: Postfix um MySQL erweitern?

Post by lev1332 »

Danke für die schnelle antwort.

Zum ersten finde ich soviele mögliche Forum einträge (gut 9 seite voll) das ich wieder nichts finde.

Zum anderen finde ich dieses config nicht. Habe aber meinen fehler den ich machte verstanden, es fehlte noch ein packet, db-devel.
Habe ich jetzt installiert. dann klappte auch der makefile befehl, allerdings wenn ich danach wieder make tippe bekomme ich gut 1000 zeilen fehlermeldungen, unter anderem das irgendetwas mit MySQL h files nicht stimmt. habe schon 15 mal überprüft, sind an der richtigen stelle und MySQL-devel ist auch installiert.

Mach ich noch etwas falsch?
Ich schau mal ob ich einfach das MySQL-devel neu installiere.


PS: Achja, auf der Postfix seite wird im MySQL-HowTo geschrieben das man es mit diesem Befehl machen soll:

make -f Makefile.init makefiles
'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include'
'AUXLIBS=-L/usr/local/mysql/lib -lmysqlclient -lz -lm'

Habe die pfade auch angepasst.
danache einfache make tippen laut howto, was zu den fehlern fürt. :-(
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Postfix um MySQL erweitern?

Post by Roger Wilco »

lev1332 wrote:Bei postfix steht bei den "lookup tables" nicht MySQL.
http://www.novell.com/products/linuxpac ... mysql.html
lev1332
Posts: 6
Joined: 2006-10-18 14:17
 

Re: Postfix um MySQL erweitern?

Post by lev1332 »

Kann es sein das es das nicht für Suse 9.3 gibt?

In den RPM datenbanken finde ich das immer meistens für mandrake oder so, nie für suse 9.3

eine suche über google nach der datei die in dem rpm sein soll(dict_mysql.so) wird die auch nicht für suse gefunden.

und dieses blöde compilieren funtzt auch nicht.
angeblich findet der die mysql.h datei nicht liegt aber an dem angegebenen pfad.

liegt es an mir an dem system oder an allem? :cry:
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Postfix um MySQL erweitern?

Post by Roger Wilco »

lev1332 wrote:Kann es sein das es das nicht für Suse 9.3 gibt?
Hm, stimmt wohl. Dann halt kein offizielles RPM.
lev1332 wrote:und dieses blöde compilieren funtzt auch nicht.
angeblich findet der die mysql.h datei nicht liegt aber an dem angegebenen pfad.
mysql-devel installiert?
lev1332
Posts: 6
Joined: 2006-10-18 14:17
 

Re: Postfix um MySQL erweitern?

Post by lev1332 »

Ich habe soviele meldungen beim compilieren bekommen, das ich leider nicht alles mehr lesen kann.

So sieht das aus wenn ich den makefile befehl verwende(noch ganz ok):

Code: Select all

h1009518:/downloads/postfix-2.3.3 # make -f Makefile.init makefiles     'CCARGS=-DHAS_MYSQL -I/usr/include/mysql'     'AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz -lm'
make -f Makefile.in MAKELEVEL= Makefiles
(echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
set +e; if cmp makedefs.tmp conf/makedefs.out; then rm makedefs.tmp; 
else mv makedefs.tmp conf/makedefs.out; fi >/dev/null 2>/dev/null
set -e; for i in src/util src/global src/dns src/tls src/xsasl src/milter src/master src/postfix src/smtpstone src/sendmail src/error src/pickup src/cleanup src/smtpd src/local src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce src/pipe src/showq src/postalias src/postcat src/postconf src/postdrop src/postkick src/postlock src/postlog src/postmap src/postqueue src/postsuper src/qmqpd src/spawn src/flush src/verify src/virtual src/proxymap src/anvil src/scache src/discard src/tlsmgr; do 
 (set -e; echo "[$i]"; cd $i; rm -f Makefile; 
 make -f Makefile.in Makefile MAKELEVEL=) || exit 1; 
done;
[src/util]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/global]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/dns]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/tls]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/xsasl]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/milter]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/master]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postfix]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/smtpstone]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/sendmail]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/error]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/pickup]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/cleanup]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/smtpd]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/local]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/trivial-rewrite]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/qmgr]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/oqmgr]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/smtp]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/bounce]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/pipe]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/showq]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postalias]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postcat]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postconf]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postdrop]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postkick]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postlock]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postlog]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postmap]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postqueue]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/postsuper]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/qmqpd]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/spawn]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/flush]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/verify]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/virtual]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/proxymap]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/anvil]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/scache]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/discard]
(cat ../../conf/makedefs.out Makefile.in) >Makefile
[src/tlsmgr]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
rm -f Makefile; (cat conf/makedefs.out Makefile.in) >Makefile
Danach soll ich einfach nur make tippen, was anschließend leider nicht mehr alles zu lesen ist:

Code: Select all

t.h header_opts.h header_token.h input_transp.h int_filt.h is_header.h lex_822.h log_adhoc.h mail_addr.h mail_addr_crunch.h mail_addr_find.h mail_addr_map.h mail_conf.h mail_copy.h mail_date.h mail_dict.h mail_error.h mail_flush.h mail_open_ok.h mail_params.h mail_proto.h mail_queue.h mail_run.h mail_scan_dir.h mail_stream.h mail_task.h mail_version.h maps.h mark_corrupt.h match_parent_style.h mbox_conf.h mbox_open.h mime_state.h mkmap.h msg_stats.h mynetworks.h mypwd.h namadr_list.h off_cvt.h opened.h own_inet_addr.h pipe_command.h post_mail.h qmgr_user.h qmqp_proto.h quote_821_local.h quote_822_local.h quote_flags.h rcpt_buf.h rcpt_print.h rec_attr_map.h rec_streamlf.h rec_type.h recipient_list.h record.h resolve_clnt.h resolve_local.h rewrite_clnt.h scache.h sent.h smtp_stream.h split_addr.h string_list.h strip_addr.h sys_exits.h timed_ipc.h tok822.h trace.h user_acl.h valid_mailhost_addr.h verify.h verify_clnt.h verp_sender.h wildcard_inet_addr.h xtext.h
[src/dns]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c dns_lookup.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c dns_rr.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c dns_strerror.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c dns_strtype.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c dns_rr_to_pa.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c dns_sa_to_rr.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c dns_rr_eq_sa.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c dns_rr_to_sa.c
ar rv libdns.a dns_lookup.o dns_rr.o dns_strerror.o dns_strtype.o dns_rr_to_pa.o dns_sa_to_rr.o dns_rr_eq_sa.o dns_rr_to_sa.o
ar: creating libdns.a
a - dns_lookup.o
a - dns_rr.o
a - dns_strerror.o
a - dns_strtype.o
a - dns_rr_to_pa.o
a - dns_sa_to_rr.o
a - dns_rr_eq_sa.o
a - dns_rr_to_sa.o
ranlib libdns.a
cp libdns.a ../../lib
ranlib ../../lib/libdns.a
for i in dns.h; 
do 
  cmp -s $i ../../include/$i 2>/dev/null || cp $i ../../include; 
done
cd ../../include; chmod 644 dns.h
[src/tls]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_prng_dev.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_prng_egd.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_prng_file.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_prng_exch.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_stream.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_bio_ops.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_misc.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_dh.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_rsa.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_verify.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_certkey.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_session.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_client.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_server.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_scache.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_mgr.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_seed.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tls_level.c
ar rv libtls.a tls_prng_dev.o tls_prng_egd.o tls_prng_file.o tls_prng_exch.o tls_stream.o tls_bio_ops.o tls_misc.o tls_dh.o tls_rsa.o tls_verify.o tls_certkey.o tls_session.o tls_client.o tls_server.o tls_scache.o tls_mgr.o tls_seed.o tls_level.o
ar: creating libtls.a
a - tls_prng_dev.o
a - tls_prng_egd.o
a - tls_prng_file.o
a - tls_prng_exch.o
a - tls_stream.o
a - tls_bio_ops.o
a - tls_misc.o
a - tls_dh.o
a - tls_rsa.o
a - tls_verify.o
a - tls_certkey.o
a - tls_session.o
a - tls_client.o
a - tls_server.o
a - tls_scache.o
a - tls_mgr.o
a - tls_seed.o
a - tls_level.o
ranlib libtls.a
cp libtls.a ../../lib
ranlib ../../lib/libtls.a
for i in tls.h tls_prng.h tls_scache.h tls_mgr.h; 
do 
  cmp -s $i ../../include/$i 2>/dev/null || cp $i ../../include; 
done
cd ../../include; chmod 644 tls.h tls_prng.h tls_scache.h tls_mgr.h
[src/xsasl]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c xsasl_server.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c xsasl_cyrus_server.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c xsasl_cyrus_log.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c xsasl_cyrus_security.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c xsasl_client.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c xsasl_cyrus_client.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c xsasl_dovecot_server.c
ar rv libxsasl.a xsasl_server.o xsasl_cyrus_server.o xsasl_cyrus_log.o xsasl_cyrus_security.o xsasl_client.o xsasl_cyrus_client.o xsasl_dovecot_server.o
ar: creating libxsasl.a
a - xsasl_server.o
a - xsasl_cyrus_server.o
a - xsasl_cyrus_log.o
a - xsasl_cyrus_security.o
a - xsasl_client.o
a - xsasl_cyrus_client.o
a - xsasl_dovecot_server.o
ranlib libxsasl.a
cp libxsasl.a ../../lib
ranlib ../../lib/libxsasl.a
for i in xsasl.h; 
do 
  cmp -s $i ../../include/$i 2>/dev/null || cp $i ../../include; 
done
cd ../../include; chmod 644 xsasl.h
[src/milter]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c milter.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c milter8.c
ar rv libmilter.a milter.o milter8.o
ar: creating libmilter.a
a - milter.o
a - milter8.o
ranlib libmilter.a
cp libmilter.a ../../lib
ranlib ../../lib/libmilter.a
for i in milter.h; 
do 
  cmp -s $i ../../include/$i 2>/dev/null || cp $i ../../include; 
done
cd ../../include; chmod 644 milter.h
[src/master]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c single_server.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c multi_server.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c trigger_server.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c master_proto.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c mail_flow.c
ar rv libmaster.a single_server.o multi_server.o trigger_server.o master_proto.o mail_flow.o
ar: creating libmaster.a
a - single_server.o
a - multi_server.o
a - trigger_server.o
a - master_proto.o
a - mail_flow.o
ranlib libmaster.a
cp libmaster.a ../../lib/libmaster.a
ranlib ../../lib/libmaster.a
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c master.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c master_conf.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c master_ent.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c master_sig.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c master_avail.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c master_spawn.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c master_service.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c master_status.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c master_listen.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c master_vars.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c master_wakeup.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c master_flow.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o master master.o master_conf.o master_ent.o master_sig.o master_avail.o master_spawn.o master_service.o master_status.o master_listen.o master_vars.o master_wakeup.o master_flow.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [master] Error 1
make: *** [update] Error 1
Was mir auffällt ist das er c files vermisst, ich weis nicht ob das in dem text noch zu lesen ist.
versteht jemand etwas von dem gewirr?

Sorry das ich alles copiert habe weiß leider nicht mehr weiter.

Achja, MySQL-devel ist natürlich installiert.
Hab ich nochetwas vergessen zu installieren?
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Postfix um MySQL erweitern?

Post by Roger Wilco »

Du musst zlib-devel nachinstallieren. Und bitte nach dem configure-Skript "make" ohne Parameter aufrufen.
lev1332
Posts: 6
Joined: 2006-10-18 14:17
 

Re: Postfix um MySQL erweitern?

Post by lev1332 »

So das wird wohl eine richtige odyssey(richtig geschrieben? :? )!

Ich hab auch gleich mal TLS installiert.
Da waren es nur noch zwei fehler.

Nachdem Ich jetzt zlib-devel installiert habe sieht es so aus(mal wieder zuviel zeilen für alles):

Code: Select all

o smtp_sasl_glue.o smtp_reuse.o smtp_map11.o ../../lib/libmaster.a ../../lib/libtls.a ../../lib/libdns.a ../../lib/libxsasl.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp smtp ../../libexec
[src/bounce]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c bounce.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c bounce_append_service.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c bounce_notify_service.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c bounce_cleanup.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c bounce_notify_util.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c bounce_notify_verp.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c bounce_one_service.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c bounce_warn_service.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c bounce_trace_service.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c bounce_template.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c bounce_templates.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o bounce bounce.o bounce_append_service.o bounce_notify_service.o bounce_cleanup.o bounce_notify_util.o bounce_notify_verp.o bounce_one_service.o bounce_warn_service.o bounce_trace_service.o bounce_template.o bounce_templates.o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp bounce ../../libexec
rm -f ../../conf/bounce.cf.default
perl annotate.pl <template_test.ref >../../conf/bounce.cf.default
[src/pipe]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c pipe.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o pipe pipe.o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp pipe ../../libexec
[src/showq]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c showq.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o showq showq.o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp showq ../../libexec
[src/postalias]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c postalias.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o postalias postalias.o  ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp postalias ../../bin
[src/postcat]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c postcat.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o postcat postcat.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp postcat ../../bin
[src/postconf]
awk -f extract.awk ../*/*.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c postconf.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o postconf postconf.o ../../lib/libxsasl.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp postconf ../../bin
rm -f ../../conf/main.cf.default
(echo "# DO NOT EDIT THIS FILE. EDIT THE MAIN.CF FILE INSTEAD. THE"; 
 echo "# TEXT HERE JUST SHOWS DEFAULT SETTINGS BUILT INTO POSTFIX."; 
 echo "#"; 
 ./postconf -d) |egrep -v '^(myhostname|mydomain|mynetworks) ' >../../conf/main.cf.default
[src/postdrop]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c postdrop.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o postdrop postdrop.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp postdrop ../../bin
[src/postkick]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c postkick.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o postkick postkick.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp postkick ../../bin
[src/postlock]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c postlock.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o postlock postlock.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp postlock ../../bin
[src/postlog]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c postlog.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o postlog postlog.o  ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp postlog ../../bin
[src/postmap]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c postmap.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o postmap postmap.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp postmap ../../bin
[src/postqueue]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c postqueue.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o postqueue postqueue.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp postqueue ../../bin
[src/postsuper]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c postsuper.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o postsuper postsuper.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp postsuper ../../bin
[src/qmqpd]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c qmqpd.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c qmqpd_state.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c qmqpd_peer.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o qmqpd qmqpd.o qmqpd_state.o qmqpd_peer.o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libdns.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp qmqpd ../../libexec
[src/spawn]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c spawn.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o spawn spawn.o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp spawn ../../libexec
[src/flush]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c flush.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o flush flush.o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp flush ../../libexec
[src/verify]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c verify.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o verify verify.o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp verify ../../libexec
[src/virtual]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c virtual.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c mailbox.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c recipient.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c deliver_attr.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c maildir.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c unknown.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o virtual virtual.o mailbox.o recipient.o deliver_attr.o maildir.o unknown.o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp virtual ../../libexec
[src/proxymap]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c proxymap.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o proxymap proxymap.o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp proxymap ../../libexec
[src/anvil]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c anvil.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o anvil anvil.o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp anvil ../../libexec
[src/scache]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c scache.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o scache scache.o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp scache ../../libexec
[src/discard]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c discard.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o discard discard.o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp discard ../../libexec
[src/tlsmgr]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -c tlsmgr.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O -I. -I../../include -DLINUX2 -o tlsmgr tlsmgr.o ../../lib/libmaster.a ../../lib/libtls.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -ldb -lnsl -lresolv
cp tlsmgr ../../libexec
Was hab ich jetzt wieder vergessen?
Kann man eigentlich etwas vergessen wovon man nicht weiß?

Hat jemand ne check liste was alles installiert sein muss?
lev1332
Posts: 6
Joined: 2006-10-18 14:17
 

Re: Postfix um MySQL erweitern?

Post by lev1332 »

Commando zurück!!!

Ich weiß nicht warum, aber als ich gerade nochmal den make kram ausgefürt hatte hat er alles gemacht so wie er sollte!!!

Danke an alle die mir geholfen haben!!!

Ich hoffe sowas muss ich nicht nochmal durchmachen!!!!!!!! :)
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Postfix um MySQL erweitern?

Post by Roger Wilco »

lev1332 wrote:Ich hoffe sowas muss ich nicht nochmal durchmachen!!!!!!!! :)
Spätestens beim nächsten Update...