problems installing postfix
im trying to install postfix. well actually i have been following this excellent howto here [http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/[http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/install.html
so. everything so far is completed upto the part where you install postfix. Now when I try and install postfix I keep getting these dirty errors. Ive got thru a couple of them by adding links and changing a few lines of the install files to get round errors… etc.. but this one has me stumped… Ive googled it, and found some people getting the same problems and they said to install zlib? do they mean perl zlib? well i installed that, stilll the same problems.. Now the only thing that I didnt do exactly as it says to do is install mysql 4 from a rpm.
So im typing…
make makefiles CCARGS='-DHAS_MYSQL \
-I/usr/include/mysql -DUSE_SASL_AUTH \
-I/usr/local/include/sasl -I/usr/local/bdb/include' AUXLIBS='-L/usr/lib/mysql \
-lmysqlclient -lz -lm -L/usr/local/lib -lsasl2 -L/usr/local/bdb/lib'
which seems to work fine, however when I do a 'make' I get the following:
[root@li-*** postfix-2.0.16]# make
set -e; for i in src/util src/global src/dns src/master src/postfix src/smtpstone src/sendmail src/error src/pickup src/cleanup src/smtpd src/local src/lmtp src/trivial-rewrite src/qmgr 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/nqmgr src/qmqpd src/spawn src/flush src/virtual src/proxymap; do \
(set -e; echo "[$i]"; cd $i; make 'CC=gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include' update MAKELEVEL=) || exit 1; \
done
[src/util]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c alldig.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c argv.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c argv_split.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c attr_print0.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c attr_print64.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c attr_scan0.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c attr_scan64.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c base64_code.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c basename.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c binhash.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c chroot_uid.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c clean_env.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c close_on_exec.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c concatenate.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c ctable.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c dict.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c dict_alloc.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c dict_db.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c dict_dbm.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c dict_debug.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c dict_env.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c dict_ht.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c dict_ldap.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl -I/usr/local/bdb/include -g -O -I. -DLINUX2 -c dict_mysql.c
dict_mysql.c:90: parse error before "MYSQL"
dict_mysql.c:90: warning: no semicolon at end of struct or union
dict_mysql.c:95: parse error before '}' token
dict_mysql.c:95: warning: data definition has no type or storage class
dict_mysql.c:99: parse error before "HOST"
dict_mysql.c:99: warning: no semicolon at end of struct or union
dict_mysql.c:101: warning: data definition has no type or storage class
dict_mysql.c:117: parse error before "PLMYSQL"
dict_mysql.c:117: warning: no semicolon at end of struct or union
dict_mysql.c:119: parse error before '}' token
dict_mysql.c:119: warning: data definition has no type or storage class
dict_mysql.c:127: parse error before '*' token
dict_mysql.c:127: warning: data definition has no type or storage class
dict_mysql.c:128: parse error before '*' token
dict_mysql.c:128: parse error before '*' token
dict_mysql.c:128: warning: data definition has no type or storage class
dict_mysql.c:129: parse error before '*' token
dict_mysql.c:130: parse error before '*' token
dict_mysql.c:131: parse error before '*' token
dict_mysql.c:132: parse error before '*' token
dict_mysql.c:133: parse error before '*' token
dict_mysql.c:138: parse error before "host_init"
dict_mysql.c:138: warning: data definition has no type or storage class
dict_mysql.c: In function `dict_mysql_lookup':
dict_mysql.c:149: `MYSQL_RES' undeclared (first use in this function)
dict_mysql.c:149: (Each undeclared identifier is reported only once
dict_mysql.c:149: for each function it appears in.)
dict_mysql.c:149: `query_res' undeclared (first use in this function)
dict_mysql.c:150: `MYSQL_ROW' undeclared (first use in this function)
dict_mysql.c:150: parse error before "row"
dict_mysql.c:151: `dict_mysql' undeclared (first use in this function)
dict_mysql.c:152: `pldb' undeclared (first use in this function)
dict_mysql.c:160: parse error before ')' token
dict_mysql.c:201: `row' undeclared (first use in this function)
dict_mysql.c: At top level:
dict_mysql.c:229: parse error before '*' token
dict_mysql.c:229: parse error before '*' token
dict_mysql.c:234: warning: no previous prototype for `plmysql_query'
dict_mysql.c: In function `plmysql_query':
dict_mysql.c:236: `host' undeclared (first use in this function)
dict_mysql.c:237: `MYSQL_RES' undeclared (first use in this function)
dict_mysql.c:237: `res' undeclared (first use in this function)
dict_mysql.c:239: `PLDB' undeclared (first use in this function)
dict_mysql.c:257: `dbname' undeclared (first use in this function)
dict_mysql.c:257: `username' undeclared (first use in this function)
dict_mysql.c:257: `password' undeclared (first use in this function)
dict_mysql.c:276: `query' undeclared (first use in this function)
dict_mysql.c: At top level:
dict_mysql.c:298: parse error before '*' token
dict_mysql.c:299: warning: `plmysql_connect_single' was used with no prototype before its definition
dict_mysql.c: In function `plmysql_connect_single':
dict_mysql.c:300: `host' undeclared (first use in this function)
dict_mysql.c:321: `username' undeclared (first use in this function)
dict_mysql.c:321: `password' undeclared (first use in this function)
dict_mysql.c:321: `dbname' undeclared (first use in this function)
dict_mysql.c: At top level:
dict_mysql.c:336: parse error before '*' token
dict_mysql.c:337: warning: `plmysql_close_host' was used with no prototype before its definition
dict_mysql.c: In function `plmysql_close_host':
dict_mysql.c:338: `host' undeclared (first use in this function)
dict_mysql.c: At top level:
dict_mysql.c:347: parse error before '*' token
dict_mysql.c:348: warning: `plmysql_down_host' was used with no prototype before its definition
dict_mysql.c: In function `plmysql_down_host':
dict_mysql.c:349: `host' undeclared (first use in this function)
dict_mysql.c: In function `dict_mysql_open':
dict_mysql.c:363: `dict_mysql' undeclared (first use in this function)
dict_mysql.c:366: parse error before ')' token
dict_mysql.c: At top level:
dict_mysql.c:490: parse error before '*' token
dict_mysql.c: In function `plmysql_init':
dict_mysql.c:492: `PLDB' undeclared (first use in this function)
dict_mysql.c:493: `MYSQL' undeclared (first use in this function)
dict_mysql.c:493: `dbs' undeclared (first use in this function)
dict_mysql.c:495: parse error before "host"
dict_mysql.c:497: parse error before ')' token
dict_mysql.c: At top level:
dict_mysql.c:500: parse error before '->' token
dict_mysql.c:511: parse error before "host_init"
dict_mysql.c: In function `host_init':
dict_mysql.c:513: parse error before "host"
dict_mysql.c:515: `host' undeclared (first use in this function)
dict_mysql.c: In function `dict_mysql_close':
dict_mysql.c:529: `dict_mysql' undeclared (first use in this function)
dict_mysql.c:529: parse error before ')' token
dict_mysql.c: At top level:
dict_mysql.c:548: parse error before '*' token
dict_mysql.c:549: warning: `plmysql_dealloc' was used with no prototype before its definition
dict_mysql.c: In function `plmysql_dealloc':
dict_mysql.c:552: `PLDB' undeclared (first use in this function)
make: *** [dict_mysql.o] Error 1
make: *** [update] Error 1
So… as you can see… a dirty big error… anyone got any idea's?
im using the redhat 9 small distro.
thanks
5 Replies
@zan:
Ive googled it, and found some people getting the same problems and they said to install zlib? do they mean perl zlib?
No, they mean zlib as in
My (Gentoo) linode only has that zlib installed (nothing related to perl) and postfix with mysql support compiles OK.
any idea's?
By the way, as the howto mentions, i did install the postfix rpm, and now im trying to install over the top of that. Does anyone see this as being a problem?
well, im going to uninstall the rpm and then do it properly
@zan:
do you think that would be becuase i installed it as an rpm? by the way, mysql by itself seems to run fine.. i havent done any extensive testing, but as far as connecting from the command line, creating tables etc… its fine.
well, im going to uninstall the rpm and then do it properly
;) hopefully that may fix things….
Often there is a "devel" RPM accompanying the regular RPM for a software package. For mysql it would probably be called mysql-devel. I would expect to find the header files necessary for compiling applications against mysql in the mysql-devel package.