Re: 8.0.3 build error on Mac OS X 10.4

Поиск
Список
Период
Сортировка
От OpenMacNews
Тема Re: 8.0.3 build error on Mac OS X 10.4
Дата
Msg-id C4CA29373CBB0B634D3D385D@tiedgar
обсуждение исходный текст
Ответ на 8.0.3 build error on Mac OS X 10.4  (Matthew Hixson <hixson@poindextrose.org>)
Ответы Re: 8.0.3 build error on Mac OS X 10.4  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
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

В списке pgsql-general по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Image storage questions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 8.0.3 build error on Mac OS X 10.4