Opened 15 years ago

Closed 15 years ago

#20318 closed defect (worksforme)

apr-util configuration fail due to iconv

Reported by: Ink_Blot2001@… Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port:

Description

Unable to build apr-util 1.3.7. All deps are up to date and I tried uninstalling the previous version and installing fresh after the first fail.

--->  Configuring apr-util
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_devel_apr-util/work/apr-util-1.3.7" && ./configure --prefix=/opt/local --with-apr=/opt/local/bin/apr-1-config --with-expat=/opt/local --with-iconv=/opt/local --with-berkeley-db=/opt/local/include:/opt/local/lib/db46 --without-mysql --without-pgsql --with-sqlite3=/opt/local " returned error 1
Command output: checking for sqlite3.h... yes
checking for sqlite3_open in -lsqlite3... yes
  adding "-I/opt/local/include" to APRUTIL_PRIV_INCLUDES
checking sqlite.h usability... no
checking sqlite.h presence... no
checking for sqlite.h... no
checking sybdb.h usability... no
checking sybdb.h presence... no
checking for sybdb.h... no
checking freetds/sybdb.h usability... no
checking freetds/sybdb.h presence... no
checking for freetds/sybdb.h... no
checking for odbc_config... no
checking sql.h usability... yes
checking sql.h presence... yes
checking for sql.h... yes
checking for SQLAllocHandle in -lodbc... no
checking odbc/sql.h usability... no
checking odbc/sql.h presence... no
checking for odbc/sql.h... no
  adding "-L/opt/local/lib" to APRUTIL_LDFLAGS
checking Expat 1.95.x... yes
  setting APRUTIL_EXPORT_LIBS to "-lexpat"
  setting APRUTIL_LIBS to "-lexpat"
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
  setting LIBS to "-liconv"
  nulling LIBS
configure: error: iconv support requested, but not found

Error: Status 1 encountered during processing.

Also, I am running under Darwin Kernel 8.11.0 with MacPorts base 1.710.

Change History (6)

comment:1 Changed 15 years ago by danielluke (Daniel J. Luke)

Owner: changed from macports-tickets@… to dluke@…
Status: newassigned

Do you have /opt/local/lib/libiconv.dylib ?

the configure is finding your iconv.h but not the dylib (and apr-util has a dependency on the libiconv port).

comment:2 Changed 15 years ago by Ink_Blot2001@…

I'm starting to think this could be a libiconv 1.13_0 issue. I just tried building glib2 and got errors pertaining to libiconv as well.

comment:3 in reply to:  1 Changed 15 years ago by Ink_Blot2001@…

Replying to dluke@…:

Do you have /opt/local/lib/libiconv.dylib ?

the configure is finding your iconv.h but not the dylib (and apr-util has a dependency on the libiconv port).

Yes, /opt/local/lib/libiconv.dylib is present.

comment:4 Changed 15 years ago by danielluke (Daniel J. Luke)

I have libiconv 1.13 installed and apr-util builds fine for me.

Maybe try removing and re-installing libiconv?

sudo port -f uninstall libiconv && sudo port clean --all libiconv && sudo port install libiconv

comment:5 Changed 15 years ago by Ink_Blot2001@…

OK, that worked. Thanks dluke.

comment:6 Changed 15 years ago by danielluke (Daniel J. Luke)

Resolution: worksforme
Status: assignedclosed
Note: See TracTickets for help on using tickets.