Re: Configuring fdatasync for Solaris2 - Mailing list pgsql-patches
From | Kenji Sugita |
---|---|
Subject | Re: Configuring fdatasync for Solaris2 |
Date | |
Msg-id | 20010912.112325.104037918.sugita@sra.co.jp Whole thread Raw |
In response to | Re: Configuring fdatasync for Solaris2 (Peter Eisentraut <peter_e@gmx.net>) |
Responses |
Re: Configuring fdatasync for Solaris2
|
List | pgsql-patches |
From: Peter Eisentraut <peter_e@gmx.net> Subject: Re: [PATCHES] Configuring fdatasync for Solaris2 Date: Tue, 11 Sep 2001 21:25:31 +0200 (CEST) ;;; I added ;;; ;;; AC_SEARCH_LIBS(fdatasync, rt) ;;; ;;; near the location where your patch went. I applied your modification in the current to 7.1.3. Configure says as follows: $ uname -a SunOS ext274 5.6 Generic_105181-23 sun4u sparc SUNW,UltraSPARC-IIi-cEngine $ cvs di configure.in Index: configure.in =================================================================== RCS file: /home/mgr/sugita/jobs/cvs-master/pgsql/src/7.1.3/build/configure.in,v retrieving revision 1.1.1.1 diff -u -3 -p -r1.1.1.1 configure.in --- configure.in 16 Aug 2001 18:36:31 -0000 1.1.1.1 +++ configure.in 12 Sep 2001 01:44:13 -0000 @@ -681,6 +681,7 @@ dnl it seems unwise to encourage people AC_EGREP_HEADER(z_streamp, zlib.h, [ AC_CHECK_LIB(z, inflate) ]) => +AC_SEARCH_LIBS(fdatasync, rt) if test "$with_krb4" = yes ; then $ autoconf $ ./configure 2>&1 | tee configure.out ... checking for inflate in -lz... yes => checking for library containing fdatasync... no checking for crypt.h... yes ... $ I also cannot find out the rt library on Solaris2. The library posix4 hits fdatasync. $ make distclean $ cvs di -u configure.in Index: configure.in =================================================================== RCS file: /home/mgr/sugita/jobs/cvs-master/pgsql/src/7.1.3/build/configure.in,v retrieving revision 1.1.1.1 diff -u -3 -p -u -r1.1.1.1 configure.in --- configure.in 16 Aug 2001 18:36:31 -0000 1.1.1.1 +++ configure.in 12 Sep 2001 01:58:39 -0000 @@ -681,6 +681,7 @@ dnl it seems unwise to encourage people AC_EGREP_HEADER(z_streamp, zlib.h, [ AC_CHECK_LIB(z, inflate) ]) => +AC_SEARCH_LIBS(fdatasync, posix4) if test "$with_krb4" = yes ; then $ autoconf $ ./configure 2>&1 | tee configure.out ... checking for inflate in -lz... yes => checking for library containing fdatasync... -lposix4 checking for crypt.h... yes ... $ make install $ initdb $ pg_ctl -o '-c wal_sync_method=fdatasync -S' start postmaster successfully started $ psql template1 Welcome to psql, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help on internal slash commands \g or terminate with semicolon to execute query \q to quit template1=# show wal_sync_method; NOTICE: wal_sync_method is fdatasync SHOW VARIABLE template1=# Kenji Sugita sugita@sra.co.jp
pgsql-patches by date: