Re: [GENERAL] 8.0.3 build error on Mac OS X 10.4

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [GENERAL] 8.0.3 build error on Mac OS X 10.4

OpenMacNews
hi all,

reading here, it seems builds on 'virgin' Tiger are behaving themselves ...

just fyi & fwiw, a pgsql v803 build on OSX 10.4.1 is also very nicely tolerant
of a /usr/local mod'd system, resulting in:

% otool -L /usr/local/pgsql/bin/postgres
/usr/local/pgsql/bin/postgres:
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
88.0.0)
        /usr/local/ssl/lib/libssl.0.9.7.dylib (compatibility version 0.9.0, current
version 0.9.7)
        /usr/local/ssl/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.0, current
version 0.9.7)
        /Library/Frameworks/Tcl.framework/Versions/8.5/Tcl (compatibility version
8.5.0, current version 8.5.0)
        /usr/local/lib/libreadline.5.0.dylib (compatibility version 5.0.0, current
version 5.0.0)
        /usr/local/lib/libintl.3.dylib (compatibility version 8.0.0, current version
8.3.0)
        /usr/lib/libpam.1.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.2)
        /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version
365.0.0)
        /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 92.0.0)


where env:

    Mac OSX 10.4.1
    TclTkAquaBI-8.4.9.1.dmg
    Berkeley-DB v4.3.28 w/ strong crypto
    Gettext v0.14.4

    % perl -V
    Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
     Platform:
    osname=darwin, osvers=8.1.0, archname=darwin-thread-multi-2level
    uname='darwin devbox 8.1.0 darwin kernel version 8.1.0: tue may 10
    18:16:08 pdt 2005; root:xnu-792.1.5.obj~4release_ppc power macintosh
    powerpc '
   
    Characteristics of this binary (from libperl):
     Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
    PERL_IMPLICIT_CONTEXT
     Built under darwin
     Compiled at May 18 2005 22:18:53
    %gcc --version
    powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple Computer, Inc.
    build 4061)
    % glibtool --version
    ltmain.sh (GNU libtool) 1.5.18 (1.1220.2.245 2005/05/16 08:55:27)
    % automake --version
    automake (GNU automake) 1.9.5
    % autoconf --version
    autoconf (GNU Autoconf) 2.59
    % openssl version
    OpenSSL 0.9.7g 11 Apr 2005

and, libreadline (v5.0) is picked up from my external build:
        -r-xr-xr-x  1 root staff 416616 May 18 11:12
/usr/local/lib/libreadline.5.0.dylib
        lrwxr-xr-x  1 root staff     21 May 18 11:12 /usr/local/lib/libreadline.dylib
-> libreadline.5.0.dylib

rather than from Tiger's native link to libedit:
        lrwxr-xr-x  1 root wheel 13 May 10 09:40 /usr/lib/libreadline.dylib ->
libedit.dylib


and building as:

cd /usr/ports/postgresql-8.0.3

ln -sf /usr/include/pam /usr/include/security

perl -pi -e 's/AC_PROG_RANLIB/AC_PROG_LIBTOOL/g'
/usr/ports/postgresql-8.0.3/configure.in

setenv CPPFLAGS "-I/usr/local/ssl/include
-I/Library/Frameworks/Tcl.framework/Headers -I/usr/local/include"
setenv LDFLAGS "-bind_at_load -ldl -L/usr/local/ssl/lib -lssl -lcrypto
-F/Library/Frameworks -framework Tcl -L/usr/local/lib -lreadline"

glibtoolize --force --copy
aclocal -I config
autoconf

./configure \
  --prefix=/usr/local/pgsql \
  --sysconfdir=/var/Settings/PgSQL \
  --localstatedir=/var/Process \
  --with-docdir=/var/Documentation/html/PgSQL \
  --mandir=/var/man \
--enable-shared --disable-static \
--disable-debug --enable-cassert \
--with-template=darwin \
--with-pgport=5432 \
--enable-thread-safety \
--with-maxbackends=1024 \
--with-perl \
--with-java \
--with-pam \
--with-python \
--with-rendezvous \
--with-openssl \
--with-includes="/usr/local/ssl/include /usr/local/include" \
--with-libraries="/usr/local/ssl/lib /usr/local/lib" \
--with-tcl \
--with-tclconfig=/Library/Frameworks/Tcl.framework \
--with-tkconfig=/Library/Frameworks/Tk.framework \
--enable-nls

make
make install


cheers,

richard

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [hidden email] so that your
      message can get through to the mailing list cleanly
Reply | Threaded
Open this post in threaded view
|

Re: [GENERAL] 8.0.3 build error on Mac OS X 10.4

Tom Lane-2
OpenMacNews <[hidden email]> writes:
> reading here, it seems builds on 'virgin' Tiger are behaving themselves ...

The short answer seems to be "when you update to 10.4, don't forget to
update to Xcode 2 as well".

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [hidden email] so that your
      message can get through to the mailing list cleanly
Reply | Threaded
Open this post in threaded view
|

Re: [GENERAL] 8.0.3 build error on Mac OS X 10.4

OpenMacNews

hi tom,

> OpenMacNews <[hidden email]> writes:
>> reading here, it seems builds on 'virgin' Tiger are behaving themselves ...
>
> The short answer seems to be "when you update to 10.4, don't forget to
> update to Xcode 2 as well".
>
> regards, tom lane

does it make sense to have configure check for min req'ts of xcode2 if os >=
v10.4?

cheers,

richard

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
Reply | Threaded
Open this post in threaded view
|

Re: [GENERAL] 8.0.3 build error on Mac OS X 10.4

Tom Lane-2
OpenMacNews <[hidden email]> writes:
>> The short answer seems to be "when you update to 10.4, don't forget to
>> update to Xcode 2 as well".

> does it make sense to have configure check for min req'ts of xcode2 if os >=
> v10.4?

No, I don't think so.  There is such an astonishing variety of ways to
break your system, on so many different platforms, that we cannot hope
to check them all.  If this failure were Postgres-specific then yes,
but the previous report is that it breaks lots of things.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: [GENERAL] 8.0.3 build error on Mac OS X 10.4

OpenMacNews
> OpenMacNews <[hidden email]> writes:
>>> The short answer seems to be "when you update to 10.4, don't forget to
>>> update to Xcode 2 as well".
>
>> does it make sense to have configure check for min req'ts of xcode2 if os >=
>> v10.4?
>
> No, I don't think so.  There is such an astonishing variety of ways to
> break your system, on so many different platforms, that we cannot hope
> to check them all.  If this failure were Postgres-specific then yes,

true enuf in general ...

but _this_ proposed check would really be just a 'did you do a complete OS
install (including XCode 2)?' check, rather than any one particular 'widget'
etc.

have no idea HOW to check for XCode2 install other than looking in
/Library/Receipts ...

then again, a comment i the INSTALL/README would/should go just as far!

> but the previous report is that it breaks lots of things.

all in all, it's been relatively well behaved for me so far ... <keeping
fingers crossed!>

cheers,

richard

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend