Re: How do you make this Open Source work on Solaris ?
- From: Michelle <serendipity1276@xxxxxxxxx>
- Date: Mon, 20 Jul 2009 22:04:15 -0700 (PDT)
On Jul 20, 6:58 am, i...@xxxxxxxxxxxxxxxxxxxxx (Ike Naar) wrote:
In article <2999ed2a-bdc3-4e6b-be8b-df1afb949...@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Michelle <serendipity1...@xxxxxxxxx> wrote:
On Jul 20, 1:12 am, i...@xxxxxxxxxxxxxxxxxxxxx (Ike Naar) wrote:
[snip]Do you think this was the root cause of the problem?
The '-mt' option is not valid for gcc, it's a Sun cc option..
It looks like your libgnome was built with Sun cc.
configure notices this, and tries to reuse the CFLAGS that were used
to build libgnome during the mdbtools build.
[snip]
That I used GCC instead of Sun's CC ?
So if I don't have Sun's C compiler , then, I'm out of luck right?
Perhaps you could try the following (no guarantees!):
The -mt option is part of the GNOME_CFLAGS macro, which is constructed
by configure; configure obtains the necessary information by running
pkg-config --cflags "libglade-2.0 libgnomeui-2.0"
Now, what you can do is override GNOME_CFLAGS during the build; first
run the pkg-config command, and save the output in a file, like:
pkg-config --cflags "libglade-2.0 libgnomeui-2.0" >my_gnome_cflags
Edit the my_gnome_cflags file, and replace the -mt option by the
appropriate gcc option for your platform (probably -mtreads for x86,
or -threads or -pthreads for SPARC, consult your gcc man page to be sure)..
Then run make, using the modified flags:
env GNOME_CFLAGS="`cat my_gnome_cflags`" make -e
Good luck,
Ike
Now, I go to Build it on Sun Studio, and I got errors, and I don't
know what to do next:
Running "/opt/SSX0903/bin/dmake -f mdbtools-0.6pre1_2-Makefile.mk
CONF=Default" in /export/home/test/SunStudioProjects/
mdbtools-0.6pre1_2
dmake: defaulting to parallel mode.
See the man page dmake(1) for more information on setting up
the .dmakerc file.
viper --> 1 job
viper --> 2 jobs
/opt/SSX0903/bin/dmake -f nbproject/Makefile-Default.mk
SUBPROJECTS= .build-conf
viper --> 1 job
cd ../../../temp/mdbtools-0.6pre1 && make -f Makefile
viper --> Job output
cd ../../../temp/mdbtools-0.6pre1 && make -f Makefile
Making all in src
Making all in libmdb
Making all in extras
Making all in sql
Making all in gmdb2
Making all in help
Making all in C
Making all in gladefiles
Making all in pixmaps
source='main2.c' object='main2.o' libtool=no \
depfile='.deps/main2.Po' tmpdepfile='.deps/main2.TPo' \
depmode=none /bin/bash ../../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -
DORBIT2=1 -mt -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/
usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -
I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/
usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/
include -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/
usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/
include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/
orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/
usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -
DDATADIR=\""/usr/local/share"\" -DGMDB_ICONDIR=
\""/usr/local/share/gmdb/glade/"\" -DGMDB_GLADEDIR=\""/usr/
local/share/gmdb/glade/"\" -g -O2 -DSQL -c `test -f 'main2.c' ||
echo './'`main2.c
cc1: error: invalid option `t'
*** Error code 1
make: Fatal error: Command failed for target `main2.o'
Current working directory /temp/mdbtools-0.6pre1/src/gmdb2
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='help gladefiles pixmaps'; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /temp/mdbtools-0.6pre1/src/gmdb2
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='libmdb extras sql gmdb2 util'; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /temp/mdbtools-0.6pre1/src
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='src include doc'; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /temp/mdbtools-0.6pre1
*** Error code 1
dmake: Fatal error: Command failed for target `.build-conf'
Current working directory /export/home/test/SunStudioProjects/
mdbtools-0.6pre1_2
*** Error code 1
dmake: Fatal error: Command failed for target `.build-impl'
Build failed. Exit value 1.
.
- Follow-Ups:
- Re: How do you make this Open Source work on Solaris ?
- From: Ike Naar
- Re: How do you make this Open Source work on Solaris ?
- References:
- How do you make this Open Source work on Solaris ?
- From: Michelle
- Re: How do you make this Open Source work on Solaris ?
- From: Michelle
- Re: How do you make this Open Source work on Solaris ?
- From: Ike Naar
- Re: How do you make this Open Source work on Solaris ?
- From: Michelle
- Re: How do you make this Open Source work on Solaris ?
- From: Ike Naar
- How do you make this Open Source work on Solaris ?
- Prev by Date: Re: How do you make this Open Source work on Solaris ?
- Next by Date: Re: How do you make this Open Source work on Solaris ?
- Previous by thread: Re: How do you make this Open Source work on Solaris ?
- Next by thread: Re: How do you make this Open Source work on Solaris ?
- Index(es):
Relevant Pages
|