Re: Buildproblems on OSX 10.3 due to libxml2

From: OpenMacNews <openmacnews(at)gmail(dot)com>
To: pgadmin-hackers(at)postgresql(dot)org
Cc: Miha Radej <miha(dot)radej(at)siix(dot)com>, "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>, Dave Page <dpage(at)vale-housing(dot)co(dot)uk>
Subject: Re: Buildproblems on OSX 10.3 due to libxml2
Date: 2006-02-27 03:56:34
Message-ID: 44027872.4080205@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

hi all,

just bouncing by :-) & thought i'd give the latest HEAD a try, and see
if i'm having any of (these) issues.

fwiw, i've installed my own libxml in /usr/local/lib

% which xml2-config
/usr/local/bin/xml2-config
% xml2-config --version
2.6.23
% xml2-config --libs
-L/usr/local/lib -lxml2 -L/usr/local/lib -lz -lpthread -liconv -lm

w/:

% uname -a
Darwin server 8.5.0 Darwin Kernel Version 8.5.0: Sun Jan 22 10:38:46
PST 2006; root:xnu-792.6.61.obj~1/RELEASE_PPC Power Macintosh powerpc

and a pgadmin3 (svn co r5031) build w/:

% setenv TARGET_DIR "wxwidgets_262_dyn"
% setenv TARGET_INC "2.6"
% setenv TARGET_INSTALL "pgadmin3dyn_wxdyn_262"

% setenv CPPFLAGS "-I/usr/local/ssl/include
- -I/usr/local/${TARGET_DIR}/include/wx-${TARGET_INC} -I/usr/local/include"
% setenv LDFLAGS "-ldl -L/usr/local/ssl/lib -lssl -lcrypto
- -L/usr/local/${TARGET_DIR}/lib -L/usr/local/lib -lexpat -lpng -ljpeg
- -ltiff -lintl -lgettextlib -lz"

% cd /usr/ports/pgadmin3/${TARGET_INSTALL}

% gcc_select 4.0

=========================================================
${EDITOR} /usr/ports/pgadmin3/pgadmin3dyn_wxdyn_262/configure.ac.in

# Checks for libraries.
- --- AC_PROG_RANLIB
+++ AC_PROG_LIBTOOL
=========================================================

% gcc_select 4.0
% setenv PATH "/usr/local/${TARGET_DIR}/bin:$PATH"
% glibtoolize --force --copy
% sh bootstrap

% ./configure \
- --enable-appbundle \
- --with-wx=/usr/local/${TARGET_DIR} \
- --with-wx-version=${TARGET_INC} \
- --with-wx-config=wx-config \
- --with-pgsql=/usr/local/pgsql \
- --with-pgsql-include=/usr/local/pgsql/include \
- --disable-debug

a first change i note is that i now (iirc, again?) *must* explicitly add:

--disable-static \

to the above config. without it, configure dies at:

Warning: No config found to match:
/usr/local/wxwidgets_262_dyn/bin/wx-config --static=yes --libs base
- --unicode=yes --debug=no --version=2.6
in /usr/local/wxwidgets_262_dyn/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.

checking wxWidgets in /usr/local/wxwidgets_262_dyn... failed
configure: error: Your wxWidgets installation cannot support pgAdmin in
the selected configuration. This may be because it was configured
without the --enable-unicode option, or the combination of
dynamic/static linking and debug/non-debug libraries selected did not
match any installed wxWidgets libraries.

that said/done, ./configure completes w/o error:

=========================================================
PostgreSQL directory: /usr/local/pgsql
PostgreSQL pg_config binary: /usr/local/pgsql/bin/pg_config
PostgreSQL version: PostgreSQL 8.1.2

wxWidgets directory: /usr/local/wxwidgets_262_dyn
wxWidgets wx-config binary:
/usr/local/wxwidgets_262_dyn/bin/wx-config
wxWidgets version: wxWidgets 2.6.2

Building a debug version of pgAdmin: No
Statically linking pgAdmin: No
Building a Mac OS X appbundle: Yes
=========================================================

