[BUG] Kannel crashes on MacOS X

2004-08-16 Thread Andreas Fink
Hi folks,
I've checked out the latest CVS and tried to test it.
It fails on MacOS X 10.3.5 with the following error:
2004-08-16 12:44:00 [5023] [6] DEBUG: Started thread 10 
(gw/bb_boxc.c:function)
2004-08-16 12:44:00 [5023] [10] DEBUG: Thread 10 
(gw/bb_boxc.c:function) maps to pid 5023.
2004-08-16 12:44:00 [5023] [10] INFO: Client connected from 127.0.0.1
2004-08-16 12:44:00 [5023] [10] PANIC: Couldnot initialize semaphore.
2004-08-16 12:44:00 [5023] [10] PANIC: System error 78: Function not 
implemented

Anyone having an idea what this is for? Kannel worked fine for ages on 
MacOS X so this is something new being added recently.
The error happens at the time smsbox is connecting to bearerbox (the 
crash is in bearerbox)

The error is independent of the fact if HAVE_SEMAPHORE_H is 1 or 0.
Andreas Fink
Global Networks Switzerland AG
--
Tel: +41-61-330  Fax: +41-61-334   Mobile: +41-79-2457333
Global Networks, Inc. Clarastrasse 3, 4058 Basel, Switzerland
Web: http://www.global-networks.ch/  [EMAIL PROTECTED]
--
PGP Fingerprint: B982 00B7 FFB5 0B33 BFF8  0F77 1E23 F3CA B4A3 D0B8



Re: [BUG] Kannel crashes on MacOS X

2004-08-16 Thread Alexander Malysh
Andreas Fink wrote:

Hi Andreas,

Darwin doesn't implement 'sem_init' (see gwlib/sempahore.c). On Darwin
'sem_open' should be used... as long it's not implemented, please try with
attached patch...


 Hi folks,
 
 I've checked out the latest CVS and tried to test it.
 It fails on MacOS X 10.3.5 with the following error:
 
 2004-08-16 12:44:00 [5023] [6] DEBUG: Started thread 10
 (gw/bb_boxc.c:function)
 2004-08-16 12:44:00 [5023] [10] DEBUG: Thread 10
 (gw/bb_boxc.c:function) maps to pid 5023.
 2004-08-16 12:44:00 [5023] [10] INFO: Client connected from 127.0.0.1
 2004-08-16 12:44:00 [5023] [10] PANIC: Couldnot initialize semaphore.
 2004-08-16 12:44:00 [5023] [10] PANIC: System error 78: Function not
 implemented
 
 Anyone having an idea what this is for? Kannel worked fine for ages on
 MacOS X so this is something new being added recently.
 The error happens at the time smsbox is connecting to bearerbox (the
 crash is in bearerbox)
 
 The error is independent of the fact if HAVE_SEMAPHORE_H is 1 or 0.
 
 
 Andreas Fink
 Global Networks Switzerland AG
 
 --
 Tel: +41-61-330  Fax: +41-61-334   Mobile: +41-79-2457333
 Global Networks, Inc. Clarastrasse 3, 4058 Basel, Switzerland
 Web: http://www.global-networks.ch/  [EMAIL PROTECTED]
 --
 PGP Fingerprint: B982 00B7 FFB5 0B33 BFF8  0F77 1E23 F3CA B4A3 D0B8

-- 
Thanks,
AlexIndex: gwlib/semaphore.c
===
RCS file: /home/cvs/gateway/gwlib/semaphore.c,v
retrieving revision 1.5
diff -a -u -p -r1.5 semaphore.c
--- gwlib/semaphore.c	28 Jun 2004 09:53:38 -	1.5
+++ gwlib/semaphore.c	16 Aug 2004 13:04:03 -
@@ -64,6 +64,10 @@
 
 #include gwlib/gwlib.h
 
+#ifdef DARWIN
+#undef HAVE_SEMAPHORE_H
+#endif
+
 #ifdef HAVE_SEMAPHORE_H
 #include semaphore.h
 #include errno.h


Compiling and installing Kannel

2004-08-16 Thread Jane P. Ifurung








I was compiling the Kannel
yesterday (version 1.2.1) and I got a warning that says something like Clock
skew detected. Compiling may not be completely .
I think this has something to do with the makefile or
make version of the Im using. I am running it
on Redhat Linux 9 (in kernel 686) with a GNU
make version of 3.79.1. 



I ignored the above warning and proceeded to install the Kannel at the /home/kannel
directory. I got it running but I got the same warning as above. When the
installation was finished (I thought so), I searched for the kannel.conf and smskannel.conf
using the LOCATE KANNEL.CONF and LOCATE SMSKANNEL.CONF so that I could
configure it for SMS. I got a response of /home/kannel/gateway-1.2.1//kannel.conf and /home/kannel/gateway-1.2.1//smskannel.conf, respectively. I also searched for gw using LOCATE GW and I got,
among others, smsc, bearerbox,
smsbox files in my /home/kannel/gateway-1.2.1
directory. However, when I try to go to the gateway-1.2.1 in /home/kannel in the command line, I got a response that says said
directory is not found. I then opened the /home/kannel
directory using the File Manager but theres no gateway-1.2.1 installed. All
I could see are the 3 binary files wmlsc, wmlsdasm, and seewbmp. I could
not also open those files because theres no viewer installed in my
server. Whats happening here? Why couldnt I find the
gateway-1.2.1 directory in the installation directory while in fact I could see
those when I try to locate them in the command line?



Thank you, and I hope I could get
some answers the soonest.











Mtech.com, Inc. 
The information contained in this e-mail message is company-privileged and confidential, and intended for the use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee responsible for delivery, you are hereby notified that any dissemination, distribution or copying of this communication/message is strictly prohibited. If you have mistakenly received this e-mail message, please immediately notify Mtech.com, Inc. (ACSSEG Group of Companies) by returningthe original message to Jane P. Ifurung at [EMAIL PROTECTED] 
This mail was content checked for malicious code and viruses by ACSSEG Group of Companies MailSecurity. ACSSEG Group of Companies MailSecurity provides email content checking, exploit detection and anti-virus for Exchange. Spam, viruses, dangerous attachments  offensive content are removed automatically.