On Tuesday 14 August 2007 00:37, Allan Black wrote:
> Hi, Kern,
>
> Actually, I've done a little more digging and I think it's my
> own fault. When I built Qt, I allowed as much as possible to
> use default configuration options. Looking at the Qt build
> directory, I notice it used the Solaris C++ compiler. I guess
> this means that the qmake takes its defaults from the options
> used to build Qt (makes sense really :-) )
>
> I tried putting [EMAIL PROTECTED]@ and similar into bat.pro.in
> before I ran configure, and that worked. However, I'm now in
> the situation where g++ is being used to compile BAT, but the
> command line options being supplied are Solaris CC options,
> not GCC options.
>
> I'm rebuilding Qt at the moment using --platform=solaris-g++
> instead of letting it default to --platform=solaris-cc and
> then I'll see if BAT uses GCC by default.
>
> BAT uses a combination of the Qt configuration and the Bacula
> configuration, so I think this means that there's an automatic
> rule that Qt and Bacula *must* be built with the same compiler.

Theoretically, providing the Solaris compiler and gcc mangle C++ names the 
same way, the two compilers *could* be used to build different parts of 
Bacula that are used together.  However, it is something that I wouldn't want 
to try.  In addition when gcc or g++ is used, Bacula adds GNU specific 
options, which would fail on the Solaris compiler.

Building Qt applications with qmake is a lot more convenient than trying to do 
it with autoconf, so as you mention Bacula is a mixture of the two, which 
does create certain problems.  As we gain experience working with it, I 
imagine we will resolve all the problems.

>
> If my theory's right I'll post a full retraction to the list :-)
>
> Oh, well, at least someone's tested that one, even if it was
> unintentional. Maybe I should CC: bacula-users :-)

Yes, probably the most important list to copy is bacula-devel.  I've copied 
them on my response as they may find this enlightening (or disturbing) :-)

Thanks for working through the problems of building bat on Solaris.

Regards,

Kern

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to