Opened 16 years ago

Closed 15 years ago

#15895 closed defect (worksforme)

postgresql83 - configure error - breaks build

Reported by: macports@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: jyrkiwahlstedt, ryandesign (Ryan Carsten Schmidt)
Port:

Description

After installing Xcode 2.5, uninstalling all ports, selfupdating, and synching. Attempting to build postgresql83 fails. It does not recognize that libxml2 @2.6.32_1 is greater than @2.6.23.

$ sudo port install postgresql83

[ ... skip stuff ...]

--->  Fetching libxml2
--->  Verifying checksum(s) for libxml2
--->  Extracting libxml2
--->  Configuring libxml2
--->  Building libxml2 with target all
--->  Staging libxml2 into destroot
Warning: violation by /opt/local/man
Warning: libxml2 violates the layout of the ports-filesystems!
Warning: Please fix or indicate this misbehavior (if it is intended), it will be an error in future releases!
--->  Installing libxml2 2.6.32_1
--->  Activating libxml2 2.6.32_1
--->  Cleaning libxml2

[ ... skip more stuff ...]

--->  Fetching postgresql83
--->  Verifying checksum(s) for postgresql83
--->  Extracting postgresql83
--->  Configuring postgresql83
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql83/work/postgresql-8.3.3" && ./configure --prefix=/opt/local --sysconfdir=/opt/local/etc/postgresql83 --bindir=/opt/local/lib/postgresql83/bin --libdir=/opt/local/lib/postgresql83 --includedir=/opt/local/include/postgresql83 --datadir=/opt/local/share/postgresql83 --mandir=/opt/local/share/man --without-docdir --with-includes=/opt/local/include --with-libraries=/opt/local/lib --with-openssl --with-bonjour --with-readline --with-zlib --with-libxml --with-libxslt --enable-thread-safety --enable-integer-datetimes --with-ossp-uuid " returned error 1
Command output: checking if the linker (/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld) is GNU ld... no
checking for ranlib... ranlib
checking for strip... strip
checking whether it is possible to strip libraries... no
checking for tar... /usr/bin/tar
checking whether ln -s works... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for bison... bison -y
configure: using bison (GNU Bison) 2.3
checking for flex... /usr/bin/flex
configure: using /usr/bin/flex version 2.5.4
checking for perl... /usr/bin/perl
checking for main in -lm... yes
checking for library containing setproctitle... no
checking for library containing dlopen... none required
checking for library containing socket... none required
checking for library containing shl_load... no
checking for library containing getopt_long... none required
checking for library containing crypt... none required
checking for library containing fdatasync... no
checking for library containing shmget... none required
checking for -lreadline... yes (-lreadline)
checking for inflate in -lz... yes
checking for CRYPTO_new_ex_data in -lcrypto... yes
checking for SSL_library_init in -lssl... yes
checking for xmlSaveToBuffer in -lxml2... no
configure: error: library 'xml2' (version >= 2.6.23) is required for XML support

Error: Status 1 encountered during processing.

Change History (6)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Cc: jwa@… added
Milestone: Port Bugs
Owner: changed from macports-tickets@… to mww@…

Assigning to maintainers.

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

It's odd that libxml2 is installing things into /opt/local/man for you. It correctly installs its manpages into /opt/local/share/man on my system. If libxml2 is getting that wrong for you, maybe it's not installing its libraries properly either, which might explain why postgresql83 can't find the right version.

Do you have anything in /usr/local or /sw? If so, remove or rename /usr/local and /sw, uninstall libxml2, reinstall it, and then try postgresql83 again, after cleaning its work area.

sudo port -f uninstall libxml2
sudo port clean --work libxml2
sudo port install libxml2
sudo port clean --work postgresql83
sudo port install postgresql83

comment:3 Changed 16 years ago by billitch@…

I have the same problem with gnome/planner in #15852. The linker cannot find many symbols in libxml2. I cannot reproduce this but I guess it is a bug in the libxml2 port.

comment:4 Changed 16 years ago by billitch@…

This looks much like #15891 with corrupt / duplicate installation of libxml2 and bad DYLD_LIBRARY_PATH pointing to an older version of libxml2.

comment:5 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:6 Changed 15 years ago by tobypeterson

Resolution: worksforme
Status: newclosed

No followup from reporter, and it's been over a year. Closing.

Note: See TracTickets for help on using tickets.