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.
Proposed patch
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
updated patch
Pushed to git master