Re: building 7.4.3 on Solaris 9/Intel - Mailing list pgsql-general

From Bruce Momjian
Subject Re: building 7.4.3 on Solaris 9/Intel
Date
Msg-id 200406160348.i5G3mbM20005@candle.pha.pa.us
Whole thread Raw
In response to Re: building 7.4.3 on Solaris 9/Intel  ("David Parker" <dparker@tazznetworks.com>)
List pgsql-general
OK, I have fixed this so the configure test happens with the proper
thread flags.  Patch attached, and it will be in 7.4.4.

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

David Parker wrote:
> Seems to be, which is why I originally asked about configure switches,
> but it seems like just
> --enable-thread-safety ought to be enough.
>
> -----Original Message-----
> From: Jim Seymour [mailto:jseymour@linxnet.com]
> Sent: Tuesday, June 15, 2004 5:41 PM
> To: pgsql-general@postgresql.org
> Subject: Re: [GENERAL] building 7.4.3 on Solaris 9/Intel
>
> "David Parker" <dparker@tazznetworks.com> wrote:
> >
> > Thanks for the response. Yup, I'm sure it's 7.4.3.
> >
> > From the config.log, it looks like the check for getpwuid_r test
> > program uses -D_POSIX_PTHREAD_SEMANTICS, which turns on the POSIX
> > version of the call, but the check for "fifth argument" test compile
> > doesn't include this define, so it fails, and the GETPWUID_R_5ARG
> doesn't get set:
> [snip]
>
> So it's actually a configure problem.
>
> Jim
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faqs/FAQ.html
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
Index: configure
===================================================================
RCS file: /cvsroot/pgsql-server/configure,v
retrieving revision 1.310.2.10
diff -c -c -r1.310.2.10 configure
*** configure    8 Jun 2004 15:36:34 -0000    1.310.2.10
--- configure    16 Jun 2004 03:14:51 -0000
***************
*** 13482,13489 ****
  fi
  done

! CFLAGS="$_CFLAGS"
! LIBS="$_LIBS"
  echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
  echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
  if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
--- 13482,13488 ----
  fi
  done

! # do this test with the proper thread flags
  echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
  echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
  if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
***************
*** 13543,13548 ****
--- 13542,13549 ----

  fi

+ CFLAGS="$_CFLAGS"
+ LIBS="$_LIBS"
  fi


Index: configure.in
===================================================================
RCS file: /cvsroot/pgsql-server/configure.in,v
retrieving revision 1.301.2.8
diff -c -c -r1.301.2.8 configure.in
*** configure.in    8 Jun 2004 15:36:35 -0000    1.301.2.8
--- configure.in    16 Jun 2004 03:14:53 -0000
***************
*** 1059,1067 ****
  CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
  LIBS="$LIBS $THREAD_LIBS"
  AC_CHECK_FUNCS([strerror_r getpwuid_r gethostbyname_r])
  CFLAGS="$_CFLAGS"
  LIBS="$_LIBS"
- PGAC_FUNC_GETPWUID_R_5ARG
  fi


--- 1059,1068 ----
  CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
  LIBS="$LIBS $THREAD_LIBS"
  AC_CHECK_FUNCS([strerror_r getpwuid_r gethostbyname_r])
+ # do this test with the proper thread flags
+ PGAC_FUNC_GETPWUID_R_5ARG
  CFLAGS="$_CFLAGS"
  LIBS="$_LIBS"
  fi



pgsql-general by date:

Previous
From: rvigmbdc@umail.furryterror.org (Zygo Blaxell)
Date:
Subject: "Interesting" query planning for timestamp ranges in where clause?
Next
From: Tom Lane
Date:
Subject: Re: "Interesting" query planning for timestamp ranges in where clause?