Re: Mailfront install/compile problems on x86_64

Bernhard Graf <[email protected]> Wed, 17 Aug 2005 18:51:34 +0200
Newsgroups gmane.comp.sysutils.bgware
Message-ID <[email protected]>
On Wednesday 17 August 2005 18:34, [email protected] wrote:

> 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