pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Problems compiling 7.1 with TCL support on Solaris 7
3+ messages / 2 participants
[nested] [flat]

* Problems compiling 7.1 with TCL support on Solaris 7
@ 2001-05-03 11:35  Andy Howarth <andy@is3-design.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Andy Howarth @ 2001-05-03 11:35 UTC (permalink / raw)
  To: pgsql-novice@postgresql.org


I did a first installation without TCL support, that compiled, installed
and appeared to work ok.

However when I try to add TCL support, the following happens during
'make':

[snipped]
.
.
.
make[3]: Entering directory
`/export/home/andy/postgresql-7.1/src/pl/tcl'
/bin/sh mkMakefile.tcldefs.sh '/usr/local/lib/tclConfig.sh'
'Makefile.tcldefs'
make[3]: Leaving directory `/export/home/andy/postgresql-7.1/src/pl/tcl'
make[3]: Entering directory
`/export/home/andy/postgresql-7.1/src/pl/tcl'
cc -O -KPIC -I../../../src/include  -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1
-DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1
-DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1
-DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1
-DHAVE_TZNAME=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1
-DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -DRETSIGTYPE=void
-DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1   -c -o
pltcl.o pltcl.c
make[3]: cc: Command not found
make[3]: *** [pltcl.o] Error 127
make[3]: Leaving directory `/export/home/andy/postgresql-7.1/src/pl/tcl'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/export/home/andy/postgresql-7.1/src/pl'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/export/home/andy/postgresql-7.1/src'
make: *** [all] Error 2

Er, WHAT? > make[3]: cc: Command not found

So, suddenly we want cc. Hmm, ok novice brute force to make it use gcc:

make[3]: Entering directory
`/export/home/andy/postgresql-7.1/src/pl/tcl'
cc -O -KPIC -I../../../src/include  -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1
-DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1
-DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1
-DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1
-DHAVE_TZNAME=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1
-DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -DRETSIGTYPE=void
-DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1   -c -o
pltcl.o pltcl.c
cc: unrecognized option `-KPIC'
/usr/ccs/bin/ld -G -z text -o pltcl.so pltcl.o -L/usr/local/lib -ltcl8.2
-ldl  -lsocket -lnsl -lm -lc
Text relocation remains                         referenced
    against symbol                  offset      in file
<unknown>                           0x4         pltcl.o
<unknown>                           0x8         pltcl.o
<unknown>                           0xbc0       pltcl.o
<unknown>                           0x20        pltcl.o
<unknown>                           0x2c        pltcl.o
<unknown>                           0xbd4       pltcl.o
<unknown>                           0x27ec      pltcl.o
<unknown>                           0x980       pltcl.o
<unknown>                           0x40        pltcl.o
.
[snipped loads of this]
.
<unknown>                           0x2f20      pltcl.o
<unknown>                           0x217c      pltcl.o
<unknown>                           0x2180      pltcl.o
ld: fatal: relocations remain against allocatable but non-writable
sections
make[3]: *** [pltcl.so] Error 1
make[3]: Leaving directory `/export/home/andy/postgresql-7.1/src/pl/tcl'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/export/home/andy/postgresql-7.1/src/pl'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/export/home/andy/postgresql-7.1/src'
make: *** [all] Error 2

Does anybody know why this happens? (We have TCL/Tk version 8.2
installed)

Thanks,
Andy.



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Problems compiling 7.1 with TCL support on Solaris 7
@ 2001-05-03 13:27  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Andy Howarth <andy@is3-design.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2001-05-03 13:27 UTC (permalink / raw)
  To: Andy Howarth <andy@is3-design.com>; +Cc: pgsql-novice@postgresql.org

Andy Howarth <andy@is3-design.com> writes:
> However when I try to add TCL support, the following happens during
> 'make':

> make[3]: Entering directory
> `/export/home/andy/postgresql-7.1/src/pl/tcl'
> cc -O -KPIC -I../../../src/include  -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1
> -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1
> -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1
> -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1
> -DHAVE_TZNAME=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1
> -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -DRETSIGTYPE=void
> -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1   -c -o
> pltcl.o pltcl.c
> make[3]: cc: Command not found
> make[3]: *** [pltcl.o] Error 127

You have a broken Tcl installation.

pltcl tries to use the compiler and switches specified in Tcl's
tclConfig.sh file.  Evidently the copy of that file that you have
has nothing to do with your system.

I suggest reinstalling Tcl from source, to make sure that its recorded
build configuration has something to do with reality...

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Problems compiling 7.1 with TCL support on Solaris 7
@ 2001-05-03 14:27  Andy Howarth <andy@is3-design.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Andy Howarth @ 2001-05-03 14:27 UTC (permalink / raw)
  To: pgsql-novice@postgresql.org

Rasputin wrote:
  
> If fixing tcl is too scary (no offence) just become root and type
> 
> ln -s `which gcc` /bin/cc

Tried that, gcc spits out the -KPIC option and then ld joins in the fun
by complaining loudly. (See my original post).

Tom Lane wrote:

> > You have a broken Tcl installation.
> >
> > pltcl tries to use the compiler and switches specified in Tcl's
> > tclConfig.sh file.  Evidently the copy of that file that you have
> > has nothing to do with your system.

Thanks Tom. I asked the colleague who installed it, he obtained and
installed a precompiled binary...

Now all I have to do is get Tk to install properly, never had much luck
with that on Solaris. (Missing X files.)

Here goes. Thanks for the replies.

Regards,
Andy.



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-05-03 14:27 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-05-03 11:35 Problems compiling 7.1 with TCL support on Solaris 7 Andy Howarth <andy@is3-design.com>
2001-05-03 13:27 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-05-03 14:27   ` Andy Howarth <andy@is3-design.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox