Discussion:
Mailfront install/compile problems on x86_64
m***@csi.hu
2005-08-17 16:34:16 UTC
Permalink
In my var-log-messages, I see many of

Aug 17 10:55:56 thales kernel: smtpfront-qmail[30899]: segfault at 000000010051429f rip 0000000000408116 rsp 00007fffffff2608 error 4

Instead of investigating, I decide to install the latest mailfront (I
have the old 0.93 installed). I have an x86_64 Fedora Core 4 system.

1) The spec files in Bruce's src rpms use the "copyright" tag, which is
deprecated---please change them to "license".

2) In order to build the mailfront rpm, I need to install bglibs and
cvm-devel. Bglibs seem to build/install fine, but the cvm build bails
out with

./compile cvm-mysql.c
./load cvm-mysql module.a sql.a -lbg -lpwcmp -L/usr/lib/mysql
-lmysqlclient `cat crypt.lib`
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [cvm-mysql] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.82076 (%build)

But I do have mysql installed from rpm---I installed it a year ago
(and updated since) exactly to manage this problem with cvm:

$ rpm -ql mysql mysql-devel|grep client
/usr/lib64/mysql/libmysqlclient.so.14
/usr/lib64/mysql/libmysqlclient.so.14.0.0
/usr/lib64/mysql/libmysqlclient_r.so.14
/usr/lib64/mysql/libmysqlclient_r.so.14.0.0
/usr/lib/mysql/libmysqlclient.so.14
/usr/lib/mysql/libmysqlclient.so.14.0.0
/usr/lib/mysql/libmysqlclient_r.so.14
/usr/lib/mysql/libmysqlclient_r.so.14.0.0
/usr/lib64/mysql/libmysqlclient.a
/usr/lib64/mysql/libmysqlclient.so
/usr/lib64/mysql/libmysqlclient_r.a
/usr/lib64/mysql/libmysqlclient_r.so

Any suggestions? Are we talking about trying to replace
-L/usr/lib/mysql with -L/usr/lib64/mysql somewhere in the sources?

(Remember, you cannot build only a subpackage from an src rpm).

Thx, and best,

Mate
--- Mate Wierdl | Dept. of Math. Sciences | University of Memphis
Bernhard Graf
2005-08-17 16:51:34 UTC
Permalink
Post by m***@csi.hu
2) In order to build the mailfront rpm, I need to install bglibs and
cvm-devel. Bglibs seem to build/install fine, but the cvm build
bails out with
./compile cvm-mysql.c
./load cvm-mysql module.a sql.a -lbg -lpwcmp -L/usr/lib/mysql
-lmysqlclient `cat crypt.lib`
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [cvm-mysql] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.82076 (%build)
In my cvm (0.32) spec I did (%_libdir is /usr/lib64 x86_64 at least on SuSE):

[...]
%install
test "%{buildroot}" != "/" && test -d "%{buildroot}" && %{__rm} -rf "%{buildroot}"
%{__rm} -f *.o conf_home.c
echo %{buildroot}%{_prefix} >conf-home
%{__make} installer instcheck

%{__mkdir_p} %{buildroot}%{_prefix}
./installer
./instcheck
# fix for SuSE x86_64
if test "%{_libdir}" != "%{_prefix}/lib"; then
mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
fi
[...]

HTH
--
Bernhard Graf
m***@csi.hu
2005-08-17 17:11:43 UTC
Permalink
Thx, Bernhard. Well, at least the rpm build problem is solved by
replacing

echo gcc -s >conf-ld

by

echo gcc -s -L/usr/lib64/mysql >conf-ld

Mate
Post by Bernhard Graf
Post by m***@csi.hu
2) In order to build the mailfront rpm, I need to install bglibs and
cvm-devel. Bglibs seem to build/install fine, but the cvm build
bails out with
./compile cvm-mysql.c
./load cvm-mysql module.a sql.a -lbg -lpwcmp -L/usr/lib/mysql
-lmysqlclient `cat crypt.lib`
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [cvm-mysql] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.82076 (%build)
[...]
%install
test "%{buildroot}" != "/" && test -d "%{buildroot}" && %{__rm} -rf "%{buildroot}"
%{__rm} -f *.o conf_home.c
echo %{buildroot}%{_prefix} >conf-home
%{__make} installer instcheck
%{__mkdir_p} %{buildroot}%{_prefix}
./installer
./instcheck
# fix for SuSE x86_64
if test "%{_libdir}" != "%{_prefix}/lib"; then
mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
fi
[...]
HTH
--
Bernhard Graf
---------------------------------------------------------------------
--
---
Mate Wierdl | Dept. of Math. Sciences | University of Memphis
Loading...