Details Ticket 3286


Comment | Reply | Take | Open


Serial Number 3286
Subject db/drivers/mysql linking fails
Area grass6
Queue grass
Requestors harri.kiiskinen@utu.fi
Owner none
Status resolved
Last User Contact Thu Aug 3 20:41:02 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Tue Oct 3 13:42:29 2006 (2 yr ago)
Created Thu May 26 12:40:33 2005 (3 yr ago)

Transaction History Ticket 3286


Thu, May 26 2005 12:40:33    Request created by guest  
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/dis
t.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/drive
r/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/execu
te.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/dis
t.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/drive
r/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/execu
te.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.
Tue, Jul 19 2005 23:06:24    Mail sent by mneteler  
Hi,

since a few days I have a 64bit machine. With my new experiences I have
updated INSTALL file in 6.1-CVS. Please have a look for 64bit tricks
there.

Markus
Sat, Aug 20 2005 12:21:02    Mail sent by msieczka  
Harri,

Can you please confirm if you still have this problem in 6.1? So we new if to
close this bug or not.

Thanks,
Maciek
Thu, Aug 3 2006 20:41:02    Mail sent by sholl  
msieczka wrote (Sat, Aug 20 2005 12:21:02):

> Harri,
> 
> Can you please confirm if you still have this problem in 6.1? So we new if
to
> close this bug or not.

another try: could you please verify if this still applies to you when
compiling using the lastest CVS?

Thank you

Stephan Holl
Mon, Aug 14 2006 20:57:22    Comments added by guest  
Haven't been actively at the Solaris machine for a while; currently working on
the build, but other complications. Patience is asked for.

Harri K.
Wed, Aug 16 2006 23:02:04    Comments added by guest  
Compiles fine now, at least against MySQL 4.1.12. Bug probably can be closed
now.

Harri K.
Tue, Oct 3 2006 13:42:29    Status changed to resolved by mneteler  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request