General Bug Report: difficulty enabling USE_SYSLOG

Started by Unprivileged user <>over 26 years ago3 messagesbugs
Jump to latest
#1Unprivileged user <>
unprivileged_user___@unknown.user

============================================================================
POSTGRESQL BUG REPORT TEMPLATE
============================================================================

Your name : Jim Mercer
Your email address : jim@reptiles.org

Category : install: compile
Severity : serious

Summary: difficulty enabling USE_SYSLOG

System Configuration
--------------------
Operating System : FreeBSD 2,3

PostgreSQL version : 6.5,6.5.1

Compiler used : gcc

Hardware:
---------
Pentium

Versions of other tools:
------------------------
standard

--------------------------------------------------------------------------

Problem Description:
--------------------
the flag USE_SYSLOG is defined in config.h, which is
created by configure.
the configure script does not know about USE_SYSLOG, however, i believe it knows about syslog in general
(ie it knows if there is a syslog(), and hence can enable based on that)
the documentation talks about syslog, but does not list a procedure for enabling it.

--------------------------------------------------------------------------

Test Case:
----------

--------------------------------------------------------------------------

Solution:
---------
change configure to enable USE_SYSLOG if syslog facilities are available.

--------------------------------------------------------------------------

#2Bruce Momjian
bruce@momjian.us
In reply to: Unprivileged user <> (#1)
Re: [BUGS] General Bug Report: difficulty enabling USE_SYSLOG

You have to edit config.h after running configure. I realize this is a
pain. You could edit config.h.in, and configure would pick that up.
Perhaps we need to split out the configure-based stuff from config.h.

Comments?

============================================================================
POSTGRESQL BUG REPORT TEMPLATE
============================================================================

Your name : Jim Mercer
Your email address : jim@reptiles.org

Category : install: compile
Severity : serious

Summary: difficulty enabling USE_SYSLOG

System Configuration
--------------------
Operating System : FreeBSD 2,3

PostgreSQL version : 6.5,6.5.1

Compiler used : gcc

Hardware:
---------
Pentium

Versions of other tools:
------------------------
standard

--------------------------------------------------------------------------

Problem Description:
--------------------
the flag USE_SYSLOG is defined in config.h, which is
created by configure.
the configure script does not know about USE_SYSLOG, however, i believe it knows about syslog in general
(ie it knows if there is a syslog(), and hence can enable based on that)
the documentation talks about syslog, but does not list a procedure for enabling it.

--------------------------------------------------------------------------

Test Case:
----------

--------------------------------------------------------------------------

Solution:
---------
change configure to enable USE_SYSLOG if syslog facilities are available.

--------------------------------------------------------------------------

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#2)
Re: [BUGS] General Bug Report: difficulty enabling USE_SYSLOG

Bruce Momjian <maillist@candle.pha.pa.us> writes:

You have to edit config.h after running configure. I realize this is a
pain. You could edit config.h.in, and configure would pick that up.
Perhaps we need to split out the configure-based stuff from config.h.

That might be a good idea, now that so much stuff is configure-driven.
Actually I'd be inclined to leave configure producing config.h, and have
config.h #include a separate file that contains the non-machine-handled
config symbols. "siteconfig.h", maybe.

Re the original complaint,

change configure to enable USE_SYSLOG if syslog facilities are available.

I do *not* think that configure should automatically turn on USE_SYSLOG
just because it can find a syslog() subroutine. Maybe the admin wants
the log sent to syslog and maybe he doesn't. I'd be happier with adding
a configure command line switch, say "--enable-syslog".

regards, tom lane