Thread

  1. General Bug Report: enabling USE_SYSLOG breaks compile of src/backend/utils/misc/trace.c

    Unprivileged user <nobody> — 1999-07-22T13:35:14Z

    ============================================================================
                            POSTGRESQL BUG REPORT TEMPLATE
    ============================================================================
    
    
    Your name               : Jim Mercer
    Your email address      : jim@reptiles.org
    
    Category                : install: compile
    Severity                : serious
    
    Summary: enabling USE_SYSLOG breaks compile of src/backend/utils/misc/trace.c
    
    System Configuration
    --------------------
      Operating System   : FreeBSD 2,3
    
      PostgreSQL version : 6.5.1
    
      Compiler used      : gcc
    
    Hardware:
    ---------
    Pentium
    
    Versions of other tools:
    ------------------------
    
    
    --------------------------------------------------------------------------
    
    Problem Description:
    --------------------
    the USE_SYSLOG define is in "config.h", which is not included when trace.c tries to include <syslog.h>
    
    
    --------------------------------------------------------------------------
    
    Test Case:
    ----------
    enable USE_SYSLOG in include/config.h
    compile
    
    --------------------------------------------------------------------------
    
    Solution:
    ---------
    move the #ifdef/#include <syslog.h>/#endif
    to below the #include local include files"
    
    
    --------------------------------------------------------------------------
    
    
    
  2. Re: [BUGS] General Bug Report: enabling USE_SYSLOG breaks compile of src/backend/utils/misc/trace.c

    Bruce Momjian <maillist@candle.pha.pa.us> — 1999-07-22T15:46:41Z

    I think I have fixed this, and it will be in 6.6.
    
    > 
    > ============================================================================
    >                         POSTGRESQL BUG REPORT TEMPLATE
    > ============================================================================
    > 
    > 
    > Your name               : Jim Mercer
    > Your email address      : jim@reptiles.org
    > 
    > Category                : install: compile
    > Severity                : serious
    > 
    > Summary: enabling USE_SYSLOG breaks compile of src/backend/utils/misc/trace.c
    > 
    > System Configuration
    > --------------------
    >   Operating System   : FreeBSD 2,3
    > 
    >   PostgreSQL version : 6.5.1
    > 
    >   Compiler used      : gcc
    > 
    > Hardware:
    > ---------
    > Pentium
    > 
    > Versions of other tools:
    > ------------------------
    > 
    > 
    > --------------------------------------------------------------------------
    > 
    > Problem Description:
    > --------------------
    > the USE_SYSLOG define is in "config.h", which is not included when trace.c tries to include <syslog.h>
    > 
    > 
    > --------------------------------------------------------------------------
    > 
    > Test Case:
    > ----------
    > enable USE_SYSLOG in include/config.h
    > compile
    > 
    > --------------------------------------------------------------------------
    > 
    > Solution:
    > ---------
    > move the #ifdef/#include <syslog.h>/#endif
    > to below the #include local include files"
    > 
    > 
    > --------------------------------------------------------------------------
    > 
    > 
    > 
    
    
    -- 
      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