[opensuse-packaging] Problem Compiling Postfix 2.7.2 64bit Centos (32-bit works)
Hallo! I hope this is the right place to search for this kind of help. I am trying to compile Postfix 2.7.2 for CentOS 64-Bit. I took all files form Rusjako´s postfix package. I know they were ment for SuSE, but the sources compile well for CentOS 5 32-Bit. The problem is that the build for 64-Bit ends with a missing mysqlclient-library. ------- snip ------- gcc -shared -Wl,-soname,dict_mysql.so -o dict_mysql.so dict_mysql.o -L/usr/lib/mysql -lmysqlclient -L. -lutil -lglobal /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [dict_mysql.so] Error 1 make: *** [update] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.67235 (%build) RPM build errors: cannot open Pubkeys index using db3 - No such file or directory (2) Bad exit status from /var/tmp/rpm-tmp.67235 (%build) [ 137.703436] System halted. ------- snap ------- I guess the message of the missing pub-key-index was not the reason for the problem. I have no explanation for the beviour. Maybe someone could give me a hint. Yout can find my project here: https://build.opensuse.org/package/show?package=postfix&project=home%3Agrenz... Thanks in advance! volk -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hi, Am 14.02.2011 11:30, schrieb Volker Stoppe:
Hallo!
I hope this is the right place to search for this kind of help. I am trying to compile Postfix 2.7.2 for CentOS 64-Bit. I took all files form Rusjako´s postfix package. I know they were ment for SuSE, but the sources compile well for CentOS 5 32-Bit. The problem is that the build for 64-Bit ends with a missing mysqlclient-library. I'm not really a CentOS freak, but I don't think that mysql stuff will be found in "/usr/lib/mysql" on 64bit. I think it should be "-L/usr/lib64/mysl". or better "-L/usr/%{lib}/mysql"
------- snip ------- gcc -shared -Wl,-soname,dict_mysql.so -o dict_mysql.so dict_mysql.o -L/usr/lib/mysql -lmysqlclient -L. -lutil -lglobal /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [dict_mysql.so] Error 1 make: *** [update] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.67235 (%build)
RPM build errors: cannot open Pubkeys index using db3 - No such file or directory (2) Bad exit status from /var/tmp/rpm-tmp.67235 (%build) [ 137.703436] System halted.
------- snap ------- chris -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hallo Chris! Am 14.02.2011 12:17, schrieb Chris:
I'm not really a CentOS freak, but I don't think that mysql stuff will be found in "/usr/lib/mysql" on 64bit. I think it should be "-L/usr/lib64/mysl". or better "-L/usr/%{lib}/mysql"
Thank you very much. You pointed me to the right direction. After I made some changes in the spec and Makefile.in it workes! Greetings volk -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hi volk you're welcome :) Am 15.02.2011 12:16, schrieb Volker Stoppe:
Hallo Chris!
Am 14.02.2011 12:17, schrieb Chris:
I'm not really a CentOS freak, but I don't think that mysql stuff will be found in "/usr/lib/mysql" on 64bit. I think it should be "-L/usr/lib64/mysl". or better "-L/usr/%{lib}/mysql"
Thank you very much. You pointed me to the right direction. After I made some changes in the spec and Makefile.in it workes!
Greetings
volk
-- Christian --------------------------------------------------- Der ultimative shop für Sportbekleidung und Zubehör http://www.sc24.de --------------------------------------------------- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Chris
-
Christian
-
Volker Stoppe