#910: macport/ installing on OS X
---------------------+------------------------------------------------------
Reporter: coke | Owner:
Type: todo | Status: new
Priority: normal | Milestone:
Component: install | Version: trunk
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
---------------------+------------------------------------------------------
Comment(by doughera):
Replying to [comment:4 coke]:
> Note that the build of installable_parrot is failing with:
>
> {_u_charFromName_4_0 referenced from libparrot expected to be defined in
/opt/local/lib/libicuuc.40.dylib}
>
> but there is no /opt/local/lib/libicuuc.40.dylib, only
>
{{{
> $ ls /opt/local/lib/libicuuc*
> /opt/local/lib/libicuuc.42.1.dylib /opt/local/lib/libicuuc.dylib
> /opt/local/lib/libicuuc.42.dylib
}}}
>
> (here's the failing build command:)
>
{{{
> c++ -o installable_parrot \
> src/main.o src/install_config.o \
> -L/Users/coke/bird/lib -L/Users/coke/research/parrot/blib/lib
-lparrot -lpth
> read -lm -L/opt/local/lib -licuuc -licudata -lpthread -lm -lm
-lgmp -lrea
> dline -lintl -undefined dynamic_lookup -L/opt/local/lib
}}}
The problem is likely the {{{ -L/Users/coke/bird/lib }}} near the
beginning of the link command. I suspect that came from the invalid
setting {{{ rpath='-L' }}} currently in the hints file. If you edit
config/init/hints/darwin.pm and change that to {{{ rpath='' }}} it should
remove that flag. Of course it might break something else earlier in the
build. I don't know how Mac OS binaries are supposed to find shared
libraries in non-standard locations.
I actually thought that Mac OS now supported -rpath (based on the links in
TT #344), but I have no way of testing any of that myself. If it does,
then copying the Linux setting of {{{ rpath = '-Wl,-rpath=' }}} might
work. If it doesn't, then somebody somewhere has to figure out the
equivalent set of flags to tell the runtime loader where to find shared
libraries.
> So, this is YA variant on the "installed parrot conflicts with building
parrot" problem.
Yes, it's TT #344 revisted.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/910#comment:5>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets