Re: [Opalvoip-user] Problem building OPAL on Solaris
Brought to you by:
csoutheren,
rjongbloed
From: Robert J. <ro...@vo...> - 2008-09-12 09:15:21
|
Can you put patches in the Source Forge patch manager? Robert Jongbloed OPAL/OpenH323/PTLib Architect and Co-founder. From: Bruce McAlister [mailto:bru...@bl...] Sent: Friday, 12 September 2008 7:10 PM To: 'Robert Jongbloed'; opa...@li... Subject: RE: [Opalvoip-user] Problem building OPAL on Solaris Excellent, thanks, that did the trick. Everything appears to have compiled now. On a side note, I had to change the generated makefiles for all the plugins to have the link options as follows: LDSO = -Bdynamic -G The original line looked as follows: LDSO = -Bdynamic -G -h For some reason when the "-h" link option is in place the link fails with a "file not found" From: opa...@li... [mailto:opa...@li...] On Behalf Of Robert Jongbloed Sent: 12 September 2008 01:50 To: opa...@li... Subject: Re: [Opalvoip-user] Problem building OPAL on Solaris Instead of: #ifdef __sun__ #include <libgen.h> #endif Make it #ifdef __sun__ extern "C" const char * basename(const char *); #endif and see if that helps. Ideally it should be done in the configure script, but I have neither time nor a Solaris system to do it. Robert Jongbloed OPAL/OpenH323/PTLib Architect and Co-founder. From: opa...@li... [mailto:opa...@li...] On Behalf Of Bruce McAlister Sent: Friday, 12 September 2008 3:00 AM To: opa...@li... Subject: [Opalvoip-user] Problem building OPAL on Solaris Hi All, I am having an issue building OPAL 3.0.2 on Solaris x86. PTLIB 2.0.2 compiles successfully. I have setup JDSCBD 1.7.0 rc1 as the development environment. When running configure and make opt I end up with the following error: make[2]: Entering directory `/export/home/vzhsxn/build/opal_3.0.2/plugins/video/H.261-vic' g++ -I../../../include -I../common -fPIC -g -O2 -c h261vic.cxx -o obj/h261vic.o g++ -I../../../include -I../common -fPIC -g -O2 -c ../common/trace.cxx -o obj/trace.o ../common/trace.cxx: In static member function `static std::ostream& Trace::Start(const char*, int)': ../common/trace.cxx:60: error: `basename' undeclared (first use this function) ../common/trace.cxx:60: error: (Each undeclared identifier is reported only once for each function it appears in.) make[2]: *** [obj/trace.o] Error 1 make[2]: Leaving directory `/export/home/vzhsxn/build/opal_3.0.2/plugins/video/H.261-vic' make[1]: *** [opt] Error 2 make[1]: Leaving directory `/export/home/vzhsxn/build/opal_3.0.2/plugins' make: *** [opt] Error 2 If I modify the following line in trace.cxx from: #ifdef __MACOSX__ #include <libgen.h> #endif To: #ifdef __sun__ #include <libgen.h> #endif Then I get past the above error message. However I am now faced with the following error: g++ -I../../../include -I../common -fPIC -g -O2 -c ../common/trace.cxx -o obj/trace.o ../common/trace.cxx: In static member function `static std::ostream& Trace::Start(const char*, int)': ../common/trace.cxx:61: error: invalid conversion from `const char*' to `char*' ../common/trace.cxx:61: error: initializing argument 1 of `char* basename(char*)' Any tips/suggestions are much appreciated. Thanks Bruce |