----- Original Message -----
From: "Martin Simmons" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <bacula-users@lists.sourceforge.net>
Sent: Tuesday, November 15, 2005 6:34 PM
Subject: Re: [Bacula-users] Bacula client on Solaris 10 - configure error
On Tue, 15 Nov 2005 14:18:28 +0100, "Marcin Wasilewski"
<[EMAIL PROTECTED]> said:
Marcin> I'm trying to compile bacula1.36.3 client on Solaris 10/SPARC but
Marcin> ./configure gives me an error that "C compiler cannot create
executables"
Marcin> Below is the config.log.
Marcin> Could You help me find out what is wrong? Maybe some packages are
missing?
From the log, it looks like your gcc is not compatible with the system's
assembler (/usr/ccs/bin/as):
configure:1835: gcc -v </dev/null >&5
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw
--with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld
--without-gnu-ld
--enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
configure:1838: $? = 0
configure:1840: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1843: $? = 1
configure:1866: checking for C compiler default output file name
configure:1869: gcc conftest.c >&5
/usr/ccs/bin/as: error: unknown option '-'
/usr/ccs/bin/as: error: unknown option 't'
/usr/ccs/bin/as: error: unknown option 'aditional-format'
usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-q] [-s]
[-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
[-P [[-Yc,path] [-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
[-m [-Ym,path]] [-n] [-ul] [-xF]
[-xarch={v7,v8,v8a,v8plus,v8plusa,v8plusb,v9,v9a,v9b}]
[-xcode={pic13,pic32}] file.s...
You probably need the GNU assembler, which you might have already
somewhere in
the sfw directories. Does /usr/sfw/bin/gas exist? You could also try
adding
something like /usr/sfw/bin:/opt/sfw/bin to the start of PATH.
__Martin
Hello,
I have installed the package SUNWbinutils which has gas inside, but the
problem still exist.
echo $PATH gives me:
/usr/bin::/usr/ccs/bin:/etc:/usr/openwin/bin:/usr/local/bin:/usr/sfw/bin:/opt/sfw/bin:/usr/ucb:/usr/sbin
And below is the rest of configure script:
./configure --enable-client-only --disable-readline
checking for true... /usr/bin/true
checking for false... /usr/bin/false
configuring for bacula 1.36.3 (22 April 2005)
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.
It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --enable-client-only --disable-readline
## --------- ##
## Platform. ##
## --------- ##
hostname = midas
uname -m = sun4u
uname -r = 5.10
uname -s = SunOS
uname -v = Generic_118822-19
/usr/bin/uname -p = sparc
/bin/uname -X = System = SunOS
Node = midas
Release = 5.10
KernelID = Generic_118822-19
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 2
/bin/arch = sun4
/usr/bin/arch -k = sun4u
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/bin
PATH: .
PATH: /usr/ccs/bin
PATH: /etc
PATH: /usr/openwin/bin
PATH: /usr/local/bin
PATH: /usr/sfw/bin
PATH: /opt/sfw/bin
PATH: /usr/ucb
PATH: /usr/sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1415: checking for true
configure:1433: found /usr/bin/true
configure:1445: result: /usr/bin/true
configure:1460: checking for false
configure:1478: found /usr/bin/false
configure:1490: result: /usr/bin/false
configure:1557: checking for gcc
configure:1573: found /usr/sfw/bin/gcc
configure:1583: result: gcc
configure:1827: checking for C compiler version
configure:1830: gcc --version </dev/null >&5
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:1833: $? = 0
configure:1835: gcc -v </dev/null >&5
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw
--with-as=/usr/
sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
configure:1838: $? = 0
configure:1840: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1843: $? = 1
configure:1866: checking for C compiler default output file name
configure:1869: gcc conftest.c >&5
ld: fatal: file values-Xa.o: open failed: No such file or directory
ld: fatal: File processing errors. No output written to a.out
collect2: ld returned 1 exit status
configure:1872: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:1911: error: C compiler cannot create executables
What could it be?
ld: fatal: file values-Xa.o: open failed: No such file or directory
ld: fatal: File processing errors. No output written to a.out
ld is installed in:
whereis ld
ld: /usr/ccs/bin/ld /usr/lib/ld.so /usr/lib/ld /usr/ucb/ld
/usr/man/man1/ld.1 /usr/man/man1b/ld.1b
Any suggestions?
Best regards
Marcin
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users