Re: problem making scotty-2.1.1 with msql under Solaris 2.5

Doug Hughes (Doug.Hughes@Eng.Auburn.EDU)
Tue, 30 Jul 1996 11:09:53 -0500

For those that haven't already made a dynamically loadable msql, it's
really not very difficult. Here's what I've done.

Required: msqltcl (I have 1.50, but higher revs are probably available)
Required: msql (I have 1.0.10, same as above)

cd to the msqltcl directory
Follow setup instructions for the build,
add appropriate position independent code flag to the CFLAGS line in the
Makefile. (for gcc it is -fPIC, for SUNWspro on SunOS it is -PIC, and
for SUNWspro on Solaris it is -K PIC)

make w/tcl
(You'll need to have the msql directory untarred and uncompressed at
this point so that msqltcl can find the appropriate include files)

cd to the msql build tree now.

make target to have it add links as needed
cd to the newly created target dir and run setup, answer questions as
directed in README

edit site.mm and add the position independent code flag for your
compiler (for gcc it is -fPIC, for SUNWspro on SunOS it is -PIC, and
for SUNWspro on Solaris it is -K PIC). Add it to the CFLAGS line.

type make
(The important part here is the building of libmsql.a, you can interrupt
the build procedure as soon as this portion is built)

now cd msql and do this:
copy the msqltcl.o file from the msqltcl directory to the current dir.

Solaris: ld -G -o libmsql.so ../common/strlib.o ../common/tmpnam.o \
libmsql.o net.o msqltcl.o
SunOS: ld -assert pure-text -o libmsql.so ../common/strlib.o ../common/tmpnam.o \
libmsql.o net.o msqltcl.o

copy libmsql.so to your tcl/tk library directory

Now you have a dynamically loadable msql library that can be loaded
via the following command
load $tcl_library/../libmsql.so msqltcl

--
____________________________________________________________________________
Doug Hughes					Engineering Network Services
System/Net Admin  				Auburn University
			doug@eng.auburn.edu