Dears,
Sorry for hijacking the thread , next time I will create new thread ...
I will try to bind using IP to avoid using SO_BINDTODEVICE ,and I will google IP_BOUND_IF as well.
Another issue is the linux command for vty which is the c function under linux called cfmakeraw which I removed from vty.c cause there is no library under SUN for that command or function to link with.
Can you please ensure that this commented line will not affect vty functionality ?
Thanks, Omar atia ------Original Message------ From: Holger Hans Peter Freyther Sender: openbsc-bounces@lists.gnumonks.org To: openbsc@lists.gnumonks.org Subject: OpenBSC on Solaris (WAS: Re: Notes from the 27C3 network) Sent: Dec 31, 2010 11:28 AM
On 12/31/2010 12:30 AM, Omar Atia wrote:
Dears ,, please help ::
Dear Omar,
please do not hijack threads, start a new one instead.
in ipaccess-find.c , can we use bind instead of setsockopt cause solaries doesn't have SO_BINDTODEVICE defined in socket.h.
For ipaccess-find is sending a broadcast packet, so it is important to select the physical interface it should be send on. For the user it is more convenient to write the interface name then to remember the ip address of this interface.
Does Solaris provide another way to bind to a specific interface? What about IP_BOUND_IF? If that is not the case we could consider doing a normal bind and bind to the interface via an ip...
z.
Sent via BlackBerry® from mtc touch
Dear Holger, I have installed libdbi as prerequisite for compiling openbsc sources and linked successfully with the objects generated now I'm trying to run
The following :
[ITSHPS]celtabs:/oradata/u01/celtabs/openbsc/openbsc/openbsc/src>./bsc_hack -c openbsc.cfg.nanobts <0012> db.c:192 Failed to create connection. DB: Failed to init database. Please check the option settings.
The program has write privileges on the directory
I'm not able to connect to DB even if I specify -l option with DB name .
The issue is that I have the following sqlite3 :
-rw-r--r-- 1 celtabs tabs 3440640 Dec 30 16:50 libdbi-0.8.4.tar drwxrwxrwx 7 celtabs tabs 1024 Dec 30 16:53 libdbi-0.8.4 -rw-r--r-- 1 celtabs tabs 10547200 Dec 30 17:14 sqlite3_3.5.9.orig.tar drwxrwxrwx 12 celtabs tabs 3584 Dec 30 17:27 sqlite3-3.5.9
I put sqlite3 path in the env . variable PATH and I'm able to login into sqlite3 , a question is it necessary to have dbd-sqlite3 or any sqlite3 could work ...see from the session :
[ITSHPS]celtabs:/oradata/u01/celtabs/openbsc>sqlite3 SQLite version 3.5.9 Enter ".help" for instructions sqlite>
Kindly advise what is the issue and if I need to download dbd-sqlite3 kindly provide link for that if you please .
Thanks and happy new year .
Omar Atia
On 12/31/2010 05:10 PM, Omar Atia wrote:
Dear Holger,
Kindly advise what is the issue and if I need to download dbd-sqlite3 kindly provide link for that if you please .
Well, there are two things to DBI. The API/framework (libdbi) and the drivers (e.g. for sqlite). You will need to have the sqlite3 driver installed when running OpenBSC.
z.
PS: You might be more productive with a GNU/Linux or *BSD system.
Dear holger,
Happy new year , I figured out that there should be libdbdsqlite3.so (drivers) under /usr/local/lib/dbd (as when I tried to connect with bsc_hack it writes faile to load driver ..., I need binary distribution for this driver .
I didn't find any binary distribution for solaries in the web site , I also tried to configure(got success with configure) and make driver lib but it is not making it didn't execute gcc and compile .
The link Is as below :
http://sourceforge.net/projects/libdbi-drivers/files/
so now I have framework installed and I have the sources for the libdbdsqlite3 but I'm not able to compile , it is writing make statements without compiling ...
do you have any suggestions?
Thanks, Omar Atia -----Original Message----- From: Holger Hans Peter Freyther [mailto:holger@freyther.de] Sent: Friday, December 31, 2010 6:19 PM To: Omar Atia Cc: openbsc@lists.gnumonks.org Subject: Re: OpenBSC on Solaris (Sqlite3)
On 12/31/2010 05:10 PM, Omar Atia wrote:
Dear Holger,
Kindly advise what is the issue and if I need to download dbd-sqlite3 kindly provide link for that if you please .
Well, there are two things to DBI. The API/framework (libdbi) and the drivers (e.g. for sqlite). You will need to have the sqlite3 driver installed when running OpenBSC.
z.
PS: You might be more productive with a GNU/Linux or *BSD system.
On 12/31/2010 11:32 PM, Omar Atia wrote:
Dear holger,
so now I have framework installed and I have the sources for the libdbdsqlite3 but I'm not able to compile , it is writing make statements without compiling ...
search for *** in the output. it is an indication of (GNU) make that there is an error. Most likely the configure script told you it couldn't find the sqlite3.h and that the SQLIte3 backend was disabled or you need to pass --enable-sqlite3 when configuring the drivers.
Is there a strong reason to use Solaris? If there is not strong reason to use it you might be more happy with a Linux System as it comes with an easy way to install all these dependencies.
Dear Holger,
I will try to make it on Linux (Home PC), but for the time being solaries is the OS available for me .
2nd I have found success in compiling sqlite3 and created 3 libs file and put them under
root@ITSHPS # cd /usr/lib/dbd or /usr/local/lib/dbd root@ITSHPS # ls -ltr total 56 -rwxr-xr-x 1 root root 31520 Jan 1 11:15 libdbdsqlite3 -rwxr-xr-x 1 root root 942 Jan 1 11:15 libdbdsqlite3.la -rw-r--r-- 1 root root 24532 Jan 1 11:15 libdbdsqlite3.a
Is it necessary to have the shared library as driver I mean is it obligatory to have libdbdsqlite3.a and libdbdsqlite3.so ?
Kindly check that folder under your linux path and let me know because I'm still getting same message when running bsc_hack.
[ITSHPS]celtabs:/oradata/u01/celtabs/openbsc/openbsc/openbsc/src>./bsc_hack -c openbsc.cfg.nanobts <0012> db.c:192 Failed to create connection. DB: Failed to init database. Please check the option settings.
Please check the below link it contains the so file ...
http://packages.debian.org/lenny/sparc/libdbd-sqlite3/filelist
Thanks,, Omar Atia
-----Original Message----- From: openbsc-bounces@lists.gnumonks.org [mailto:openbsc-bounces@lists.gnumonks.org] On Behalf Of Holger Hans Peter Freyther Sent: Saturday, January 01, 2011 12:39 AM To: openbsc@lists.gnumonks.org Subject: Re: OpenBSC on Solaris (Sqlite3)
On 12/31/2010 11:32 PM, Omar Atia wrote:
Dear holger,
so now I have framework installed and I have the sources for the libdbdsqlite3 but I'm not able to compile , it is writing make statements without compiling ...
search for *** in the output. it is an indication of (GNU) make that there is an error. Most likely the configure script told you it couldn't find the sqlite3.h and that the SQLIte3 backend was disabled or you need to pass --enable-sqlite3 when configuring the drivers.
Is there a strong reason to use Solaris? If there is not strong reason to use it you might be more happy with a Linux System as it comes with an easy way to install all these dependencies.
On 01/01/2011 10:28 AM, Omar Atia wrote:
Dear Holger,
I will try to make it on Linux (Home PC), but for the time being solaries is the OS available for me .
Sorry,
you really need to find Solaris support in some other channel (no idea where this should be).
z.
It works dear , shared library was missing during compilation :) ...sorry
-----Original Message----- From: Holger Hans Peter Freyther [mailto:holger@freyther.de] Sent: Saturday, January 01, 2011 11:58 AM To: Omar Atia Cc: openbsc@lists.gnumonks.org Subject: Re: OpenBSC on Solaris (Sqlite3)
On 01/01/2011 10:28 AM, Omar Atia wrote:
Dear Holger,
I will try to make it on Linux (Home PC), but for the time being solaries is the OS available for me .
Sorry,
you really need to find Solaris support in some other channel (no idea where this should be).
z.
Dear Holger…
Also attached screen shot for the telnet to bsc_hack as well as running the program for sure I still have to bring ipaccess nanoBTS:
Do you have documentation for sample vty commands ? how to provisin subscriber ? bulk provisining for example ? or needs a script to write them to DB in bulk mode ? another question is can we use oracle or we need to redesign the application (db.c) , I saw some commented line for mysql …
-----Original Message----- From: Omar Atia [mailto:omar.atia@its.ws] Sent: Saturday, January 01, 2011 11:57 AM To: 'Holger Hans Peter Freyther' Cc: 'openbsc@lists.gnumonks.org' Subject: RE: OpenBSC on Solaris (Sqlite3)
It works dear , shared library was missing during compilation :) ...sorry
-----Original Message-----
From: Holger Hans Peter Freyther [mailto:holger@freyther.de]
Sent: Saturday, January 01, 2011 11:58 AM
To: Omar Atia
Cc: openbsc@lists.gnumonks.org
Subject: Re: OpenBSC on Solaris (Sqlite3)
On 01/01/2011 10:28 AM, Omar Atia wrote:
Dear Holger,
I will try to make it on Linux (Home PC), but for the time being solaries is the OS available for me .
Sorry,
you really need to find Solaris support in some other channel (no idea where
this should be).
z.
On 01/01/2011 11:01 PM, Omar Atia wrote:
Dear Holger…
Do you have documentation for sample vty commands ? how to provisin subscriber ? bulk provisining for example ? or needs a script to write them to DB in bulk mode ? another question is can we use oracle or we need to redesign the application (db.c) , I saw some commented line for mysql …
Please feel free to extend the Wiki. Specially the documentation about the VTY interface of bsc_hack[1]. Right now the VTY interface only allows to manipulate users in the DB, not to create new ones.
Again please feel encouraged to write a script to create subscribers and document it in the wiki.
z.
Dear Omar and others,
please note that OpenBSC is a community-driven Open Source project.
This means, that first of all, there is no guarantee that the software does anything useful at all ;) Secondly, we have never claimed that we support operation on non-Linux systems. We know that some people are using it on *BSD, and some userse have experience running it in a Cygwin/Windows installation.
So if you want to make it work on a non-Linux system, you are on your own.
Once you have it working, please send your patches to this mailing list, we can review and eventually merge it. This is how Free Software works: You add the features you are missing, and you contribute them back to the code.
Regards, Harald
Thanks , I had success compiling them under Debian OS and even connecting to DB without any issue .
Thanks again.
Omar Atia
-----Original Message----- From: openbsc-bounces@lists.gnumonks.org [mailto:openbsc-bounces@lists.gnumonks.org] On Behalf Of Harald Welte Sent: Sunday, January 02, 2011 12:58 PM To: Omar Atia Cc: openbsc@lists.gnumonks.org Subject: Re: OpenBSC on Solaris (Sqlite3)
Dear Omar and others,
please note that OpenBSC is a community-driven Open Source project.
This means, that first of all, there is no guarantee that the software does anything useful at all ;) Secondly, we have never claimed that we support operation on non-Linux systems. We know that some people are using it on *BSD, and some userse have experience running it in a Cygwin/Windows installation.
So if you want to make it work on a non-Linux system, you are on your own.
Once you have it working, please send your patches to this mailing list, we can review and eventually merge it. This is how Free Software works: You add the features you are missing, and you contribute them back to the code.
Regards, Harald