New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #16862 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

QT4-mac cannot find iconv

Reported by: myschizobuddy@… Owned by: erickt@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: qt4-mac Cc: clubjuggler@…, mcalhoun@…
Port: qt4-mac

Description

qt4-mac version 4.4.3 cannot find the iconv library and disables iconv support

OSIX iconv auto-detection... ()
g++ -c -pipe -Os -Wall -W  -I../../../mkspecs/macx-g++ -I. -I../../../include -I. -o iconv.o iconv.cpp
g++ -headerpad_max_install_names -o iconv iconv.o     -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-mac-opensource-src-4.4.3/lib -L/opt/local/lib -liconv
Undefined symbols:
  "_iconv", referenced from:
      _main in iconv.o
  "_iconv_close", referenced from:
      _main in iconv.o
  "_iconv_open", referenced from:
      _main in iconv.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [iconv] Error 1
POSIX iconv disabled.
GNU libiconv auto-detection... ()
g++ -c -pipe -Os -Wall -W  -I../../../mkspecs/macx-g++ -I. -I../../../include -I. -o gnu-libiconv.o gnu-libiconv.cpp
gnu-libiconv.cpp: In function 'int main(int, char**)':
gnu-libiconv.cpp:13: error: invalid conversion from 'const char**' to 'char**'
gnu-libiconv.cpp:13: error:   initializing argument 2 of 'size_t iconv(void*, char**, size_t*, char**, size_t*)'
make: *** [gnu-libiconv.o] Error 1
GNU libiconv disabled.

Attachments

Portfile.diff Download (10.1 KB) - added by mcalhoun@… 3 years ago.
patch-compile.test.diff Download (449 bytes) - added by mcalhoun@… 3 years ago.

Change History

Changed 3 years ago by macsforever2000@…

  • cc clubjuggler@… added
  • owner changed from macports-tickets@… to erickt@…

Assigning to maintainers.

Changed 3 years ago by blb@…

Looks like another iconv vs. libiconv symbol error, see #13055.

Changed 3 years ago by mcalhoun@…

Attached is a proposed solution.

With any luck, it would also fix #16526, #16120, #15585.
It would partially address #16859.

Changed 3 years ago by mcalhoun@…

Changed 3 years ago by mcalhoun@…

Changed 3 years ago by mcalhoun@…

  • cc mcalhoun@… added

Cc Me!

Changed 3 years ago by mcalhoun@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in r44197.

Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.