patchCompact Disc Input and Control Library - Patches: patch #9664, Error Linking cdda-player (missing...

 
 

patch #9664: Error Linking cdda-player (missing symbol)

Submitter:  Stef <stefanbidi>
Submitted:  Tue 26 Jun 2018 10:32:09 PM UTC
   
 
Category:  cdda-player Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 26 Jun 2018 10:33:13 PM UTC, comment #1: 

Please close this, I submitted it under Patches instead of Bugs. Rookie mistake.

Stef <stefanbidi>
Tue 26 Jun 2018 10:32:09 PM UTC, original submission:  

I get the following error when building libcdio 2.0.0:
/lib/libtinfo.so.6: error adding symbols: DSO missing from command line

The error stems from the fact that the configure script does not pass -ltinfo to the linker (I can fix the error by manually adding -ltinfo to CDDA_PLAYER_LIBS). I reviewed configure.ac, and noticed that the tests for the keypad() function are actually incorrect. First, configure sets HAVE_KEYPAD to an empty value. Then, it checks for mvprintw in ncurses, which in my system returns true and sets CDDA_PLAYER_LIBS="$CDDA_PLAYER_LIBS -lncurses". After that it does AC_CHECK_LIB($LIBCURSES, keypad, [HAVE_KEYPAD=yes]), which does not have the desired side effect. In config.h I have the following:
#define HAVE_KEYPAD /**/

I believe that either the configure script needs to check for libtinfo, or something like PKG_CONFIG_MODULES should be used to find out what to link. On my system, for example, `pkg-config --libs ncurses` returns "-lncurses -ltinfo".

Stef <stefanbidi>

 

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

Attach Files:
   
   
Comment:
   

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 rocky (Updated the item)
  • -email is unavailable- added by stefanbidi (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
    2019-04-13 rocky Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code