ncurses breaks gawk trying to build py27-wxpython
Ryan Schmidt
ryandesign at macports.org
Tue Mar 20 18:53:39 PDT 2012
On Mar 20, 2012, at 20:42, Dave Curtis wrote:
>
> On Mar 20, 2012, at 5:14 PM, Ryan Schmidt wrote:
>
>>
>> On Mar 20, 2012, at 18:37, Ryan Schmidt wrote:
>>
>>> On Mar 20, 2012, at 12:39, Dave Curtis wrote:
>>>
>>>> david-curtiss-macbook:wxtab dave$ gawk
>>>> dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
>>>> Referenced from: /opt/local/bin/gawk
>>>> Reason: Incompatible library version: gawk requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
>>>> Trace/BPT trap
>>>
>>> The short answer is that you need to rebuild libiconv +universal, or follow the Migration instructions if applicable. This has come up so often on the list and in the issue tracker since Snow Leopard's release three years ago that it's time for me to write a ProblemHotlist entry for it. I'll reply here again when I've written it.
>>
>> https://trac.macports.org/wiki/ProblemHotlist#libiconv-version
>>
> Hmmm... OK, I'll give that a shot. To be honest, I'm not sure of the migration state of this system. I *think* it is correct(*), but this symptom would indicate something is a bit off kilter. I'll try the recommended procedure and see if that helps.
You can use the "file" command to see what architecture things are actually built for.
/usr/bin/file /opt/local/lib/libiconv.2.dylib
/usr/bin/file /opt/local/bin/gawk
On my system, with both ports built universal, I get this output:
$ /usr/bin/file /opt/local/lib/libiconv.2.dylib
/opt/local/lib/libiconv.2.dylib: Mach-O universal binary with 2 architectures
/opt/local/lib/libiconv.2.dylib (for architecture i386): Mach-O dynamically linked shared library i386
/opt/local/lib/libiconv.2.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
$ /usr/bin/file /opt/local/bin/gawk
/opt/local/bin/gawk: Mach-O universal binary with 2 architectures
/opt/local/bin/gawk (for architecture x86_64): Mach-O 64-bit executable x86_64
/opt/local/bin/gawk (for architecture i386): Mach-O executable i386
What about you?
More information about the macports-users
mailing list