< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [sipX-dev] Build Problem on Solaris 10


On Wed, 2007-04-11 at 23:21 -0400, Heiko Glessmann wrote:
> I am trying to build sipx on Solaris 10 but run into the linker error below.
> When I look at libsipXport.so it looks like
> OsTimer::OsTimer(OsMsgQShared*,int) is actually defined there.
> 
> I get the linker problem both during 'make check" of sipXport itself and
> during make of basicImClient in sipXtack.
> 
> Undefined                       first referenced
> symbol                             in file
> OsTimer::OsTimer(OsMsgQShared*,int) ../../src/.libs/libsipXtack.so

The function is declared in OsTimer.h and defined in OsTimer.cpp.
OsMsgQ is a typedef for OsMsgQShared in OsMsgQ.h.

It's possible that the Solaris C compiler is getting confused by the
fact that the definition puts the "const" qualifier on the second
argument, but that qualifier is not considered part of the function type
in C++ and shouldn't affect anything.

Make sure that libsipXport.so is really included in your link.  If it
is, use nm to dump out the functions defined in that library, you should
see the definition of that constructor.

Dale