On Aug 5, 2009, at 6:46 PM, Michael Steinmann wrote:

Andy Spitzer wrote:
Woof!

On Sun, 13 Jul 2008 13:32:59 -0400, Frank Tarczynski <[email protected] > wrote:

As I attempt to work through this, can anyone share some pointers?

There've been past attempts to get sipX working under Solaris...but it seems that sipX just isn't Solaris friendly. Getting it compiled is possible, but then you will find that running it doesn't quite work right, as there are "linuxisms" through out. The biggest is that Linux (well, the glibc libraries used in Linux) are tolerant of this construct:

 printf("Hello, %s", NULL)

And will print "Hello, (nil)", whereas Solaris will core dump with a seg fault due to a NULL pointer dereference. I've had many a dicussion on this list, as well as on the Solaris lists, and no good conclusion has been reached. The Solaris guys rightly point out that the UNIX specs leave this behavor as undefined. They feel that core dumping forces bugs out in the open.

There is (was?) a "solaris" branch somewhere in our code base, but it is rather old and very far behind. It was an attempt to find and fix all those places where NULL might be used in a printf...but the trouble was there was no good way to keep up. New code keeps getting written, and as Linux is the main development platform, those things creep in.

My discussions on the OpenSolaris list is best summed up here:
http://article.gmane.org/gmane.os.solaris.opensolaris.devel/949/match=null+printf

The whole ugly argument is here:
http://news.gmane.org/find-root.php?group=gmane.os.solaris.opensolaris.devel&article=988

The discussion on this list can be found here:
http://article.gmane.org/gmane.comp.voip.sipx.devel/4744/ match=solaris

Perhaps Sun's new "project Indiana" is a chance to get them to change this behavior (or if they allow linking against glibc...), as it appears to be a major blocking issue in porting many Linux packages to Solaris, sipX being one of them.

For all things "solaris" on this list, look here:
http://search.gmane.org/?query=solaris&group=gmane.comp.voip.sipx.devel&TOPDOC=20

Good luck.

--Woof!


Replying to a rather old post with good news.

The printf null SEGV issue has been resolved in OpenSolaris 1002 build
119. This build did not get released, however. Build 120 should
hopefully be out in a week or so.

See Darren Moffats blog post[1] and the corresponding osol bug database
entry[2] and the PSARC[3] with all the details.

BTW, the Sun wiki[5] lists common problems and workarounds one might
encounter when porting open source apps to OpenSolaris and Solaris.

--
mike

[1] http://blogs.sun.com/darren/entry/printf_should_not_segv_when
[2] http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6724478
[3] http://arc.opensolaris.org/caselog/PSARC/2008/403/
[4] http://www.opensolaris.org/os/community/on/flag-days/116-120/
[5]
http://wikis.sun.com/display/SolarisDeveloper/Issues+When+Porting+Open+Source+Projects+to+Solaris
_______________________________________________


You may add that the current production release of OpenSolaris is SNV111b with 118 being currently evaluated for february 2010 release. The easier trick is just to link in the [email protected] library. I tried a port in 2006 but gave up after some heavy obstacles, most of which should be solvable by now and am just waiting for 2 more packages to go through the jucr approval process in OpenSolaris, so I can do a fresh port. Of course if you want to add to the effort, any help is always welcome, although my target is OpenSolaris.

cheers

Michal Bielicki
OpenSolaris Software Porters Community

Michal Bielicki
Leiter der Niederlassung
HaloKwadrat Sp. z o.o.
Niederlassung Kleinmachnow
Eingetragen im Handelsregister beim Amtsgericht Potsdam, HRB21422P
Geschaeftsfuehrer: Aleksander Wiercinski
Meiereifeld 2b, 14532 Kleinmachnow
t. +49 33203 263220
f. +49 33203 263229 sip. [email protected]
e. [email protected] | w. www.halokwadrat.de

_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to