Re: How do you make this Open Source work on Solaris ?



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]
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]
Do you think this was the root cause of the problem?
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.
.



Relevant Pages

  • Re: Mono and Solaris 8
    ... *** Error code 1 ... make: Fatal error: Command failed for target `all-recursive' ...
    (comp.unix.solaris)
  • mySQL version 4.017 install failure
    ... *** Error code 1 ... Current working directory /tmp/mysql-4.0.17/sql ... make: Fatal error: Command failed for target `all-recursive' ...
    (SunManagers)
  • summary: problem with compiling courier-imap on solaris 10
    ... We have problem with compiling courier-imap 4.6 on solaris 10 (Solaris ... *** Error code 2 ... make: Fatal error: Command failed for target `imapd.cnf' ...
    (SunManagers)
  • apache_1.3.31 & Solaris 9
    ... *** Error code 1 ... make: Fatal error: Command failed for target `ssl_expr_scan.lo' ... Current working directory /opt/apache_1.3.31/src/modules ...
    (comp.unix.solaris)
  • Re: Problems installing elm on Solaris 10
    ... *** Error code 1 ... make: Fatal error: Command failed for target `add_site.o' ... There should have been a gcc in /usr/sfw/bin. ...
    (comp.unix.solaris)

Quantcast