Installing Seagull Macos X

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Alexandre Mendonça: Installing Seagull on Mac OS X 10/9/11 1:43 PM

Alexandre Mendonça
Search
Installing Seagull on Mac OS X
Sunday, November 22, 2009 em 04:29 | Publicada por Alexandre Mendonça
About Me
Ahh... Nothing like a rainy Saturday to get in the mood for some tasks that were delayed for too long!
ALEXANDRE
As I was getting ready to watch the soccer match between FC Porto (my team) and Oliveirense, at Oliveirense's MENDONÇA

stadium, the referee decided that there were no conditions (really bad pitch, also due to the rain) for the game to LISBOA, PORTUGAL

happen... well, I had to do something... :-) Alexandre is a member


of the JBoss Research &
Development (R&D) core team
Installing Seagull (the network traffic generator, useful for my Diameter tests) in my iMac was one of those tasks
currently working on the open
that I could never find the time, and today it seemed a good day. I knew it was not going to be a simple task, as
source VoIP middleware project
I've tried sometime ago to install (ie, build from source) under Ubuntu or some other Linux distro and never made Mobicents, mostly involved in
it... but I didn't tried hard either, as there are RHEL/Fedora binaries I just setup a VM with it. JAIN-SLEE and Diameter
development.

OK.. So, first step was to look for someone who had already done the job... couldn't find any, seems like Mac's Alexandre graduated in Computer
Science at the New University of
are not chosen as dev machines very often. No binaries, no instructions. I'm on my own.
Lisbon.
VIEW MY COMPLETE
The INSTALL.TXT has some instructions on how to build it... the commands to run. I'll do it as I like to: run until it PROFILE
crashes and see what's wrong after. First instruction is:
Blog Archive
Edit build.conf to fit your needs (default should be OK)
! 2011 (3)
! 2010 (4)
If it says it should be OK, it should be OK. Let's move on. " 2009 (4)
" November (1)
run "./build.ksh -target clean" Installing Seagull on Mac OS X
! October (1)
! September (2)
Just to make sure everything is clean. Not a problem, no issues here. Next!
Labels
run "./build.ksh -target all"
3gpp (2)
build (1)
This is where the "fun" began. It simply failed with some generic failure message: charging (1)
community (1)
cx/dx (1)
[Begin Makefile generation phase]
diameter (10)
[Creating symbolic link: /Users/ammendonca/Desktop/seagull/bin] documentation (2)
educational (1)
[Making directory: /Users/ammendonca/Desktop/seagull/work-1.8.1]
gpl (1)
[Making directory: /Users/ammendonca/Desktop/seagull/build-1.8.1] high-availability (2)
imac (1)
make: *** [/Users/ammendonca/Desktop/seagull/work-1.8.1/project.mk] Error ims (2)
1 installation (1)
jainslee (3)
jboss (3)
[Begin compilation phase] jopr (2)
leopard (1)
make: *** No rule to make target `all'. Stop. lgpl (2)
license (1)
mac (1)
Nice, isn't it? Not much clues of what and where it is failing. After running some pieces of the make script by management (3)
itself, I got to ./work-1.8.1/compiler.mk file where it said "Compiler variable for OS DARWIN not defined". media server (1)
mobicents (8)
monitoring (2)
For adding this information, it was needed to edit the ./build.conf afterall :-). So I just copied all the (...)_LINUX open source (2)
release (2)
entries and renamed them to _DARWIN, et voilá. It worked. rhq (1)

http://ammendonca.blogspot.com/2009/11/installing-seagull-in-mac-os-x.html Page 1 of 4
Alexandre Mendonça: Installing Seagull on Mac OS X 10/9/11 1:43 PM

seagull (1)
sip servlets (1)
Next ran, next failure: source (2)
team-building (2)
[Compiling protocol-external/C_ProtocolExternal.cpp] traffic generator (1)
tutorial (2)
[Compiling protocol-text/C_MessageText.cpp] webservices (1)
cc1plus: warnings being treated as errors
My Blog List
protocol-text/C_MessageText.cpp: In member function
'C_ProtocolFrame::_msg_error_code Ivelin Ivanov
HA strategies for Mobicents
C_MessageText::EncodeWithContentLength(int)': 6 days ago
protocol-text/C_MessageText.cpp:62: warning: format '%d' expects type Aayush Bhatnagar
'int', but argument 4 has type 'size_t' Java Concurrency Utilities (Part-
02): Rejected Execution Handlers,
make[1]: *** [/Users/ammendonca/Desktop/seagull/work- Thread Factories and Runnable
Queues
1.8.1/C_MessageText.o] Error 1 1 week ago
make: *** [all_seagull] Error 2 Bartosz Baranowski
First Mobicents SS7 Gateway is
out!!!
This was a pretty simple and obvious one. Just learned how size_t should be printed, it's with %Zd instead of the 2 weeks ago
%d that is present. Made that change at line 62 of ./protocol-text/C_MessageText.cpp and that's it! Jean Deruelle
Mobicents Face To Face 2011
Meeting open to community
One step closer... but not there yet: 3 weeks ago
Eduardo Martins
[Compiling /Users/ammendonca/Desktop/seagull/work-1.8.1/y.tab.c] Mobicents SIP Presence
1.0.0.CR1 released
y.tab.c: In function 'int yyparse()':
3 months ago
y.tab.c:1349: error: 'yylex' was not declared in this scope
Amit Bhayani
y.tab.c:1587: error: 'yyerror' was not declared in this scope Mobicents SMPP 1.1.0.CR1
Released!
y.tab.c:1733: error: 'yyerror' was not declared in this scope 6 months ago
make[1]: *** [/Users/ammendonca/Desktop/seagull/work-1.8.1/y.tab.o] Error Vladimir Ralev
Bridging SIP videophones to
1
RTSP providers
make: *** [all_seagull] Error 2 7 months ago

Luis Barreiro
MOBICENTS MEETING @
Checking the referred y.tab.c I've checked it declared those methods only if some vars (__linux__ OR ANTALYA
__CYGWIN__) were declared. This should be some compiler info as my friend grep didn't found any reference 10 months ago

on the seagull sources. Googled a little bit and just found what it was and so I checked it should be __APPLE__
for my system.

A previous message showed that this y.tab.c file was being generated and, so, with the help of grep I managed
to find out that it came from ./xml-parser/xml_definition.y, at line 38. Changed

#if defined(__linux__) || defined(__CYGWIN__)


to

#if defined(__linux__) || defined(__CYGWIN__) || defined(__APPLE__)

It was almost there... got the binary seagull already linked in the ./bin folder! Good news, but still some required
lib is failing to link:

[Linking /Users/ammendonca/Desktop/seagull/build-1.8.1/libtrans_ip.so]
Undefined symbols:
"_main", referenced from:
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [/Users/ammendonca/Desktop/seagull/build-
1.8.1/libtrans_ip.so] Error 1
make: *** [all_libtrans_ip.so] Error 2

http://ammendonca.blogspot.com/2009/11/installing-seagull-in-mac-os-x.html Page 2 of 4
Alexandre Mendonça: Installing Seagull on Mac OS X 10/9/11 1:43 PM

Boooring! Thought this could be it... so much work and now some weird linkage error was going to throw it all
away. Well.. can't give up, tried some own ideas... then went googling, nothing much useful, every linkage error
seems to have this same output.

Since it referred main, started looking for it.. no sign of it in the files being linked. Hmm.. that makes sense, it's a
library, why would it need to have a main anyway? After checking the flags being used for compilation, just found
out this one for compiling a library was not present: -dynamiclib

So I added it to BUILD_LIB_LD_FLAGS_DARWIN in ./build.conf which now looked like this:

BUILD_LIB_LD_FLAGS_DARWIN="-shared -fPIC -dynamiclib"

Yeah! Everything worked just fine! The install was completed successfully and all the binaries were in the bin
folder. Hurray!

This was a lengthy journey but in the end it was fruitful.. as always, when it works ;-) Seagull v1.8.1 running on
Mac OS X 10.5.6 (Leopard)!

Notes:
1. Apple Dev Tools are required to be installed prior to any of this being made. They can be found in the
Install DVD;
2. I had to run the commands with "sudo" as it required permissions for some operations;
3. Optionally you can run "./install.ksh" to copy Seagull binaries and config files as suggested in
INSTALL.TXT and perform the remaining actions, if needed.

Please let me know if this has been useful for you and/or if something is inaccurate. This has been tested against
Seagull 1.7.0 and 1.8.1 on Mac OS X 10.5.6 (Leopard).

Posted In build, diameter, imac, leopard, mac, seagull, source, traffic generator | |

3 comentários

Yohann Says:
Posted on June 22, 2010 5:07 PM

hi,

this post has been useful for me on windows 7. In build.conf, I copied the *_CYGWIN_5_1 variables to *_CYGWIN_6_1
and it worked. I had to install mksh (make a symlink to /bin/ksh manually), bison and flex on cygwin and it worked. I did
not have those link errors.

Thanks for sharing.

yohann

javieth Says:
Posted on August 5, 2010 2:46 PM

I liked this blog because is easy understandable and very useful. for me Os X is the best software that i proved before.
I really like this kind of technology.
buy viagra

kayakjamie Says:

http://ammendonca.blogspot.com/2009/11/installing-seagull-in-mac-os-x.html Page 3 of 4
Alexandre Mendonça: Installing Seagull on Mac OS X 10/9/11 1:43 PM

Posted on July 14, 2011 12:02 AM

Your post was a big help. I am trying to install Seagull 1.8.2 on OSX 10.6.8. I ran into the following errors. You must
have a different environment such that you have the gnu libraries. I have not had any luck finding the libraries.

./octcap_include/OC/oc_config.h:47:47: error: features.h: No such file or directory


./octcap_include/OC/oc_config.h:48:20: error: endian.h: No such file or directory
make[1]: *** [/Users/jmorgan/Downloads/seagull.svn.mac/work-1.8.2/C_TCAPMsgBuildContextANSI.o] Error 1

Post a Comment

Comment as: Select profile...

Post Comment Preview

Hiperligações para esta mensagem

Create a Link

Newer Post Home Older Post

Subscribe to: Post Comments (Atom)

Alexandre Mendonça | Powered by Blogger | Entries (RSS) | Comments (RSS) | Designed by MB Web Design | XML Coded By Cahayabiru.com

http://ammendonca.blogspot.com/2009/11/installing-seagull-in-mac-os-x.html Page 4 of 4

You might also like