#2608 Clean up configuration toolchain and fix DSO linking

Code_Cleanup
closed-fixed
none
5
2014-10-14
2013-02-07
No

On the latest Ubuntu 12.10, I get the following errors during build:

libtool: link: gcc -Wall -g -O2 -o .libs/gatherctl gatherctl.o ./.libs/librgather.so -lvirt -lsysfs -ldl -lpthread
/usr/bin/ld: gatherctl.o: undefined reference to symbol 'ch_release'
/usr/bin/ld: note: 'ch_release' is defined in DSO /home/msalerno/CODE/gather/.libs/libgatherutil.so.0 so try adding it to the linker command line
/home/msalerno/CODE/gather/.libs/libgatherutil.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status

I've run into this with other sblim projects as well and added some addition dependencies to address it, the attached patch cleans them up, but I understand that there may be a different approach.

Discussion

  • Tyrel Datwyler

    Tyrel Datwyler - 2013-02-07
    • summary: Conform to updated toolchain --> Clean up configuration toolchain and fix DSO linking
     
  • Tyrel Datwyler

    Tyrel Datwyler - 2013-02-07

    The following discusses the toolchain change that removed implicit DSO linking in the distros:

    http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking

    I'm attaching an updated patch the contains the already attached DSO fix as well as some clean up of the autotools configuration files.

    1.) replace deprecated AC_PROG_LIBTOOL with LT_INIT
    2.) fix over linking by setting component specific lib variables in AC_CHECK_LIB instead of allowing the default action of appending found libraries to global LIBS
    3.) remove redundant _DEPENDENCIES rules since any library listed in _LIBADD is automatically added to the dependency list

     
  • Tyrel Datwyler

    Tyrel Datwyler - 2013-02-07
    • milestone: --> Code_Cleanup
    • status: open --> pending-fixed
     
  • Tyrel Datwyler

    Tyrel Datwyler - 2013-02-07

    Pushed to git master

     
  • Dave Heller

    Dave Heller - 2014-10-14
    • status: pending-fixed --> closed-fixed
    • Component: --> none
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks