mainXnee - Support: sr #110470, [Patch] Linking issue with cnee...

 
 

sr #110470: [Patch] Linking issue with cnee and libxnee.

Submitter:  orbea <orbea>
Submitted:  Thu 01 Apr 2021 10:03:16 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 01 Apr 2021 10:03:58 PM UTC, comment #1: 

Also please see this downstream issue.

https://bugs.gentoo.org/778962

orbea <orbea>
Thu 01 Apr 2021 10:03:16 PM UTC, original submission:  

When building xnee with slibtool (https://dev.midipix.org/cross/slibtool) it fails.

make[3]: Entering directory '/tmp/xnee-3.19/cnee/src'
./cnee --manpage > cnee.1
/tmp/xnee-3.19/cnee/src/.libs/cnee: error while loading shared libraries: libxnee.so.0: cannot open shared object file: No such file or directory

This is because the build links libxnee with '-L${LIBXNEE_DIR}/src -lxnee' instead of ${LIBXNEE_DIR}/src/libxnee.la.

The canonical way of linking internal libraries is with the libtool archive (.la) file while '-L' and '-l' should be reserved for external dependencies.

I attached the patch to fix the fatal error, but I can improve other parts of the build system too if desired.

orbea <orbea>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #51176:  xnee-slibtool.patch added by orbea (759B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by orbea (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.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-04-01 orbea Attached File- Added xnee-slibtool.patch, #51176

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code