Re: Adding dependencies

Karl Heyes <[email protected]>
Newsgroups gmane.comp.audio.icecast.devel
Message-ID <[email protected]>
On 30/11/10 18:24, Nicholas Young wrote:
> I'm tinkering with adding another C program into my fork of icecast. I've
> installed the libraries on my machine, as well as added both the .c and .h
> files for the library to my icecast source folder. However, while running
> make, I get:
>
> ad.a httpp/.libs/libicehttpp.a log/.libs/libicelog.a avl/.libs/libiceavl.a
> timing/.libs/libicetiming.a -lssl -lcrypto -lcurl -lvorbis -logg -lxslt
> -lxml2 -lz -lpthread -licucore -lm
> Undefined symbols:
>    "_redisConnect", referenced from:
>        _logging_playlist in logging.o
>    "_redisFree", referenced from:
>        _logging_playlist in logging.o
>    "_freeReplyObject", referenced from:
>        _logging_playlist in logging.o
>    "_redisCommand", referenced from:
>        _logging_playlist in logging.o
> ld: symbol(s) not found
>
> I see the various -l statements above, and wonder how to get my library
> included in that list. I'm just attempting to understand how you've
> configured the build process for Icecast.

Welcome to the wonderful world of autofoo, the configure.in and m4/* 
macros are what you want to look at.  You will want to add to the XIPH_* 
variables then re-run autogen.sh

karl.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.