On Tue, 2011-09-20 at 10:13 -0400, Rafaël Carré wrote:
> On Mon, 2011-09-19 at 18:07 -0400, John A. Sullivan III wrote:
> > On Mon, 2011-09-19 at 17:19 -0400, Rafaël Carré wrote:
> > > On Mon, 2011-09-19 at 16:56 -0400, John A. Sullivan III wrote:
> > > > On Mon, 2011-09-19 at 16:43 -0400, John A. Sullivan III wrote:
> > > > > On Mon, 2011-09-19 at 15:33 -0400, Rafaël Carré wrote:
> > > > > > On Mon, 2011-09-19 at 14:58 -0400, John A. Sullivan III wrote:
> > > > > >
> > > > > > > Argh! Build failure. Any idea what is causing this:
> > > > > > >
> > > > > > > make[5]: Entering directory
> > > > > > > `/home/jsullivan/Downloads/sflphone-0.9.14/sflphone-0.9.14/daemon/src/audio/codecs'
> > > > > > > CXX audiocodecfactory.lo
> > > > > > > CXX audiocodec.lo
> > > > > > > CXXLD libcodecdescriptor.la
> > > > > > > CXX libcodec_ulaw_so-ulaw.o
> > > > > > > CXXLD libcodec_ulaw.so
> > > > > > > ./.libs/libcodecdescriptor.a(audiocodec.o): In function
> > > > > > > `sfl::AudioCodec::init(unsigned char, unsigned int)':
> > > > > > > /home/jsullivan/Downloads/sflphone-0.9.14/sflphone-0.9.14/daemon/src/audio/codecs/audiocodec.cpp:56:
> > > > > > > undefined reference to
> > > > > > > `ost::DynamicPayloadFormat::DynamicPayloadFormat(unsigned char,
> > > > > > > unsigned int)'
> > > > > > > collect2: ld returned 1 exit status
> > > > > >
> > > > > > mismatching CCRTP version?
> > > > > >
> > > > > > I have libccrtp (1.8.0-1.2) on Ubuntu which seems to come straight
> > > > > > from
> > > > > > Debian
> > > > > >
> > > > > > and at line 247 of /usr/include/ccrtp/formats.h :
> > > > > > DynamicPayloadFormat(PayloadType type, uint32
> > > > > > rate);
> > > > > >
> > > > > >
> > > > > Argh!! Squeeze provides libccrtp 1.7.1 - John
> > >
> > > Ubuntu Lucid, Maverick and Natty also provide 1.7.1 :
> > > http://packages.ubuntu.com/search?keywords=libccrtp
> > >
> > > So it should work already
> > >
> > > You should try installing the Ubuntu .debs on your debian
> > >
> > Well, I'm thoroughly confused but, then again, I am not a developer.
> > Here is the ccrtp format.h file section:
> > class __EXPORT DynamicPayloadFormat : public PayloadFormat
> > {
> > public:
> > /**
> > * Constructor. Builds a dynamic payload format from payload
> > * numeric identifier and the corresponding RTP clock rate.
> > *
> > * @param type payload type numeric identifier.
> > * @param rate RTP clock rate.
> > **/
> > DynamicPayloadFormat(PayloadType type, uint32 rate);
> > };
> > and previously:
> > typedef uint8 PayloadType;
> >
> > Here is the invocation from audiocodec.cpp:
> > void AudioCodec::init (uint8 payloadType, uint32 clockRate)
> > {
> > _payloadFormat = new ost::DynamicPayloadFormat (payloadType,
> > clockRate);
> >
> > Looks like a perfect match to me. Why does the linker think it is
> > trying to pass an unsigned char instead of a uint8?
>
> An uint8 is just a typedef for an unsigned char, they are equivalent.
>
> Also the failing part is the linking, not the compilation.
>
> That means the problem present in your ccrtp library (function not
> compiled in), not in your ccrtp headers.
>
>
> Again, did you try installing Ubuntu .debs ?
>
I thought your advice about installing the Ubuntu deb to at least try
and narrow down the problem wise so I did install the Lucid libccrtp -
libccrtp1-1.7-0_1.7.1-2build1_i386.deb. Strangely, I got the same
results after wiping out the build directory and starting over from
scratch:
make[5]: Entering directory
`/home/jsullivan/Downloads/sflphone-0.9.14/sflphone-0.9.14/daemon/src/audio/codecs'
CXX audiocodecfactory.lo
CXX audiocodec.lo
CXXLD libcodecdescriptor.la
CXX libcodec_ulaw_so-ulaw.o
CXXLD libcodec_ulaw.so
./.libs/libcodecdescriptor.a(audiocodec.o): In function
`sfl::AudioCodec::init(unsigned char, unsigned int)':
/home/jsullivan/Downloads/sflphone-0.9.14/sflphone-0.9.14/daemon/src/audio/codecs/audiocodec.cpp:56:
undefined reference to
`ost::DynamicPayloadFormat::DynamicPayloadFormat(unsigned char, unsigned int)'
collect2: ld returned 1 exit status
make[5]: *** [libcodec_ulaw.so] Error 1
I also downloaded the Squeeze source to see if I could find the problem,
thinking maybe it was some configure option. But it looks fine, too :(
in src/rtppkt.cpp, I see:
DynamicPayloadFormat::DynamicPayloadFormat(PayloadType type, uint32
rate)
{
PayloadFormat::setPayloadType(type);
setRTPClockRate(rate);
}
Where do we look next? Thanks - John
_______________________________________________
SFLphone mailing list
[email protected]
http://lists.savoirfairelinux.net/mailman/listinfo/sflphone