Skip site navigation (1) Skip section navigation (2)

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: (view raw or whole thread)
Lists: pgadmin-hackers
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
% xml2-config --version
% xml2-config --libs
	-L/usr/local/lib -lxml2 -L/usr/local/lib -lz -lpthread -liconv -lm


% 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/

	# Checks for libraries.

% 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:
	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

% ls -al

	-rwxr-xr-x 1 root admin 4865988 Feb 26 19:43

% otool -L

(compatibility version 1.0.0, current version 63.0.0)
(compatibility version 1.0.0, current version 275.0.0)
(compatibility version 2.0.0, current version 128.0.0)
(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)
(compatibility version 2.0.0, current version 2.0.0)
(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
	/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

where, checking for:

% locate 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

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 ...


Version: GnuPG v1.4.2.1 (Darwin)
Comment: Using GnuPG with Mozilla -


In response to


pgadmin-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group