pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Problems building libpgtcl
3+ messages / 3 participants
[nested] [flat]

* Problems building libpgtcl
@ 1999-01-04 00:35  Stan Brown <stanb@awod.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Stan Brown @ 1999-01-04 00:35 UTC (permalink / raw)
  To: pgsql-interfaces@hub.org

	I am trying to build postgres 6.4.1 with libpgtcl, in order to run
	pgaccess. The current problem is geting all the right options passed to
	configure, I believe. I am using:

	./configure  --prefix=/data/pgtest --with-template=hpux_gcc
	--with-pgport=5434 - -with-tcl 
	--with-includes=/opt/tcl-8.0/include
	--with-libraries=/opt/tcl-8.0//lib 
	--with-include=/opt/tk-8.0/includes/X11
	--with-libraries=/opt/tk-8.0/X11/lib

	Please note the use of multiple --with-includes here. However it is not
	working. Here is the resultant compiler directive:

	gcc -I../../include -I../../backend   -I/opt/tcl-8.0/include   -Wall
	-Wmissing-prototypes  -I../../interfaces/libpgtcl    -c pgtclAppInit.c
	-o pgtclAppInit.o

	Obviously this is going to fail, since tk.h won't be found.

	Any sugestions?


-- 
Stan Brown     stanb@netcom.com                                    843-745-3154
Westvaco
Charleston SC.
-- 
Windows 98: n.
	useless extension to a minor patch release for 32-bit extensions and
	a graphical shell for a 16-bit patch to an 8-bit operating system
	originally coded for a 4-bit microprocessor, written by a 2-bit 
	company that can't stand for 1 bit of competition.
-
(c) 1999 Stan Brown.  Redistribution via the Microsoft Network is prohibited.



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

* Re: [INTERFACES] Problems building libpgtcl
@ 1999-01-04 01:37  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Stan Brown <stanb@awod.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 1999-01-04 01:37 UTC (permalink / raw)
  To: Stan Brown <stanb@awod.com>; +Cc: pgsql-interfaces@hub.org

"Stan Brown" <stanb@awod.com> writes:
> 	I am trying to build postgres 6.4.1 with libpgtcl, in order to run
> 	pgaccess. The current problem is geting all the right options passed to
> 	configure, I believe. I am using:
> 	./configure  --prefix=/data/pgtest --with-template=hpux_gcc
> 	--with-pgport=5434 - -with-tcl 
> 	--with-includes=/opt/tcl-8.0/include
> 	--with-libraries=/opt/tcl-8.0//lib 
> 	--with-include=/opt/tk-8.0/includes/X11
> 	--with-libraries=/opt/tk-8.0/X11/lib

> 	Please note the use of multiple --with-includes here. However it is not
> 	working.

No, it wouldn't ... configure's switch parsing is too dumb to cope with
more than one occurrence of each --with-XXX directive.  (If the above
is a verbatim transcript, then you misspelled --with-includes the second
time :-( ... but it wouldn't have worked anyway ...)

I think this will work:

 	--with-includes='/opt/tcl-8.0/include /opt/tk-8.0/includes/X11'
 	--with-libraries='/opt/tcl-8.0/lib /opt/tk-8.0/X11/lib'

At least, perusing the configure script's code makes it look like
something close to that should work for specifying multiple include or
library directories.  You might have to mess around with the quoting to
get it just right.

I think we oughta have an example of this in the INSTALL documentation...

			regards, tom lane



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

* Re: Problems building libpgtcl
@ 1999-01-08 16:00  Stefan Hornburg <racke@gundel.han.de>
  parent: Stan Brown <stanb@awod.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Stefan Hornburg @ 1999-01-08 16:00 UTC (permalink / raw)
  To: pgsql-interfaces@hub.org

"Stan Brown" <stanb@awod.com> writes:

> 	I am trying to build postgres 6.4.1 with libpgtcl, in order to run
> 	pgaccess. The current problem is geting all the right options passed to
> 	configure, I believe. I am using:
> 
> 	./configure  --prefix=/data/pgtest --with-template=hpux_gcc
> 	--with-pgport=5434 - -with-tcl 
> 	--with-includes=/opt/tcl-8.0/include
> 	--with-libraries=/opt/tcl-8.0//lib 
> 	--with-include=/opt/tk-8.0/includes/X11
> 	--with-libraries=/opt/tk-8.0/X11/lib
> 
> 	Please note the use of multiple --with-includes here. However it is not
> 	working. Here is the resultant compiler directive:
> 
> 	gcc -I../../include -I../../backend   -I/opt/tcl-8.0/include   -Wall
> 	-Wmissing-prototypes  -I../../interfaces/libpgtcl    -c pgtclAppInit.c
> 	-o pgtclAppInit.o

Something like (one line !!)
CFLAGS='-I/opt/tcl-8.0/include -I/opt/tk-8.0/includes/X11' 
LDFLAGS='-L/opt/tcl-8.0/lib -L/opt/tk-8.0/X11/lib'
./configure ......

should do the trick in any case.

Ciao
		Racke

-- 
Racke's Package and Resource Database (http://www.han.de/~racke/pard/)
486 packages, 60 resources, 10 distributions covered



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


end of thread, other threads:[~1999-01-08 16:00 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-01-04 00:35 Problems building libpgtcl Stan Brown <stanb@awod.com>
1999-01-04 01:37 ` Tom Lane <tgl@sss.pgh.pa.us>
1999-01-08 16:00 ` Stefan Hornburg <racke@gundel.han.de>

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