OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Postfix Sasl Courier MySQL DNS PostfixManager Antivirus

From: Andreas Winkelmann (mlawinkelmann.de)
Date: Sun Jan 08 2006 - 10:04:38 CST


Am Sunday 08 January 2006 16:39 schrieb Brian E. Miller:

> Postfix Sasl Courier MySQL DNS PostfixManager Antivirus
>
> I am attempting to do the following and I have a different version of
> Postfix loaded (2.1.1.x).
> http://genco.gen.tc/postfix_virtual.php#courierauth
>
> SuSE 9 Enterprise.
>
> I unloaded the previous version and downloaded:
> wget -c
> ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-2.2.2.tar.
>gz
>
> Getting an error on the make. Any suggestions?
>
> cd postfix-2.2.2
> ln -s /usr/include/db4/db.h /usr/local/bdb/include/db.h
> ln -s /usr/include/db.h /usr/local/bdb/include/db.h
>
> make tidy
>
> make makefiles 'CCARGS=-DHAS_MYSQL \
> -I/usr/include/mysql -DUSE_SASL_AUTH \
> -I/usr/include/sasl\
> -I/usr/local/bdb/include -DUSE_TLS \
> -I/usr/include/openssl' \
> 'AUXLIBS= -L/usr/lib/mysql-lmysqlclient -lz -lm \

Make a Space between "-L/usr/lib/mysql" and "-lmysqlclient".

> -L/usr/lib/ -lsasl2 \
> -L/usr/include/db4 \
> -L/usr/include/ssl -lssl -lcrypto -lpthread'
>
> make
>
>
> [src/error]
> gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql
> -DUSE_SASL_AUTH -I/usr/include/sasl -I/usr/local/bdb/include -DUSE_TLS
> -I/usr/include/openssl -DHAS_PCRE -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 -L/usr/lib/
> -lsasl2 -L/usr/include/db4 -L/usr/include/ssl -lssl -lcrypto -lpthread
> -L/usr/lib -lpcre -ldb -lnsl -lresolv
> ../../lib/libglobal.a(dict_mysql.o)(.text+0x47): In function
> `dict_mysql_quote':
> /usr/local/postfix-2.2.2/src/global/dict_mysql.c:277: undefined reference
> to `mysql_escape_string'
> ../../lib/libglobal.a(dict_mysql.o)(.text+0x18b): In function
> `dict_mysql_lookup':
> /usr/local/postfix-2.2.2/src/global/dict_mysql.c:337: undefined reference
> to `mysql_num_rows'
> ../../lib/libglobal.a(dict_mysql.o)(.text+0x1c1):/usr/local/postfix-2.2.2/s
>rc/global/dict_mysql.c:341: undefined reference to `mysql_free_result'
> ../../lib/libglobal.a(dict_mysql.o)(.text+0x252):/usr/local/postfix-2.2.2/s
>rc/global/dict_mysql.c:348: undefined reference to `mysql_fetch_row'
> ../../lib/libglobal.a(dict_mysql.o)(.text+0x2c4):/usr/local/postfix-2.2.2/s
>rc/global/dict_mysql.c:349: undefined reference to `mysql_num_fields'
> ../../lib/libglobal.a(dict_mysql.o)(.text+0x2ee):/usr/local/postfix-2.2.2/s
>rc/global/dict_mysql.c:361: undefined reference to `mysql_free_result'
> ../../lib/libglobal.a(dict_mysql.o)(.text+0x55e): In function
> `plmysql_query':
> /usr/local/postfix-2.2.2/src/global/dict_mysql.c:479: undefined reference
> to `mysql_query'
> ../../lib/libglobal.a(dict_mysql.o)(.text+0x56f):/usr/local/postfix-2.2.2/s
>rc/global/dict_mysql.c:480: undefined reference to `mysql_store_result'
> ../../lib/libglobal.a(dict_mysql.o)(.text+0x5b3):/usr/local/postfix-2.2.2/s
>rc/global/dict_mysql.c:490: undefined reference to `mysql_error'
> ../../lib/libglobal.a(dict_mysql.o)(.text+0x603): In function
> `plmysql_connect_single':
> /usr/local/postfix-2.2.2/src/global/dict_mysql.c:505: undefined reference
> to `mysql_init'
> ../../lib/libglobal.a(dict_mysql.o)(.text+0x64c):/usr/local/postfix-2.2.2/s
>rc/global/dict_mysql.c:507: undefined reference to `mysql_real_connect'
> ../../lib/libglobal.a(dict_mysql.o)(.text+0x682):/usr/local/postfix-2.2.2/s
>rc/global/dict_mysql.c:520: undefined reference to `mysql_error'
> ../../lib/libglobal.a(dict_mysql.o)(.text+0x6b4): In function
> `plmysql_close_host':
> /usr/local/postfix-2.2.2/src/global/dict_mysql.c:529: undefined reference
> to `mysql_close'
> ../../lib/libglobal.a(dict_mysql.o)(.text+0x6d7): In function
> `plmysql_down_host':
> /usr/local/postfix-2.2.2/src/global/dict_mysql.c:540: undefined reference
> to `mysql_close'
> ../../lib/libglobal.a(dict_mysql.o)(.text+0xc27): In function
> `plmysql_dealloc':
> /usr/local/postfix-2.2.2/src/global/dict_mysql.c:737: undefined reference
> to `mysql_close'
> collect2: ld returned 1 exit status
> make: *** [error] Error 1
> make: *** [update] Error 1

--
        Andreas