Thread: Error in Makefile.tcldefs

Error in Makefile.tcldefs

From
pgsql-bugs@postgresql.org
Date:
Ian Harding (ianh@tpchd.org) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
Error in Makefile.tcldefs

Long Description
'gmake' process blows up when it gets to compiling pl/tcl.  The error message is something to the effect of "flag
'-Wl,-R/usr/pgk/lib'is not recognized."  I didn't see where -Wl was a valid flag in a quick scan of the man page for
gmake,so I simply deleted '-Wl,' from the TCL_LIB_SPEC line in Makefile.tcldefs in the /src/pl/tcl directory.  I have
noidea what damage I may have done, but all appears to be well as I can install pltcl and create functions. 

Platform - i686
OS NetBSD 1.5
PG Version 7.1

Sample Code


No file was uploaded with this report

Re: Error in Makefile.tcldefs

From
Peter Eisentraut
Date:
> Ian Harding (ianh@tpchd.org) reports a bug with a severity of 3

> 'gmake' process blows up when it gets to compiling pl/tcl.  The error message is something to the effect of "flag
'-Wl,-R/usr/pgk/lib'is not recognized."  I didn't see where -Wl was a valid flag in a quick scan of the man page for
gmake,so I simply deleted '-Wl,' from the TCL_LIB_SPEC line in Makefile.tcldefs in the /src/pl/tcl directory.  I have
noidea what damage I may have done, but all appears to be well as I can install pltcl and create functions. 

How about showing the actual thing and the actual effect?

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter

Re: Error in Makefile.tcldefs

From
Tom Lane
Date:
pgsql-bugs@postgresql.org writes:
> 'gmake' process blows up when it gets to compiling pl/tcl.  The error
> message is something to the effect of "flag '-Wl,-R/usr/pgk/lib' is
> not recognized."

My guess is that your Tcl installation is broken: tclConfig.sh contains
settings that aren't actually valid for your system.  Did you build
Tcl from source?

            regards, tom lane