PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Postfix mit Mysql kompilieren



FlippAtSpace
30.10.04, 14:22
Hi,
hab grad versucht Postfix auf Suse9.1 mit MYSQL Unterstützung zu kompilieren.
das makefile läuft auch alles soweit durch. wenn ich dann aber den "make" Befehl eingebe kommt nach kurzer Zeit diese Fehler:

CRE -g -O -I. -I../../include -DLINUX2 -c deliver_request.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/local/mysql/include -DHAS_PCRE -g -O -I. -I../../include -DLINUX2 -c dict_ldap.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/local/mysql/include -DHAS_PCRE -g -O -I. -I../../include -DLINUX2 -c dict_mysql.c
dict_mysql.c:118:19: mysql.h: No such file or directory
dict_mysql.c:142: error: parse error before "MYSQL"
dict_mysql.c:142: warning: no semicolon at end of struct or union
dict_mysql.c:150: error: parse error before '}' token
dict_mysql.c:150: warning: data definition has no type or storage class
dict_mysql.c:154: error: parse error before "HOST"
dict_mysql.c:154: warning: no semicolon at end of struct or union
dict_mysql.c:156: warning: data definition has no type or storage class
dict_mysql.c:173: error: parse error before "PLMYSQL"
dict_mysql.c:173: warning: no semicolon at end of struct or union
dict_mysql.c:174: error: conflicting types for `name'
dict_mysql.c:144: error: previous declaration of `name'
dict_mysql.c:175: error: parse error before '}' token
dict_mysql.c:175: warning: data definition has no type or storage class
dict_mysql.c:189: error: parse error before '*' token
dict_mysql.c:189: warning: data definition has no type or storage class
dict_mysql.c:190: error: parse error before '*' token
dict_mysql.c:190: error: parse error before '*' token
dict_mysql.c:190: warning: data definition has no type or storage class
dict_mysql.c:191: error: parse error before '*' token
dict_mysql.c:192: error: parse error before '*' token
dict_mysql.c:193: error: parse error before '*' token
dict_mysql.c:194: error: parse error before '*' token
dict_mysql.c:199: error: parse error before '*' token
dict_mysql.c:199: warning: data definition has no type or storage class
dict_mysql.c: In function `dict_mysql_lookup':
dict_mysql.c:210: error: `MYSQL_RES' undeclared (first use in this function)
dict_mysql.c:210: error: (Each undeclared identifier is reported only once
dict_mysql.c:210: error: for each function it appears in.)
dict_mysql.c:210: error: `query_res' undeclared (first use in this function)
dict_mysql.c:211: error: `MYSQL_ROW' undeclared (first use in this function)
dict_mysql.c:211: error: parse error before "row"
dict_mysql.c:212: error: `dict_mysql' undeclared (first use in this function)
dict_mysql.c:213: error: `pldb' undeclared (first use in this function)
dict_mysql.c:221: error: parse error before ')' token
dict_mysql.c:262: error: `row' undeclared (first use in this function)
dict_mysql.c: At top level:
dict_mysql.c:285: error: parse error before '*' token
dict_mysql.c: In function `dict_mysql_check_stat':
dict_mysql.c:288: error: `host' undeclared (first use in this function)
dict_mysql.c:290: error: `t' undeclared (first use in this function)
dict_mysql.c: At top level:
dict_mysql.c:299: error: parse error before '*' token
dict_mysql.c:299: error: parse error before '*' token
dict_mysql.c:300: warning: no previous prototype for `dict_mysql_find_host'
dict_mysql.c: In function `dict_mysql_find_host':
dict_mysql.c:307: error: `PLDB' undeclared (first use in this function)
dict_mysql.c: At top level:
dict_mysql.c:331: error: parse error before '*' token
dict_mysql.c:331: error: parse error before '*' token
dict_mysql.c:333: warning: no previous prototype for `dict_mysql_get_active'
dict_mysql.c: In function `dict_mysql_get_active':
dict_mysql.c:335: error: `host' undeclared (first use in this function)
dict_mysql.c:339: error: `PLDB' undeclared (first use in this function)
dict_mysql.c:360: error: `dbname' undeclared (first use in this function)
dict_mysql.c:360: error: `username' undeclared (first use in this function)
dict_mysql.c:360: error: `password' undeclared (first use in this function)
dict_mysql.c: In function `dict_mysql_event':
dict_mysql.c:373: error: `host' undeclared (first use in this function)
dict_mysql.c:373: error: parse error before ')' token
dict_mysql.c: At top level:
dict_mysql.c:386: error: parse error before '*' token
dict_mysql.c:386: error: parse error before '*' token
dict_mysql.c:391: warning: no previous prototype for `plmysql_query'
dict_mysql.c: In function `plmysql_query':
dict_mysql.c:392: error: `host' undeclared (first use in this function)
dict_mysql.c:393: error: `MYSQL_RES' undeclared (first use in this function)
dict_mysql.c:393: error: `res' undeclared (first use in this function)
dict_mysql.c:395: error: `PLDB' undeclared (first use in this function)
dict_mysql.c:395: error: `dbname' undeclared (first use in this function)
dict_mysql.c:395: error: `username' undeclared (first use in this function)
dict_mysql.c:395: error: `password' undeclared (first use in this function)
dict_mysql.c:396: error: `query' undeclared (first use in this function)
dict_mysql.c: At top level:
dict_mysql.c:420: error: parse error before '*' token
dict_mysql.c:421: warning: `plmysql_connect_single' was used with no prototype before its definition
dict_mysql.c: In function `plmysql_connect_single':
dict_mysql.c:422: error: `host' undeclared (first use in this function)
dict_mysql.c:426: error: `username' undeclared (first use in this function)
dict_mysql.c:427: error: `password' undeclared (first use in this function)
dict_mysql.c:428: error: `dbname' undeclared (first use in this function)
dict_mysql.c: At top level:
dict_mysql.c:444: error: parse error before '*' token
dict_mysql.c:445: warning: `plmysql_close_host' was used with no prototype before its definition
dict_mysql.c: In function `plmysql_close_host':
dict_mysql.c:446: error: `host' undeclared (first use in this function)
dict_mysql.c: At top level:
dict_mysql.c:455: error: parse error before '*' token
dict_mysql.c:456: warning: `plmysql_down_host' was used with no prototype before its definition
dict_mysql.c: In function `plmysql_down_host':
dict_mysql.c:457: error: `host' undeclared (first use in this function)
dict_mysql.c: In function `dict_mysql_open':
dict_mysql.c:472: error: `dict_mysql' undeclared (first use in this function)
dict_mysql.c:481: error: parse error before ')' token
dict_mysql.c: At top level:
dict_mysql.c:561: error: parse error before '*' token
dict_mysql.c: In function `plmysql_init':
dict_mysql.c:563: error: `PLDB' undeclared (first use in this function)
dict_mysql.c:566: error: parse error before ')' token
dict_mysql.c: At top level:
dict_mysql.c:569: error: parse error before '->' token
dict_mysql.c:580: error: parse error before '*' token
dict_mysql.c: In function `host_init':
dict_mysql.c:583: error: `host' undeclared (first use in this function)
dict_mysql.c:583: error: parse error before ')' token
dict_mysql.c: In function `dict_mysql_close':
dict_mysql.c:629: error: `dict_mysql' undeclared (first use in this function)
dict_mysql.c:629: error: parse error before ')' token
dict_mysql.c: At top level:
dict_mysql.c:649: error: parse error before '*' token
dict_mysql.c:650: warning: `plmysql_dealloc' was used with no prototype before its definition
dict_mysql.c: In function `plmysql_dealloc':
dict_mysql.c:653: error: `PLDB' undeclared (first use in this function)
make: *** [dict_mysql.o] Error 1
make: *** [update] Error 1


Was habe ich falsch gemacht.
Habe Postfix 2.1.5 genommen.

Danke für eure Antworten

tictactux
30.10.04, 14:48
Hi,
hab grad versucht Postfix auf Suse9.1 mit MYSQL Unterstützung zu kompilieren.
[...]
Was habe ich falsch gemacht.

Du hast mysql-dev nicht vorher installiert.
cu,
wolfgang

FlippAtSpace
30.10.04, 16:25
Doch leider hab ich den drauf...

Oder muss das Teil vorher irgendwie zum Laufen gebracht werden?

tictactux
30.10.04, 17:04
Doch leider hab ich den drauf...

Oder muss das Teil vorher irgendwie zum Laufen gebracht werden?
Ich bin gerade netterweise darauf hingewiesen worden, daß das
Entwicklerpaket von mysql unter SuSE mysql-devel (und nicht -dev)
heißt - sorry.
Hast Du also dieses installiert (ich meine also nicht das binary-Paket) ?

Falls es bereits installiert ist, mußt Du evtl. den INCLUDE-Pfad anpassen (per
environment-Variable, Commandline, in dem Makefile, wo auch immer ;)

Gruss,
Wolfgang

-----Nachtrag
Tipp: prüfe, ob das -I/usr/local/mysql/include stimmt