A NOTE has been added to this issue. ====================================================================== http://www.dbmail.org/mantis/view.php?id=484 ====================================================================== Reported By: metalchaos Assigned To: ====================================================================== Project: DBMail Issue ID: 484 Category: General Reproducibility: always Severity: block Priority: normal Status: new target: ====================================================================== Date Submitted: 05-Jan-07 20:29 CET Last Modified: 07-Jan-07 12:03 CET ====================================================================== Summary: doesn't compile on Solaris Description: Hi, I have Solaris 10 11/06 with gcc 3.4.5 taken from blastware.org and it gives me the following error on compilation. The same thing happens on another machine with Solaris 10 but with gcc 2.95 installed from the companion cd.
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/opt/csw/mysql5/include/mysql -mt -D_FO RTEC_ -xtarget=386 -fomit-frame-pointer -g -O2 -I/opt/csw/include/glib-2.0 -I/op t/csw/lib/glib-2.0/include -I/opt/csw/include/gmime-2.0 -I/opt/csw/include/glib- 2.0 -I/opt/csw/lib/glib-2.0/include -W -Wall -Wpointer-arith -Wstrict-prototypes -MT sortnull.lo -MD -MP -MF .deps/sortnull.Tpo -c sortnull.c -fPIC -DPIC -o .l ibs/sortnull.o gcc: language target=386 not recognized gcc: sortnull.c: linker input file unused because linking not done mv: cannot access .deps/sortnull.Tpo *** Error code 2 make: Fatal error: Command failed for target `sortnull.lo' Current working directory /root/t/dbmail-2.2.1/modules *** Error code 1 The following command caused the error: failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='modules man'; 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) \ || eval $failcom; \ 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 /root/t/dbmail-2.2.1 *** Error code 1 make: Fatal error: Command failed for target `all' ====================================================================== ---------------------------------------------------------------------- metalchaos - 05-Jan-07 20:29 ---------------------------------------------------------------------- postfix compiled successfully ---------------------------------------------------------------------- aaron - 07-Jan-07 00:12 ---------------------------------------------------------------------- I'm guessing that you've got Solaris on x86? It looks like the incorrect option might be part of the MySQL flags. Do you know what compiler was used to build your MySQL? Are you able to compile and link other apps against MySQL with GCC? Please find the mysql_config binary and post the output of: mysql_config --cflags ---------------------------------------------------------------------- metalchaos - 07-Jan-07 12:03 ---------------------------------------------------------------------- I'm using Solaris x64 but everything GNU is x86. gcc, mysql are installed from blastware.org and are build for i386. -bash-3.00# mysql_config --cflags -I/opt/csw/mysql5/include/mysql -mt -D_FORTEC_ -xtarget=386 Postfix compiled with: make -f Makefile.init makefiles CCARGS="-DHAS_MYSQL -I/opt/csw/mysql5/include/mysql \ -DUSE_TLS -I/opt/csw/include/openssl \ -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/opt/csw/include/sasl \ -DHAS_DB -I/opt/csw/include" AUXLIBS="-L/opt/csw/mysql5/lib/mysql -lmysqlclient -lz -lm \ -R/opt/csw/lib -L/opt/csw/lib -lssl -lcrypto \ -L/opt/csw/lib/sasl2/lib -R/opt/csw/lib/sasl2/lib -lsasl2 \ -L/opt/csw/lib -ldb" Issue History Date Modified Username Field Change ====================================================================== 05-Jan-07 20:29 metalchaos New Issue 05-Jan-07 20:29 metalchaos Note Added: 0001709 07-Jan-07 00:12 aaron Note Added: 0001711 07-Jan-07 12:03 metalchaos Note Added: 0001712 ====================================================================== _______________________________________________ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev