Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260522 - php-5.2.8-r2 doesn't compile with USE="iconv" or USE="xmlrpc" on OS X
Summary: php-5.2.8-r2 doesn't compile with USE="iconv" or USE="xmlrpc" on OS X
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-27 15:50 UTC by nietonfir
Modified: 2009-03-06 23:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes iconv Path. (php5_2-sapi_iconv.eclass.patch,963 bytes, patch)
2009-03-03 17:03 UTC, nietonfir
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nietonfir 2009-02-27 15:50:43 UTC
Php-5.2.8-r2 doesn't compile with USE="iconv" or USE="xmlrpc" (as xmlrpc has virtual/libiconv as dependency).

It seems to be only OS X related and has something to do with the apple linker (if I read everything right).

Reproducible: Always

Steps to Reproduce:
1. USE="iconv" emerge php
Actual Results:  
Undefined symbols:
  "_iconv_open", referenced from:
      __php_iconv_strlen in iconv.o
      _php_iconv_string in iconv.o
      __php_iconv_strpos in iconv.o
      _zif_iconv_substr in iconv.o
      _zif_iconv_substr in iconv.o
      __php_iconv_mime_decode in iconv.o
      __php_iconv_mime_decode in iconv.o
      _zif_iconv_mime_encode in iconv.o
      _zif_iconv_mime_encode in iconv.o
      _php_iconv_stream_filter_factory_create in iconv.o
  "_iconv_close", referenced from:
      __php_iconv_strlen in iconv.o
      _php_iconv_string in iconv.o
      _php_iconv_string in iconv.o
      __php_iconv_strpos in iconv.o
      _zif_iconv_substr in iconv.o
      _zif_iconv_substr in iconv.o
      __php_iconv_mime_decode in iconv.o
      __php_iconv_mime_decode in iconv.o
      __php_iconv_mime_decode in iconv.o
      _php_iconv_stream_filter_dtor in iconv.o
      _zif_iconv_mime_encode in iconv.o
      _zif_iconv_mime_encode in iconv.o
ld: symbol(s) not found
collect2: ld gab 1 als Ende-Status zurück
make: *** [libs/libphp5.bundle] Fehler 1


Expected Results:  
Emerge normal. ;)

By changing the following line in php5_2-sapi.eclass:
phpconfutils_extension_without	"iconv"			"iconv"			0

to:
phpconfutils_extension_with	"iconv"			"iconv"			1

it compiles fine but only if all modules get compiled as shared/external with USE="sharedext". I don't know if that's a good enough solution and if that would break something in the main tree.
Comment 1 nietonfir 2009-03-03 17:03:13 UTC
Created attachment 183779 [details, diff]
Fixes iconv Path.

Thx to Heiko on #gentoo-prefix!
Comment 2 nietonfir 2009-03-03 17:24:18 UTC
(In reply to comment #1)
> Created an attachment (id=183779) [edit]
> Fixes iconv Path.
> 
> Thx to Heiko on #gentoo-prefix!
> 
To be more correct: The patch adds "${EPREFIX}/usr" for explicit iconv selection. Thx Heiko! ;)
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-03-06 23:23:12 UTC
done, thx