Compiling with sfio installed

From: Michael Richards <miker(at)scifair(dot)acadiau(dot)ca>
To: hackers(at)postgresql(dot)org
Subject: Compiling with sfio installed
Date: 1998-04-19 13:28:01
Message-ID: Pine.BSF.3.96.980419101455.23710A-100000@scifair.acadiau.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I am running a FreeBSD 2.2.5 system that requires sfio to be installed. I
am also running FastCGI for faster CGI access as well as maintaining open
database connections.
Compiling craps out, but the fix is quite simple. You might want to
include something in the config script. Here is what I changed.

in Makefile.global
213c213
< LDFLAGS= -L/usr/local/lib -lcrypt -lcompat -lln -lm -lreadline -ltermcap
-lcurses -lsfio
---
> LDFLAGS= -L/usr/local/lib -lcrypt -lcompat -lln -lm -lreadline -ltermcap
-lcurses

(I added a -lsfio)

In interfaces/ecpg/preproc/Makefile
Here are my changes:
23c23
< # Rule that really does something.
---
> # Rule that really do something.
25c25
< $(CC) -o ecpg y.tab.o pgc.o type.o ecpg.o ../lib/typename.o
$(LEXLIB) -L /usr/local/lib -lsfio
---
> $(CC) -o ecpg y.tab.o pgc.o type.o ecpg.o ../lib/typename.o
$(LEXLIB)

I think it would be nice to implement these changes 'cause lots of folks
are installing FastCGI. My problem was that I installed PostgreSQL first
so it was already compiled when the Safe Fast IO (sfio) libs were
installed. When I went up to 6.3 it caused me lots of grief...

Maybe someone can come up with a nifty way if detecting if libsfio.a is
around and make these makefiles work if so...

thanks
-Mike

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-04-19 14:35:32 Re: [HACKERS] Leaks?
Previous Message Michael Richards 1998-04-19 13:12:43 Leaks?