[Asterisk-video] Asterisk crash when using amr (app_h324m.so)

Thomas Frieling thomas.frieling at viif.de
Thu Jun 28 07:19:22 CDT 2007


Hi!

Just modified libh324m/src/Makefile like this:
CXXFLAGS = -DP_USE_PRAGMA -g3 -D_REENTRANT -O0 -Wall -fPIC -DPIC -DPTRACING
CFLAGS = -DP_USE_PRAGMA -g3 -D_REENTRANT -O0 -Wall -fPIC -DPIC -DPTRACING

This seems to work, but I get the following error:

[...]
g++ -o libh324m.so -shared h324m.o src/libh324m.a `ptlib-config --libs`
gcc -o test test.o -lh324m -L./ -lh324m
.//libh324m.so: undefined reference to `PASN_OctetString::SetValue(PString const&)'
.//libh324m.so: undefined reference to `PASN_ConstrainedString::operator PString const&() const'
.//libh324m.so: undefined reference to `PASN_Object::GetTag() const'
.//libh324m.so: undefined reference to `PASN_Integer::GetValue() const'
.//libh324m.so: undefined reference to `PASN_Integer::operator unsigned int() const'
.//libh324m.so: undefined reference to `PASN_Boolean::operator int() const'
.//libh324m.so: undefined reference to `PASN_OctetString::SetValue(char const*)'
.//libh324m.so: undefined reference to `PASN_Array::Append(PASN_Object*)'
.//libh324m.so: undefined reference to `PASN_Boolean::operator=(int)'
.//libh324m.so: undefined reference to `PASN_Object::SetConstraints(PASN_Object::ConstraintType, int, PASN_Object::MaximumValueTag)'
.//libh324m.so: undefined reference to `PASN_Integer::SetValue(unsigned int)'
.//libh324m.so: undefined reference to `PASN_Object::SetConstraints(PASN_Object::ConstraintType, int, unsigned int)'
collect2: ld returned 1 exit status
make: *** [test] Fehler 1

libh324m.so is created anyway but makes asterisk crash like that:
asterisk: symbol lookup error: /usr/local/lib/libh324m.so: undefined symbol: _ZN11PASN_Object14SetConstraintsENS_14ConstraintTypeEij


Any ideas?
Thomas



-----Ursprüngliche Nachricht-----
Von: asterisk-video-bounces at lists.digium.com im Auftrag von Patrick
Gesendet: Do 28.06.2007 13:06
An: Development discussion of video media support in Asterisk
Betreff: Re: [Asterisk-video] Asterisk crash when using amr (app_h324m.so)
 
Hi Thomas,

On Thu, 2007-06-28 at 11:49 +0200, Thomas Frieling wrote:
> Hi Sergio!
> 
> I tried to recompile libh324m with those flags by adding ${CFLAGS} to
> the Makefile. I am not sure though if this is the way to do it...
> Anyway gdb doesn't say anything else than it did before. Maybe I am
> not using gdb correctly?
> 
> -------- Makefile now looks like this: -------------
> CFLAGS=-g -O0

Perhaps try:
CFLAGS=-g3 -pg -O0

I'm saw these settings in the Makefile of another app so I'm just
guessing here. During compilation you should see these settings in the
output so keep an eye on that. And you probably don't want to strip the
binaries (if you were even doing that at all).

Regards,
Patrick


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-video mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-video

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4394 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-video/attachments/20070628/47d0acba/attachment.bin 


More information about the asterisk-video mailing list