Could you use GNU C++ compiler instead of CC compiler?
http://www.bacula.org/5.0.x-manuals/en/main/main/Installing_Bacula.html#SECTION0014130000000000000000
2010/7/9 Koray AGAYA <[email protected]>
> Hi Thank you for your help I have a Error
>
> 1. I installed webstack
> 2. I create PATH this command below
>
> setenv PATH
> /opt/webstack/bin:/opt/webstack/mysql/bin/64:/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
>
> 3. I created son.sh batch file below
>
>
> ./configure \
> CC=cc CXX=CC \
> CFLAGS="-g -O" \
> LDFLAGS="-R/opt/webstack/
> mysql/lib/mysql -L/usr/sfw/lib -R/usr/sfw/lib" \
> --prefix=/opt/bacula \
> --datarootdir=/opt/bacula/share \
> --mandir=/opt/bacula/man \
> --with-archivedir=/opt/bacula/archive \
> --with-working-dir=/opt/bacula/working \
> --with-plugindir=/opt/bacula/plugins \
> --with-scriptdir=/opt/bacula/scripts \
> --with-subsys-dir=/opt/bacula/subsys \
> --with-mysql=/opt/webstack/mysql \
> --with-dir-password=password \
> --with-fd-password=password \
> --with-sd-password=password \
> --with-dir-user=bacula \
> --with-dir-group=backup \
> --with-sd-user=bacula \
> --with-sd-group=backup \
> --with-fd-user=root \
> --with-fd-group=backup \
> --enable-smartalloc \
> --enable-batch-insert \
> [email protected] \
> [email protected] \
> --with-smtp-host=mail \
> --enable-bat \
> --with-qwt=$HOME/src/bacula/depkgs-qt \
> --enable-gnome
>
> 4. I run son.sh script I have a error
>
> ./son.sh
> checking for true... /bin/true
> checking for false... /bin/false
> configuring for Bacula 5.0.2 (28 April 2010)
> checking for gcc... cc
> checking for C compiler default output file name...
> configure: error: C compiler cannot create executables
> See `config.log' for more details.
>
>
> 5. into config.log below
>
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by configure, which was
> generated by GNU Autoconf 2.61. Invocation command line was
>
> $ ./configure CC=cc CXX=CC CFLAGS=-g -O
> LDFLAGS=-R/opt/webstack/mysql/lib/mysql -L/usr/sfw/lib -R/usr/sfw/lib
> --prefix=/opt/bacula --datarootdir=/opt/bacula/share
> --mandir=/opt/bacula/man --with-archivedir=/opt/bacula/archive
> --with-working-dir=/opt/bacula/working --with-plugindir=/opt/bacula/plugins
> --with-scriptdir=/opt/bacula/scripts --with-subsys-dir=/opt/bacula/subsys
> --with-mysql=/opt/webstack/mysql --with-dir-password=Evtkk977
> --with-fd-password=Evtkk977 --with-sd-password=Evtkk977
> --with-dir-user=bacula --with-dir-group=backup --with-sd-user=bacula
> --with-sd-group=backup --with-fd-user=root --with-fd-group=backup
> --enable-smartalloc --enable-batch-insert --with-dump-email=
> [email protected] [email protected]=mail
> --enable-bat --with-qwt=//src/bacula/depkgs-qt
> --enable-gnome
>
> ## --------- ##
> ## Platform. ##
> ## --------- ##
>
> hostname = SunM3000
> uname -m = sun4u
> uname -r = 5.10
> uname -s = SunOS
> uname -v = Generic_142900-10
>
> /usr/bin/uname -p = sparc
> /bin/uname -X = System = SunOS
> Node = SunM3000
> Release = 5.10
> KernelID = Generic_142900-10
> Machine = sun4u
> BusType = <unknown>
> Serial = <unknown>
> Users = <unknown>
>
>
> What can I do this error please help ??
>
> *checking for gcc... cc
> checking for C compiler default output file name...
> configure: error: C compiler cannot create executables
> See `config.log' for more details.*
>
>
> ===========================================================================================================================================
>
> OLD MAIL
>
> Date: Fri, 9 Jul 2010 12:29:06 +1000
> From: "Gary R. Schmidt" <[email protected]>
> Subject: Re: [Bacula-users] Use Bacula Sun Solaris 10 SPARC
> To: "Koray AGAYA" <[email protected]>
> Cc: [email protected]
> Message-ID:
> <eb99b31a93ae0ea8e04495bad6996868.squir...@www.mcleod-schmidt.id.au
> >
> Content-Type: text/plain;charset=iso-8859-1
>
> On Thu, July 8, 2010 20:59, Koray AGAYA wrote:
> > Thanks for your help I have a Question. How to flow Bacula on Sun Solaris
> > JAVA Desktop
> Get the qt4.3 package from the Bacula depgks site, and build it.
>
> Then, modify the configuration script in the 5.0.2 to look for qt where
> you installed it, and then run configure.
>
> Here's my re-conf.sh script, for 3.0.3, but since 5.x is so badly broken
> I've avoided it.
>
> I use the SunStudio compiler, even though the gcc version has fewer
> warnings, the performance increase is worth it. (And I've also modified
> things to build a 64-bit version, which flies.)
>
> I also use the WebStack MySQL, and had to massage configure to recognise
> it. Someday I'll re-start the discussion about configure recognising .so
> files, but I'll wait on them fixing 5.x.
>
> re-conf.sh:
> #!/bin/sh
>
> PATH=/opt/webstack/bin:/opt/
>
> webstack/mysql/bin/64:/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
> export PATH
>
> ./configure \
> CC=cc CXX=CC \
> CFLAGS="-g -O" \
> LDFLAGS="-R/opt/webstack/mysql/lib/mysql -L/usr/sfw/lib -R/usr/sfw/lib" \
> --prefix=/opt/bacula \
> --datarootdir=/opt/bacula/share \
> --mandir=/opt/bacula/man \
> --with-archivedir=/opt/bacula/archive \
> --with-working-dir=/opt/bacula/working \
> --with-plugindir=/opt/bacula/plugins \
> --with-scriptdir=/opt/bacula/scripts \
> --with-subsys-dir=/opt/bacula/subsys \
> --with-mysql=/opt/webstack/mysql \
> --with-dir-password=password \
> --with-fd-password=password \
> --with-sd-password=password \
> --with-dir-user=bacula \
> --with-dir-group=backup \
> --with-sd-user=bacula \
> --with-sd-group=backup \
> --with-fd-user=root \
> --with-fd-group=backup \
> --enable-smartalloc \
> --enable-batch-insert \
> [email protected] \
> [email protected] \
> --with-smtp-host=mail \
> --enable-bat \
> --with-qwt=$HOME/src/bacula/depkgs-qt \
> --enable-gnome
>
> exit 0
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Bacula-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
--
_____________________________________________
Francisco Javier Funes Nieto [[email protected]]
CANONIGOS
Servicios Informáticos para PYMES.
Cl. Cruz 2, 1º Oficina 7
Tlf: 958.536759 / 661134556
Fax: 958.521354
GRANADA - 18002
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users