Amit, thanks for trying out pjsip on Open Solaris. It was long long time ago when I last tried pjsip on SunOS (long before by Ultra 10 got buried in snow two winters ago :) On the contrary, I don't think issues no 7 are serious at all. In fact they're probably non issues. The SO_RCVBUF error is just an info and pjsip would operate normally without that (except performance would decrease if you flood it with traffic). The pj_ioqueue_recvfrom error probably happens if we use more than one worker threads, and when a socket is signaled, all threads would be awaken at the same time, but of course only one would successfully execute recvfrom. Though the fact that pjsip couldn't get the error code (most likely it would be EWOULDBLOCK) probably needs some investigating, as it suggests that the "errno" variable is not set. Re: step no 6, do you need to run "/usr/ccs/bin/ar -ts " on every library, or just pjmedia-codec? I just created http://trac.pjsip.org/repos/ticket/993 to integrate your suggestions into the build systems. Thanks! Benny On Wed, Nov 18, 2009 at 4:28 PM, Amit Kasturi <amit.kasturi at yahoo.in> wrote: > Hi, > I'm evaluating pjsip on Open Solaris Release 2009.6. I'm facing an > issue and need help on that. I coudln't find help for all the issues i faced > while compiling pjsip on Open solaris, so listing out the steps. The exact > issue i'm facing is described in 7th step, rest steps 1 to 6 are related to > compiling. > > 1. install gmake and gcc with the help of package manager. (System > > Administration > Package Manager) > > 2.extract -xjvf pjproject-1.4.5.tar.bz2 > > 3. cd pjproject-1.4.5 > > 4. ./configure --disable-sound --disable-oss --disable-small-filter > --disable-large-filter --disable-speex-aec --disable-g711-codec > --disable-l16-codec --disable-gsm-codec --disable-g722-codec > --disable-g7221-codec --disable-speex-codec --disable-ilbc-codec > --disable-ssl > > 5. gmake dep > > 6. gmake > > It stopped at following error: > > ../src/pj/ioqueue_select.c: In function `pj_ioqueue_register_sock': > ../src/pj/ioqueue_select.c:366: error: `FIONBIO' undeclared (first use in > this function) > > Solution: > Include #include <sys/filio.h> in ./pjlib/src/pj/ioqueue_select.c > > Again , gmake. Now it stopped at following error: > > ../src/pj/ip_helper_generic.c: In function `if_enum_by_af': > ../src/pj/ip_helper_generic.c:257: error: `SIOCGIFFLAGS' undeclared (first > use in this function) > > Solution: > Include #include <sys/sockio.h> in ./pjlib/src/pj/ip_helper_generic.c > > Again, gmake. Now it stopped at following error: > > ld: elf error: file ../lib/libpjmedia-codec-i386-pc-solaris2.11.a: > elf_getarsym > ld: fatal: file processing errors. No output written to > ../bin/pjmedia-test-i386-pc-solaris2.11 > collect2: ld returned 1 exit status > > > Solution: > /usr/ccs/bin/ar -ts ./pjmedia/lib/libpjmedia-codec-i386-pc-solaris2.11.a > > No error after that , it compiled perfectcly :D . > > 7. To tryout the sample call , i ran pjsip-perf in server mode. On the > other end , i used sipp in different host. > ./pjsip-apps/bin/samples/i386-pc-solaris2.11/pjsip-perf > > I got the following Error when pjsip-perf started: > > 13:39:53.241 sip_transport_ Error setting SO_RCVBUF: No buffer space > available [120132] > 13:39:53.241 sip_transport_ Error setting SO_SNDBUF: No buffer space > available [120132] > > Reason for this error was, in sip_transport_upd.c : pj_sock_setsockopt() > was faling to set Receive buffer size. > > Solution: > Increase the UDP Send and Receive buffer size by following command: > ndd -set /dev/udp udp_max_buf 25165824 > > Tried again : > ./pjsip-apps/bin/samples/i386-pc-solaris2.11/pjsip-perf > > pjsip-perf started without any error. However, when I send pumped > calls from sipp, pjsip-perf showed the following warnings repeatedly: > > 13:01:13.341 udp80e05d0 Warning: pj_ioqueue_recvfrom: [err > -1] Unknown error -1 > > It is generated from ioqueue_common_abc.c : pj_ioqueue_recvfrom() > : pj_sock_recvfrom. > > It's not showing the reason of failure (Unknown error). Still all > sip calls are successful. Could anyone please explain what exactly the cause > of this Warning? Don't want any surprises later due to this . > > thanks, > Amit Kasturi > > ------------------------------ > The INTERNET now has a personality. YOURS! See your Yahoo! Homepage<http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/> > . > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -- Best regards, Benny -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091124/ab99598a/attachment.html>