bugGNU Astronomy Utilities - Bugs: bug #56508, Custom library installation fails...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #56508: Custom library installation fails to link on macOS

Submitter:  Raul Infante-Sainz <infantesainz>
Submitted:  Mon 17 Jun 2019 12:38:12 PM UTC
   
 
Category:  Installation Severity:  3 - Normal
Item Group:  Crash Status:  Postponed
Privacy:  Public Assigned to:  makhlaghi
Open/Closed:  Open

Mon 17 Jun 2019 12:38:12 PM UTC, original submission:  

When the necessary libraries are not present in a standard search path, Gnuastro's configure script will also search for them in the same directory that Gnuastro will be installed.

For example this is the output line of ./configure for a custom-build CFITSIO:


checking for libcfitsio... yes
checking how to link with libcfitsio... -L/path/to/custom/install/dir/lib -lcfitsio


But since we are intentionally not adding RPATH, when trying to run the programs built in this way, on macOS we get a linking error, for example this line in 'config.log' for the test of 'getgroups':


dyld: Library not loaded: libcfitsio.8.dylib
Referenced from: /current/build/dir/gnuastro-0.9.58-5cc8/./conftest
Reason: image not found


The interesting situation is that LD_LIBRARY_PATH has not been set. But it is also not used in macOS. However, setting DYLD_LIBRARY_PATH and DYLD_FALLBACK_LIBRARY_PATH for macOS also didn't fix this problem.

Raul Infante-Sainz <infantesainz>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by infantesainz (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code