I could successfully compile the gprs-exp branch (I can update the wiki) but unfortunately when I run sudo ./OpenBTS the app quits without any erros. I tried to follow this fix mentioned at Common Errors but it doesn't help. Also the CLI is missing or the ./OpenBTS if it runs opens up the CLI automatically ? 

-- 
/Pavan

On Mon, Sep 24, 2012 at 1:40 PM, Pavan K <pavan42800@gmail.com> wrote:
Max,

I did a git pull and I still get the same errors. 

-- 
/Pavan

On Thu, Sep 20, 2012 at 3:49 PM, Pavan K <pavan42800@gmail.com> wrote:
Hello,

I cloned the git repo from https://github.com/chemeris/openbts-p2.8
and tried to build the gprs-work and gprs-exp branches. This was my
experience with it --

1) I installed the PCU from git clone git://git.osmocom.org/osmo-pcu
and installed it

2) I followed all the instructions in
http://openbsc.osmocom.org/trac/wiki/OpenBSC_GPRS  and installed GGSN
and SGSN

3) I added the -ldl to Makefile in sqlite3 folder and compiled it
first as it failed to build the first time
I did a make clean and
__________________________________________________________
When I tried to compile gprs-exp I am stuck with this error forever.

make[2]: Entering directory `/home/pavan4/Desktop/git1/openbts-p2.8/GSM'
  CXX    GSMConfig.lo
  CXX    GSML1FEC.lo
  CXX    GSML3Message.lo
  CXX    GSML3RRElements.lo
  CXX    GSML3RRMessages.lo
GSML3RRMessages.cpp:784:6: error: prototype for 'void
GSM::RLCMACDataBlock::parseBody(const GSM::RLCMACFrame&, size_t&)'
does not match any in class 'GSM::RLCMACDataBlock'
GSML3RRMessages.h:946:7: error: candidate is: void
GSM::RLCMACDataBlock::parseBody(const GSM::RLCMACFrame&, unsigned
int&)
GSML3RRMessages.cpp:820:6: error: prototype for 'void
GSM::RLCMACControlBlock::writeBody(GSM::RLCMACFrame&, size_t&) const'
does not match any in class 'GSM::RLCMACControlBlock'
GSML3RRMessages.h:975:7: error: candidate is: void
GSM::RLCMACControlBlock::writeBody(GSM::RLCMACFrame&, unsigned int&)
const
make[2]: *** [GSML3RRMessages.lo] Error 1
make[2]: Leaving directory `/home/pavan4/Desktop/git1/openbts-p2.8/GSM'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pavan4/Desktop/git1/openbts-p2.8'
make: *** [all] Error 2
_____________________________________________________________
When I try to compile the gprs-work branch

I was stuck here

gsm_rlcmac.cpp:4712:3: error: expected primary-expression before ',' token
gsm_rlcmac.cpp:4712:3: error: 'Exist_DTM_Support' was not declared in this scope
gsm_rlcmac.cpp:4712:3: error: 'offsetof' was not declared in this scope
gsm_rlcmac.cpp:4713:3: error: expected primary-expression before ',' token
gsm_rlcmac.cpp:4713:3: error: 'RAC' was not declared in this scope
gsm_rlcmac.cpp:4713:3: error: 'offsetof' was not declared in this scope
gsm_rlcmac.cpp:4714:3: error: expected primary-expression before ',' token
gsm_rlcmac.cpp:4714:3: error: 'MAX_LAPDm' was not declared in this scope
gsm_rlcmac.cpp:4714:3: error: 'offsetof' was not declared in this scope
gsm_rlcmac.cpp:4716:3: error: expected primary-expression before ',' token
gsm_rlcmac.cpp:4716:3: error: 'BandIndicator' was not declared in this scope
gsm_rlcmac.cpp:4716:3: error: 'offsetof' was not declared in this scope
make[2]: *** [gsm_rlcmac.lo] Error 1
make[2]: Leaving directory `/home/pavan4/Desktop/git1/openbts-p2.8/GPRS'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pavan4/Desktop/git1/openbts-p2.8'
make: *** [all] Error 2


I thought the commit missed a header in gsm_rlcmac.cpp and added
<stddef.h> and compiled again. All the scope errors vanished. But then
I got stuck here

csn1.cpp:120:20: warning: 'CSN_DESCR_type' defined but not used
[-Wunused-variable]
  CXX    gsm_rlcmac.lo
  CXX    bssgp.lo
In file included from bssgp.cpp:24:0:
bssgp.h:28:29: fatal error: openbsc/gprs_ns.h: No such file or directory
compilation terminated.
make: *** [bssgp.lo] Error 1

I could see that in my openbsc which I forked from osmocom there were
indeed no gprs_ns.h and other headers that were required. Instead they
were moved to libosmocore. I tried to edit the Makefile to point them
to the right library but I made way too many changes and finally gave
up as tehre were too many dependencies that had mismatched.
_______________________________________________________________________________

The master branch built properly with no errors.



Could you kindly tell me what am I missing?
--
/Pavan