Hallo,
ich habe ein problem mit dem make befehl bei Postfix 2.0.19.
Unter SuSE 9.1 Prof habe ich das SRC RPM von Postfix 2.0.19 vom SuSE FTP Server installiert. Ich habe dann das Postfix SRC .tar.gz ausgepackt und
"make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/include/sasl' \
'AUXLIBS=-L/usr/lib/mysql-lmysqlclient -lz -lm -lsasl2'"
ausgeführt. Dies hat ohne Probleme funktioniert. Danach habe ich make ausgeführt. Hier hab es ein paar Probleme, aber durch die Installation der Quell RPMs konnte ich diese umgehen. Bei einem Problem hänge ich jetzt aber.
##########################################
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/include/sasl -DSNAPSHOT -g -O -I. -I../../include -DLINUX2 -o error error.o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql-lmysqlclient -lz -lm -lsasl2 -ldb -lnsl -lresolv
../../lib/libglobal.a(dict_mysql.o)(.text+0x76): In function `dict_mysql_lookup':
/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:219: undefined reference to `mysql_escape_string'
../../lib/libglobal.a(dict_mysql.o)(.text+0x12b):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:240: undefined reference to `mysql_num_rows'
../../lib/libglobal.a(dict_mysql.o)(.text+0x1a2):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:251: undefined reference to `mysql_fetch_row'
../../lib/libglobal.a(dict_mysql.o)(.text+0x1f9):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:258: undefined reference to `mysql_free_result'
../../lib/libglobal.a(dict_mysql.o)(.text+0x258):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:254: undefined reference to `mysql_num_fields'
../../lib/libglobal.a(dict_mysql.o)(.text+0x27b):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:268: undefined reference to `mysql_free_result'
../../lib/libglobal.a(dict_mysql.o)(.text+0x3a6): In function `plmysql_query':
/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:326: undefined reference to `mysql_query'
../../lib/libglobal.a(dict_mysql.o)(.text+0x3b7):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:327: undefined reference to `mysql_store_result'
../../lib/libglobal.a(dict_mysql.o)(.text+0x3e5):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:335: undefined reference to `mysql_error'
../../lib/libglobal.a(dict_mysql.o)(.text+0x4ba): In function `plmysql_connect_single':
/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:370: undefined reference to `mysql_init'
../../lib/libglobal.a(dict_mysql.o)(.text+0x4d9):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:371: undefined reference to `mysql_real_connect'
../../lib/libglobal.a(dict_mysql.o)(.text+0x518):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:377: undefined reference to `mysql_error'
../../lib/libglobal.a(dict_mysql.o)(.text+0x567): In function `plmysql_close_host':
/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:388: undefined reference to `mysql_close'
../../lib/libglobal.a(dict_mysql.o)(.text+0x58a): In function `plmysql_down_host':
/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:399: undefined reference to `mysql_close'
../../lib/libglobal.a(dict_mysql.o)(.text+0x9cd): In function `plmysql_dealloc':
/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:565: undefined reference to `mysql_close'
collect2: ld returned 1 exit status
make: *** [error] Error 1
make: *** [update] Error 1
##########################################
Das MYSQL PAM Modul habe ich vorher erfolgreich kompiliert und installiert.
Danke für die Hilfe
ich habe ein problem mit dem make befehl bei Postfix 2.0.19.
Unter SuSE 9.1 Prof habe ich das SRC RPM von Postfix 2.0.19 vom SuSE FTP Server installiert. Ich habe dann das Postfix SRC .tar.gz ausgepackt und
"make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/include/sasl' \
'AUXLIBS=-L/usr/lib/mysql-lmysqlclient -lz -lm -lsasl2'"
ausgeführt. Dies hat ohne Probleme funktioniert. Danach habe ich make ausgeführt. Hier hab es ein paar Probleme, aber durch die Installation der Quell RPMs konnte ich diese umgehen. Bei einem Problem hänge ich jetzt aber.
##########################################
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/include/sasl -DSNAPSHOT -g -O -I. -I../../include -DLINUX2 -o error error.o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib/mysql-lmysqlclient -lz -lm -lsasl2 -ldb -lnsl -lresolv
../../lib/libglobal.a(dict_mysql.o)(.text+0x76): In function `dict_mysql_lookup':
/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:219: undefined reference to `mysql_escape_string'
../../lib/libglobal.a(dict_mysql.o)(.text+0x12b):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:240: undefined reference to `mysql_num_rows'
../../lib/libglobal.a(dict_mysql.o)(.text+0x1a2):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:251: undefined reference to `mysql_fetch_row'
../../lib/libglobal.a(dict_mysql.o)(.text+0x1f9):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:258: undefined reference to `mysql_free_result'
../../lib/libglobal.a(dict_mysql.o)(.text+0x258):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:254: undefined reference to `mysql_num_fields'
../../lib/libglobal.a(dict_mysql.o)(.text+0x27b):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:268: undefined reference to `mysql_free_result'
../../lib/libglobal.a(dict_mysql.o)(.text+0x3a6): In function `plmysql_query':
/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:326: undefined reference to `mysql_query'
../../lib/libglobal.a(dict_mysql.o)(.text+0x3b7):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:327: undefined reference to `mysql_store_result'
../../lib/libglobal.a(dict_mysql.o)(.text+0x3e5):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:335: undefined reference to `mysql_error'
../../lib/libglobal.a(dict_mysql.o)(.text+0x4ba): In function `plmysql_connect_single':
/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:370: undefined reference to `mysql_init'
../../lib/libglobal.a(dict_mysql.o)(.text+0x4d9):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:371: undefined reference to `mysql_real_connect'
../../lib/libglobal.a(dict_mysql.o)(.text+0x518):/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:377: undefined reference to `mysql_error'
../../lib/libglobal.a(dict_mysql.o)(.text+0x567): In function `plmysql_close_host':
/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:388: undefined reference to `mysql_close'
../../lib/libglobal.a(dict_mysql.o)(.text+0x58a): In function `plmysql_down_host':
/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:399: undefined reference to `mysql_close'
../../lib/libglobal.a(dict_mysql.o)(.text+0x9cd): In function `plmysql_dealloc':
/usr/src/packages/SOURCES/postfix/postfix-2.0.19-20040312/src/global/dict_mysql.c:565: undefined reference to `mysql_close'
collect2: ld returned 1 exit status
make: *** [error] Error 1
make: *** [update] Error 1
##########################################
Das MYSQL PAM Modul habe ich vorher erfolgreich kompiliert und installiert.
Danke für die Hilfe