Re: Mailfront install/compile problems on x86_64

[email protected] Wed, 17 Aug 2005 12:11:43 -0500
Newsgroups gmane.comp.sysutils.bgware
Message-ID <[email protected]>
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
On Wed, Aug 17, 2005 at 06:51:34PM +0200, Bernhard Graf wrote:
> 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
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

-- 
---
Mate Wierdl | Dept. of Math. Sciences | University of Memphis