Bacula-users

Re: [Bacula-users] Trouble compiling bacula 5.0.3 under Solaris 10

2011-01-20 05:56:06
Subject: Re: [Bacula-users] Trouble compiling bacula 5.0.3 under Solaris 10
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 20 Jan 2011 10:53:25 GMT
>>>>> On Wed, 19 Jan 2011 17:16:47 -0800, Kenneth Garges said:
> 
> Thanks for your tips. Unfortunately still no joy. 
> 
> Switched to the latest Sun Studio compiler instead of gcc. 
> 
> I made my config script close to yours changing only a couple paths. 
> #! /bin/sh
> # Script from Gary Schmidt for compiling bacula under Solaris 10
> # Entered Wednesday, January 19, 2011 Kenneth Garges 
> # Was
> #PATH=/opt/webstack/bin:/opt/webstack/mysql/bin:/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/sbin:/usr/sbin:/usr/local/bin:$HOME/src/bacula/depkgs-qt/qt-x11-opensource-src-4.3.4/bin
> # Modified for us
> PATH=/opt/mysql/mysql/bin:/bin:/usr/bin:/opt/SUNWexpo/bin:/usr/ccs/bin:/sbin:/usr/sbin:/usr/local/bin
> export PATH
> ./configure --build=sparc64-sun-solaris2.10 --host=sparc64-sun-solaris2.10 \
>  CC=cc CXX=CC \
>  CFLAGS="-g -O" \
>  LDFLAGS="-L/opt/mysql/lib/mysql -R/opt/mysql/lib/mysql -L/usr/sfw/lib 
> -R/usr/sfw/lib" \ 

The problem is that LDFLAGS=... line has a space at the end, so the newline
isn't escaped.  It therefore loses all of the remaining arguments and also
causes the build, host and target warnings.

You shouldn't need the --build and --host arguments when this is fixed.

__Martin

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users