Hi, You have the correct version for linux. Since ping localhost works, libc is fine. >From smsbox server type (with bbox running):
telnet localhost 13001 and post the response you get. Also post configuration file. There should be no problem with kannel and gethostbyname or libc. If others fail, do the following: Edit gwlib/protected.c Goto #if HAVE_FUNC_GETHOSTBYNAME_R_6 Comment out line: // error(herr, "Error while gw_gethostbyname occurs."); and add right below it: error(herr, "Error while gw_gethostbyname occurs. herr = %d, res = %d, tmphp = %p.", herr, res, tmphp); make, make install and post smsmbox logs with error to get more info about it. And since you are at it, why don't you download and install latest cvs? 1.4.1 is ~3 years old. BR, Nikos ----- Original Message ----- From: chini lion To: Nikos Balkanas Cc: [email protected] Sent: Wednesday, August 12, 2009 6:35 PM Subject: Re: No solution worked: Error while gw_gethostbyname occurs. please help Hi Nikos, I am using localhost for bearer box and it can be reached. gethostbyname entry in gw-config.h : /* Define for various gethostbyname_r functions */ #define HAVE_FUNC_GETHOSTBYNAME_R_6 1 /* #undef HAVE_FUNC_GETHOSTBYNAME_R_5 */ /* #undef HAVE_FUNC_GETHOSTBYNAME_R_3 */ I am using: ldconfig (GNU libc) 2.3.3 Copyright (C) 2004 Free Software Foundation, Inc. SUSE LINUX Enterprise Server 9 (i586) VERSION = 9 PATCHLEVEL = 2 kannel 1.4.1 Any ideas.? Lioness ------------------------------------------------------------------------------ From: Nikos Balkanas <[email protected]> To: [email protected] Cc: [email protected] Sent: Wednesday, August 12, 2009 3:18:34 PM Subject: Re: No solution worked: Error while gw_gethostbyname occurs. please help Hi, About that, what is your bearerbox-host entry in your smsbox configuration? Can you ping it from smsbox? If not, you should declare it in /etc/hosts. If yes, what is your OS, and what is your gethostbyname entry in gw-config.h? BR, Nikos ----- Original Message ----- From: "Henri Hovi" <[email protected]> To: "Users mailing list" <[email protected]> Sent: Wednesday, August 12, 2009 3:41 PM Subject: Re: No solution worked: Error while gw_gethostbyname occurs. please help > First thing popped up to my mind, do You use FQDN for bearerbox-host > and does that host resolve correctly ? > > > -- > Henri > > On Wed, Aug 12, 2009 at 3:25 PM, lionesschi<[email protected]> wrote: >> >> Please help, been having this issue for 2 weeks and cant move any further >> despite all searches and solutions. >> >> Please i need this for work and its been delayed for so long >> >> 2009-07-31 11:51:13 [11118] [0] INFO: HTTP: Opening server at port 13000. >> 2009-07-31 11:51:13 [11118] [0] DEBUG: Started thread 1 >> (gwlib/fdset.c:poller) >> 2009-07-31 11:51:13 [11118] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps >> to pid 11118. >> 2009-07-31 11:51:13 [11118] [0] DEBUG: Started thread 2 >> (gwlib/http.c:server_thread) >> 2009-07-31 11:51:13 [11118] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) >> maps to pid 11118. >> 2009-07-31 11:51:13 [11118] [0] DEBUG: Started thread 3 >> (gw/bb_http.c:httpadmin_run) >> 2009-07-31 11:51:13 [11118] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) >> maps to pid 11118. >> 2009-07-31 11:51:13 [11118] [0] DEBUG: starting smsbox connection module >> 2009-07-31 11:51:13 [11118] [0] INFO: BOXC: 'smsbox-max-pending' not set, >> using default (100). >> 2009-07-31 11:51:13 [11118] [0] DEBUG: Started thread 4 >> (gw/bb_boxc.c:sms_to_smsboxes) >> 2009-07-31 11:51:13 [11118] [4] DEBUG: Thread 4 >> (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 11118. >> 2009-07-31 11:51:13 [11118] [0] DEBUG: Started thread 5 >> (gw/bb_boxc.c:smsboxc_run) >> 2009-07-31 11:51:13 [11118] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) >> maps to pid 11118. >> 2009-07-31 11:51:13 [11118] [0] INFO: Set SMS resend frequency to 60 >> seconds. >> 2009-07-31 11:51:13 [11118] [0] INFO: SMS resend retry set to unlimited. >> 2009-07-31 11:51:13 [11118] [0] INFO: DLR rerouting for smsc id <FAKE> >> disabled. >> 2009-07-31 11:51:13 [11118] [0] DEBUG: Started thread 6 >> (gw/smsc/smsc_fake.c:fake_listener) >> 2009-07-31 11:51:13 [11118] [6] DEBUG: Thread 6 >> (gw/smsc/smsc_fake.c:fake_listener) maps to pid 11118. >> 2009-07-31 11:51:13 [11118] [0] DEBUG: Started thread 7 >> (gw/bb_smscconn.c:sms_router) >> 2009-07-31 11:51:13 [11118] [7] DEBUG: Thread 7 >> (gw/bb_smscconn.c:sms_router) maps to pid 11118. >> 2009-07-31 11:51:13 [11118] [0] INFO: >> ---------------------------------------- >> 2009-07-31 11:51:13 [11118] [7] DEBUG: sms_router: time to sleep 30.00 secs. >> 2009-07-31 11:51:13 [11118] [0] INFO: Kannel bearerbox II version 1.4.1 >> starting >> 2009-07-31 11:51:13 [11118] [0] INFO: MAIN: Start-up done, entering mainloop >> 2009-07-31 11:51:13 [11118] [0] DEBUG: smsc_fake: start called >> 2009-07-31 11:51:13 [11118] [7] DEBUG: sms_router: gwlist_len = 0 >> >> >> >> >> 2009-07-31 11:52:05 [11279] [0] INFO: Service global sender set as '13013' >> 2009-07-31 11:52:05 [11279] [0] INFO: HTTP: Opening server at port 13013. >> 2009-07-31 11:52:05 [11279] [0] DEBUG: Started thread 1 >> (gwlib/fdset.c:poller) >> 2009-07-31 11:52:05 [11279] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps >> to pid 11279. >> 2009-07-31 11:52:05 [11279] [0] DEBUG: Started thread 2 >> (gwlib/http.c:server_thread) >> 2009-07-31 11:52:05 [11279] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) >> maps to pid 11279. >> 2009-07-31 11:52:05 [11279] [0] INFO: Set up send sms service at port 13013 >> 2009-07-31 11:52:05 [11279] [0] DEBUG: Started thread 3 >> (gw/smsbox.c:sendsms_thread) >> 2009-07-31 11:52:05 [11279] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) >> maps to pid 11279. >> 2009-07-31 11:52:05 [11279] [0] DEBUG: >> ---------------------------------------------- >> 2009-07-31 11:52:05 [11279] [0] DEBUG: Kannel smsbox version 1.4.1 starting >> 2009-07-31 11:52:05 [11279] [0] DEBUG: Started thread 4 >> (gw/smsbox.c:obey_request_thread) >> 2009-07-31 11:52:05 [11279] [4] DEBUG: Thread 4 >> (gw/smsbox.c:obey_request_thread) maps to pid 11279. >> 2009-07-31 11:52:05 [11279] [0] DEBUG: Started thread 5 >> (gw/smsbox.c:url_result_thread) >> 2009-07-31 11:52:05 [11279] [5] DEBUG: Thread 5 >> (gw/smsbox.c:url_result_thread) maps to pid 11279. >> 2009-07-31 11:52:05 [11279] [0] DEBUG: Started thread 6 >> (gw/smsbox.c:http_queue_thread) >> 2009-07-31 11:52:05 [11279] [6] DEBUG: Thread 6 >> (gw/smsbox.c:http_queue_thread) maps to pid 11279. >> 2009-07-31 11:52:05 [11279] [0] ERROR: Error while gw_gethostbyname occurs. >> 2009-07-31 11:52:05 [11279] [0] ERROR: gethostbyname failed >> 2009-07-31 11:52:05 [11279] [0] ERROR: error connecting to server >> `127.0.0.1' at port `13001' >> 2009-07-31 11:52:05 [11279] [0] PANIC: Couldn't connect to the bearerbox. >> 2009-07-31 11:52:05 [11279] [0] PANIC: sbin/smsbox(gw_panic+0xa5) >> [0x80811a5] >> 2009-07-31 11:52:05 [11279] [0] PANIC: sbin/smsbox(main+0xcb2) [0x8053742] >> 2009-07-31 11:52:05 [11279] [0] PANIC: >> /lib/tls/libc.so.6(__libc_start_main+0xe0) [0x40335260] >> 2009-07-31 11:52:05 [11279] [0] PANIC: sbin/smsbox [0x8052421] >> >> -- >> View this message in context: http://www.nabble.com/No-solution-worked%3A-Error-while-gw_gethostbyname-occurs.-please-help-tp24902902p24902902.html >> Sent from the Kannel - User mailing list archive at Nabble.com. >> >> >> > > > > -- Henri Hovi > http://www.patidure.com > >
