Compiling with sfio installed

Поиск
Список
Период
Сортировка
От Michael Richards
Тема Compiling with sfio installed
Дата
Msg-id Pine.BSF.3.96.980419101455.23710A-100000@scifair.acadiau.ca
обсуждение исходный текст
Ответы Re: [HACKERS] Compiling with sfio installed  (The Hermit Hacker <scrappy@hub.org>)
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Richards
Дата:
Сообщение: Leaks?
Следующее
От: Ryan Kirkpatrick
Дата:
Сообщение: Symbols defined on Dec Alpha....