[Serdev] Integration of 0.9.0 -- minor bugs

Alex Rootham alex at blueslice.com
Fri Mar 25 18:30:51 UTC 2005


Hi All,

I'm currently integrating ser0.9.0 on a Solaris platform, and I've run
into some minor issues.

sip_router/Makefile.defs -- I found I had to get rid of the O2 and E flags.
@@ -720,8 +731,11 @@
                                        MOD_LDFLAGS=-G $(LDFLAGS)
else
                                        #gcc and maybe others, on
solaris, with gnu ld
-                                       LDFLAGS+=-Wl,-O2 -Wl,-E $(PROFILE)
-                                       MOD_LDFLAGS=-shared $(LDFLAGS)
+                                       #LDFLAGS+=-Wl,-O2 -Wl,-E $(PROFILE)
+                                       LDFLAGS+=$(PROFILE)
+                                       # Blueslice modification
+                                       #MOD_LDFLAGS=-shared $(LDFLAGS)
+                                       MOD_LDFLAGS=-G $(LDFLAGS)
endif
else
                        #gcc and maybe others
-----------------------------------------
sip_router/modules/pa/Makefile: The default installation-point for
libxml on Solaris means that I had to add DEFS and LIBS:
@@ -10,7 +10,7 @@
NAME=pa.so
LIBS=

-DEFS+=-I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2
-LIBS+=-I/usr/include/lib  -L$(LOCALBASE)/lib -L/usr/pkg/lib -lxml2
+DEFS+=-I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2
-I/usr/local/libxml/include/libxml2
+LIBS+=-I/usr/include/lib  -L$(LOCALBASE)/lib -L/usr/pkg/lib
-L/usr/local/libxml/sparc/lib -lxml2

include ../../Makefile.modules

-------------------------------

sip_router/modules/mysql/Makefile:  I found I had to add "-lm" to the
LIBS target, or the dynamic-loading of mysql.so would fail when I start ser.

-------------------------
serctl (or sip_router/scripts/sc): My #!/bin/sh had trouble even
starting because of line 921: attempt=$(($attempt + 1))
I changed it to: attempt=`expr $attempt + 1`

-------------------------------
serctl (or sip_router/scripts/sc): Adding a user caused awk-problems
I changed the awk to remove the space between the F and the @ characters:
        SERUSER=`echo $1|awk -F@ '{print $1}'`
        SERDOMAIN=`echo $1|awk -F@ '{print $2}'`

-----------------

That's all for now.  I have not submitted these fixes to cvs, because I
don't feel that I am familiar enough with SER yet.  If any of these
issues reflect oddities or misconfiguration of my environment, or if you
have any suggestions for a better way to fix these issues, please let me
know.

Thanks,
Alex Rootham
System Designer
Blueslice Networks






More information about the Serdev mailing list