Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

external libs look to be haphazardly chosen #287

Open
nieder opened this issue Oct 29, 2017 · 0 comments
Open

external libs look to be haphazardly chosen #287

nieder opened this issue Oct 29, 2017 · 0 comments

Comments

@nieder
Copy link

nieder commented Oct 29, 2017

This is on OS X/perl5.18.2:
Alien-sdl uses external libraries, but it seems to pick libraries inconsistently. It finds them all, but the versioning chosen is not consistent at all. This is from Alien/SDL/ConfigData.pm:

                       'ld_shared_libs' => [
                                             '/usr/lib/libpthread.dylib',
                                             '/usr/lib/libz.1.1.3.dylib',
                                             '/sw/lib/libjpeg.9.dylib',
                                             '/sw/lib/libtiff.5.dylib',
                                             '/sw/lib/libpng.dylib',
                                             '/sw/lib/libogg.0.dylib',
                                             '/sw/lib/libvorbis.0.dylib',
                                             '/sw/lib/libvorbisfile.3.dylib',
                                             '/sw/lib/libfreetype.dylib',
                                             '/sw/lib/libpangoft2-1.0.dylib',
                                             '/sw/lib/libpango-1.0.dylib',
                                             '/sw/lib/libgobject-2.0.0.dylib',
                                             '/sw/lib/libgmodule-2.0.0.dylib',
                                             '/sw/lib/libglib-2.0.0.dylib',
                                             '/sw/lib/libfontconfig.dylib',
                                             '/usr/lib/libexpat.1.5.2.dylib'
                                           ],

/sw is where I put my locally built external libraries (via Fink). Notice that some libraries get chosen with their unversioned SONAME (libpng.dylib), others get chosen with the single versioned SONAME (libtiff.5.dylib), and others use the fully versioned SONAME (libexpat.1.5.2.dylib). Unversioned and fully versioned dylibs are not guaranteed to always be present and the process should always use the versioning that matches the install_name of the dylib.
Also, the expat search is finding /usr/lib/libexpat.1.5.2.dylib, when there's a preferred /sw/lib/libexpat.1.6.5.dylib available (should be using /sw/lib/libexpat.1.dylib anyway).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant