On Monday 13 August 2007 18:11, Allan Black wrote: > The C/C++ compiler selected by configure isn't being propagated > to qt-console/Makefile. I'm building Bacula 2.2.0 on Solaris. > Configure (correctly) determines that the C compiler is > /usr/sfw/bin/gcc and C++ is /usr/sfw/bin/g++. > > However, BAT tries to use cc and CC respectively for the C and > C++ compilers, which means that while GCC is used for the rest > of Bacula, the Sun Studio 11 compiler is used for BAT. This > fails because src/config.h has been configured for GCC. > [HAVE_TYPOF, in particular, is causing a syntax error, because > the Sun compiler doesn't have the typeof construct. I could > probably turn it on, but that's not the point :-) ]. > > I can work around this by adding 3 lines to > src/qt-console/bat.pro.in before I run configure: > > QMAKE_CC = gcc > QMAKE_CXX = g++ > QMAKE_LINK = g++ > > However, that's just a local hack, and I'd rather fix it properly. > I believe what I need to do is get configure to substitute the > correct values into the RHS of the above lines in bat.pro.in, > but I'm not sure how to do this (I suspect something like > "QMAKE_CC = @CC@"). > > If anyone can point me in the right direction, I'll fix it and > submit a patch.
I imagine it would be something like: [EMAIL PROTECTED]@ [EMAIL PROTECTED]@ in bat.pro.in However, not being a qmake expert, I would need to consult the manual, which I did not do ... Assuming you have done a ./configure at least once, test with: (edit bat.pro.in) cd <bacula-source> make Makefiles cd src/qt-console make clean make A tested patch *would* be appreciated. 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
