| View previous topic :: View next topic |
| Author |
Message |
Matthew Boeckman Guest
|
Posted: Mon Mar 08, 2010 10:00 am Post subject: compile issue on solaris X/x86_64 |
|
|
Hello list!
I'm struggling to compile 2.6.1 (or 2.6.1p2 - same error) on Solaris 10
x86_64 with gcc packages from sunfreeware. I've gone through a few
iterations, and have also followed the instructions for PKG_CONFIG at OS
specific notes here in the FAQ.
When I run configure without pointing PKG_CONFIG at /usr/bin/pkg-config,
I get a failure:
checking for GLIB - version >= 2.2.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log
for the
*** exact error that occured. This usually means GLIB is incorrectly
installed.
configure: error: glib not found or too old; See
http://wiki.zmanda.com/index.php/Installation for help
Pointing the PKG_CONFIG var at the proper location lets configure pass,
but I then get:
gcc -DHAVE_CONFIG_H -I. -I../config -D_REENTRANT -fno-strict-aliasing
-D_GNU_SOURCE -I/usr/local/include -mt -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -Wno-error -Wno-sign-compare
-I/usr/local/include -I/usr/local/include/glib-2.0 -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MT base64.lo -MD -MP -MF
.deps/base64.Tpo -c base64.c -fPIC -DPIC -o .libs/base64.o
cc1: error: invalid option `t'
make[3]: *** [base64.lo] Error 1
make[3]: Leaving directory `/usr/local/src/amanda-2.6.1/gnulib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/amanda-2.6.1/gnulib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/amanda-2.6.1'
make: *** [all] Error 2
I'm at a loss on how to get amanda compiled from here. Other notes I can
share:
gcc 3.4.6
glib 2.20.4
Any pointers are greatly appreciated. Thanks!
_
--
Matthew Boeckman
Manager - Unix Admin & Networking
ServiceMagic
303 963 7889 |
|
| Back to top |
|
 |
Dustin J. Mitchell Guest
|
Posted: Mon Mar 08, 2010 10:42 am Post subject: compile issue on solaris X/x86_64 |
|
|
On Mon, Mar 8, 2010 at 11:57 AM, Matthew Boeckman
<mboeckman < at > servicemagic.com> wrote:
| Quote: | Any pointers are greatly appreciated. Thanks!
|
Ah, Solaris.
The problem is that pkg-config gives the compiler flags with which
glib (and in particular gthread) was compiled, and with which you'll
need to compile Amanda as well. The problem is, those flags were for
the Sun Studio (Oracle Studio?) compiler. So you'll need to either
use that compiler (which works fine, although it emits a lot of
spurious warnings) or tweak the pkg-config glib-2.0.pc file to give
the proper threads flag for gcc. I believe that's -pthreads, but
don't quote me on it..
Dustin
--
Open Source Storage Engineer
http://www.zmanda.com |
|
| Back to top |
|
 |
|