- **status**: accepted --> review


---

** [tickets:#2298] build: Old application binaries may fail to load**

**Status:** review
**Milestone:** 5.2.FC
**Created:** Thu Feb 09, 2017 01:56 PM UTC by Anders Widell
**Last Updated:** Thu Feb 09, 2017 01:56 PM UTC
**Owner:** Anders Widell


An application binary linked with the OpenSAF AIS libraries may fail to load 
after upgrading to OpenSAF 5.2. The reason is that libopensaf_core.so.0 has 
moved from /usr/local/lib to /usr/local/lib/opensaf. This problem can happen if 
the following two conditions are met:

* The application was linked without using the -Wl,--as-needed option (and this 
option is not enabled by default by the Linux distribution used when building 
the application binary)
* The directory /usr/local/lib/opensaf is not listed in LD_LIBRARY_PATH or 
/etc/ld.so.conf

The suggested fix is to:

* Move libopensaf_core back to /usr/local/lib
* Update the documentation to mention that -Wl,--as-needed must to be used when 
linking with the OpenSAF libraries, to avoid similar problems in the future.


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to