as do:

% make all
% make all-recursive

, resulting in a launchable binary.app:

% ls -al
/usr/ports/pgadmin3/${TARGET_INSTALL}/pgAdmin3.app/Contents/MacOS/pgAdmin3

-rwxr-xr-x 1 root admin 4865988 Feb 26 19:43
/usr/ports/pgadmin3/pgadmin3dyn_wxdyn_262/pgAdmin3.app/Contents/MacOS/pgAdmin3

% otool -L
/usr/ports/pgadmin3/${TARGET_INSTALL}/pgAdmin3.app/Contents/MacOS/pgAdmin3

/System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
(compatibility version 1.0.0, current version 63.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
(compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
(compatibility version 2.0.0, current version 128.0.0)
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
(compatibility version 1.0.0, current version 11.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 88.1.5)
/usr/local/lib/libgettextlib-0.14.5.dylib (compatibility version 0.0.0,
current version 0.0.0)
/usr/local/lib/libintl.3.dylib (compatibility version 8.0.0, current
version 8.3.0)
/usr/local/lib/libpng.3.dylib (compatibility version 4.0.0, current
version 4.0.0)
/usr/local/lib/libtiff.3.dylib (compatibility version 11.0.0, current
version 11.4.0)
/usr/local/lib/libjpeg.62.dylib (compatibility version 63.0.0, current
version 63.0.0)
/usr/local/lib/libpcre.0.dylib (compatibility version 1.0.0, current
version 1.1.0)
/usr/local/lib/libexpat.1.dylib (compatibility version 7.0.0, current
version 7.0.0)
/usr/local/lib/libSDL-1.2.0.dylib (compatibility version 8.0.0, current
version 8.2.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
version 7.3.0)
/usr/local/wxwidgets_262_dyn/lib/libwx_macu_stc-2.6.0.dylib
(compatibility version 2.0.0, current version 2.0.0)
/usr/local/wxwidgets_262_dyn/lib/libwx_macu_ogl-2.6.0.dylib
(compatibility version 2.0.0, current version 2.0.0)
/usr/local/wxwidgets_262_dyn/lib/libwx_macu-2.6.0.dylib (compatibility
version 2.0.0, current version 2.0.0)
/usr/local/lib/libxml2.2.dylib (compatibility version 9.0.0, current
version 9.23.0)
/usr/local/lib/libz.1.dylib (compatibility version 1.0.0, current
version 1.2.3)
/usr/lib/libiconv.2.dylib (compatibility version 5.0.0, current version
5.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)
/usr/local/pgsql/lib/libpq.4.dylib (compatibility version 4.0.0,
current version 4.1.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version
1.0.0)

where, checking for:

% locate libxml/xmlwriter.h
/usr/include/libxml2/libxml/xmlwriter.h
/usr/local/include/libxml2/libxml/xmlwriter.h
/Developer/SDKs/MacOSX10.3.9.sdk/usr/include/libxml2/libxml/xmlwriter.h
/Developer/SDKs/MacOSX10.4.0.sdk/usr/include/libxml2/libxml/xmlwriter.h
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/libxml2/libxml/xmlwriter.h

and noting above, it looks like the correct libxml2 is linked/bundled.

also, i note in response to:

> Maybe someone else here still running Panther can confirm that
/usr/include/libxml2/libxml/xmlwriter.h

that xmlwriter.h is in, at least, the 10.3.9 sdk; as for 'stock' panther
- -- i can't say :-|

dunno if that helps anyone ...

cheers,

richard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREDAAYFAkQCeHIACgkQlffdvTZxCMZz2ACeP+IXnwZSSRx27HKRlvQQaHep
OmAAnjJbQxyXhVooqFYUsiJViLgkZU2H
=PXXp
-----END PGP SIGNATURE-----

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Edward Di Geronimo Jr. 2006-02-27 08:00:00 Query results in grid, new patch
Previous Message Chris Campbell 2006-02-27 03:13:25 Re: Buildproblems on OSX 10.3 due to libxml2