LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Postfix location for make (https://www.linuxquestions.org/questions/suse-opensuse-60/postfix-location-for-make-400754/)

Sapient 01-07-2006 10:24 PM

Postfix location for make
 
I am attempting to perform the following command. I am trying to compile postfix with mysql.

make -f makefiles 'CCARGS=-DHAS_MYSQL \
-I/usr/include/mysql -DUSE_SASL_AUTH \
-I/usr/include/sasl\
-I/usr/share/doc/packages/bind/contrib/sdb/bdb \
-DUSE_TLS -I/usr/include/openssl' \
'AUXLIBS=-L/usr/bin/mysql-lmysqlclient -lz -lm \

-L/usr/lib -lsasl2 -L/usr/lib/db4\
-L/usr/include/ssl -lssl -lcrypto'

I fail with:
make: *** No targets specified and no makefile found. Stop.


My question is where does SuSE 9 Enterprise load the Postfix files? I have searched and tried every location and this still fails.

Is there a way to exstract an rpm (Yast files for postfix) and then run make against it?



Thanks

abisko00 01-08-2006 06:35 AM

If you compile a software, you usually know where you installed the sources. Are you sure you need to compile postfix anyway? Have you checked if there isn't a rpm package available?

Sapient 01-08-2006 06:44 AM

Quote:

Originally Posted by abisko00
If you compile a software, you usually know where you installed the sources. Are you sure you need to compile postfix anyway? Have you checked if there isn't a rpm package available?

Thanks for the response. Yes, it was an install with the system. There is an RPM in the Yast folder.

The question was a little off cenetr when I asked it. 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


I unloaded the previous version and downloaded:
wget -c ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-2.2.2.tar.gz


Still getting an error on the make. The information log goes on and on.


[src/error]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/include/sasl -I/usr/share/doc/packages/bind/contrib/sdb/bdb -DUSE_TLS -I/usr/include/openssl -DHAS_PCRE -g -O -I. -I../../include -DLINUX2 -c error.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/include/sasl -I/usr/share/doc/packages/bind/contrib/sdb/bdb -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/bin/mysql-lmysqlclient -lz -lm -L/usr/lib -lsasl2 -L/usr/lib/db4 -L/usr/include/ssl -lssl -lcrypto -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/src/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/src/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/src/global/dict_mysql.c:349: undefined reference to `mysql_num_fields'



Thanks

abisko00 01-08-2006 11:37 AM

Unfortunately, the above output doesn't tell me anything.
Maybe you need to install the mysql-devel package to be able to compile postfix.


All times are GMT -5. The time now is 03:23 PM.