this bug's URL: http://intevation.de/rt/webrt?serial_num=3286
-------------------------------------------------------------------------
Subject: db/drivers/mysql linking fails
Platform: Solaris2.X/Sparc
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: CVS_snapshot_2005_04_30
The compilation under db/drivers/mysql goes ok, but the linking fails with the error message:
ild: removing potentially corrupted file /home/fysop/92/harkiisk/src/grass-6.0.cvs_src_snapshot_2005_04_30/dist.sparc-sun-solaris2.9/driver/db/mysql
ild: Fatal error -- signal 10. Exiting.
The command that produces this is:
cc -g -fast -xarch=native64 -L/home/fysop/92/harkiisk/src/grass-6.0.cvs_src_snapshot_2005_04_30/dist.sparc-sun-solaris2.9/lib -o /home/fysop/92/harkiisk/src/grass-6.0.cvs_src_snapshot_2005_04_30/dist.sparc-sun-solaris2.9/driver/db/mysql OBJ.sparc-sun-solaris2.9/column.o OBJ.sparc-sun-solaris2.9/cursor.o OBJ.sparc-sun-solaris2.9/db.o OBJ.sparc-sun-solaris2.9/describe.o OBJ.sparc-sun-solaris2.9/driver.o OBJ.sparc-sun-solaris2.9/execute.o OBJ.sparc-sun-solaris2.9/error.o OBJ.sparc-sun-solaris2.9/fetch.o OBJ.sparc-sun-solaris2.9/listdb.o OBJ.sparc-sun-solaris2.9/listtab.o OBJ.sparc-sun-solaris2.9/main.o OBJ.sparc-sun-solaris2.9/mysqlexe.o OBJ.sparc-sun-solaris2.9/select.o OBJ.sparc-sun-solaris2.9/str.o OBJ.sparc-sun-solaris2.9/table.o OBJ.sparc-sun-solaris2.9/create_table.o -lgrass_dbmidriver -lgrass_dbmibase -lgrass_sqlp -lgrass_dbstubs -lgrass_gis -lgrass_datetime -lnsl -lz -lsocket -lgrass_datetime -L/home/fysop/92/harkiisk/lib/mysql -lmysqlclient -L/usr/local/lib/64
-ltk8.3 -lm -ltcl8.3 -lm -lm -lnsl -lz
However, when the program is changed from cc to CC, everything goes fine:
CC -g -fast -xarch=native64 -L/home/fysop/92/harkiisk/src/grass-6.0.cvs_src_snapshot_2005_04_30/dist.sparc-sun-solaris2.9/lib -o /home/fysop/92/harkiisk/src/grass-6.0.cvs_src_snapshot_2005_04_30/dist.sparc-sun-solaris2.9/driver/db/mysql OBJ.sparc-sun-solaris2.9/column.o OBJ.sparc-sun-solaris2.9/cursor.o OBJ.sparc-sun-solaris2.9/db.o OBJ.sparc-sun-solaris2.9/describe.o OBJ.sparc-sun-solaris2.9/driver.o OBJ.sparc-sun-solaris2.9/execute.o OBJ.sparc-sun-solaris2.9/error.o OBJ.sparc-sun-solaris2.9/fetch.o OBJ.sparc-sun-solaris2.9/listdb.o OBJ.sparc-sun-solaris2.9/listtab.o OBJ.sparc-sun-solaris2.9/main.o OBJ.sparc-sun-solaris2.9/mysqlexe.o OBJ.sparc-sun-solaris2.9/select.o OBJ.sparc-sun-solaris2.9/str.o OBJ.sparc-sun-solaris2.9/table.o OBJ.sparc-sun-solaris2.9/create_table.o -lgrass_dbmidriver -lgrass_dbmibase -lgrass_sqlp -lgrass_dbstubs -lgrass_gis -lgrass_datetime -lnsl -lz -lsocket -lgrass_datetime -L/home/fysop/92/harkiisk/lib/mysql -lmysqlclient -L/usr/local/lib/64
-ltk8.3 -lm -ltcl8.3 -lm -lm -lnsl -lz
and everything goes fine. If I have understood correctly the cc and CC user guides on the machine I'm building the grass (Solaris 8/SPARC), for linking 64bit applications, only CC should be used, not cc nor ld. This seems to prove the point.
in 'include/Make/Platform.make' there is no place where the linker to be used could be explicitly defined, which I consider to be a deficiti, especially since linkings with cc or ld often seem to fail on this version of Solaris. An d I really really want to have 64bit:-)
Greetins,
Harri K.
-------------------------------------------- Managed by Request Tracker