Compilation Errors on Lenny 5.0.4

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Ashwin ashwin.lists at gmail.com
Wed Mar 3 11:31:36 UTC 2010


On 03-Mar-10 2:45 PM, Holger Freyther wrote:
> On Tuesday 02 March 2010 18:53:37 Ashwin wrote:
>> On 02-Mar-10 3:12 PM, Bjarni S. Sigurðsson wrote:
>
>> Making all in src
>> make[2]: Entering directory `/root/openbsc/openbsc/src'
>> gcc -DHAVE_CONFIG_H -I. -I..  -I../include   -Wall -I/usr/local/include/
>>     -g -O2 -MT abis_rsl.o -MD -MP -MF .deps/abis_rsl.Tpo -c -o abis_rsl.o
>> abis_rsl.c
>> In file included from ../include/openbsc/gsm_data.h:59,
>>                    from abis_rsl.c:31:
>> /usr/local/include/osmocore/utils.h:8: error: redefinition of âstruct
>> value_stringâ
>
>
> You are using the latest version of libosmocore but not the one of OpenBSC.
> You will have to "git pull --rebase" OpenBSC and compile it again.
>

Did as advised. Still facing the same issue. :(

tiny:~/openbsc# git pull --rebase
remote: Counting objects: 81, done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 38 (delta 30), reused 0 (delta 0)
Unpacking objects: 100% (38/38), done.
 From git://bs11-abis.gnumonks.org/openbsc
    8b00799..474d19f  master     -> origin/master
    1ebad74..774f072  on-waves/mgcp -> origin/on-waves/mgcp
  * [new branch]      on-waves/tmp-master -> origin/on-waves/tmp-master
First, rewinding head to replay your work on top of it...
Fast-forwarded master to 474d19f5c00f6224852e28606dbe4f2e455198c0.

tiny:~/openbsc/openbsc# make clean
Making clean in tests
make[1]: Entering directory `/root/openbsc/openbsc/tests'
Making clean in sccp
make[2]: Entering directory `/root/openbsc/openbsc/tests/sccp'
test -z "sccp_test" || rm -f sccp_test
rm -f *.o
make[2]: Leaving directory `/root/openbsc/openbsc/tests/sccp'
Making clean in channel
make[2]: Entering directory `/root/openbsc/openbsc/tests/channel'
test -z "channel_test" || rm -f channel_test
rm -f *.o
make[2]: Leaving directory `/root/openbsc/openbsc/tests/channel'
Making clean in db
make[2]: Entering directory `/root/openbsc/openbsc/tests/db'
test -z "db_test" || rm -f db_test
rm -f *.o
make[2]: Leaving directory `/root/openbsc/openbsc/tests/db'
Making clean in gsm0408
make[2]: Entering directory `/root/openbsc/openbsc/tests/gsm0408'
test -z "gsm0408_test" || rm -f gsm0408_test
rm -f *.o
make[2]: Leaving directory `/root/openbsc/openbsc/tests/gsm0408'
Making clean in debug
make[2]: Entering directory `/root/openbsc/openbsc/tests/debug'
test -z "debug_test" || rm -f debug_test
rm -f *.o
make[2]: Leaving directory `/root/openbsc/openbsc/tests/debug'
Making clean in .
make[2]: Entering directory `/root/openbsc/openbsc/tests'
make[2]: Nothing to be done for `clean-am'.
make[2]: Leaving directory `/root/openbsc/openbsc/tests'
make[1]: Leaving directory `/root/openbsc/openbsc/tests'
Making clean in src
make[1]: Entering directory `/root/openbsc/openbsc/src'
test -z "libsccp.a" || rm -f libsccp.a
test -z "libbsc.a libmsc.a libvty.a" || rm -f libbsc.a libmsc.a libvty.a
test -z "bsc_hack bs11_config ipaccess-find ipaccess-config isdnsync 
bsc_mgcp ipaccess-proxy" || rm -f bsc_hack bs11_config ipaccess-find 
ipaccess-config isdnsync bsc_mgcp ipaccess-proxy
rm -f *.o
make[1]: Leaving directory `/root/openbsc/openbsc/src'
Making clean in include
make[1]: Entering directory `/root/openbsc/openbsc/include'
Making clean in sccp
make[2]: Entering directory `/root/openbsc/openbsc/include/sccp'
make[2]: Nothing to be done for `clean'.
make[2]: Leaving directory `/root/openbsc/openbsc/include/sccp'
Making clean in vty
make[2]: Entering directory `/root/openbsc/openbsc/include/vty'
make[2]: Nothing to be done for `clean'.
make[2]: Leaving directory `/root/openbsc/openbsc/include/vty'
Making clean in openbsc
make[2]: Entering directory `/root/openbsc/openbsc/include/openbsc'
make[2]: Nothing to be done for `clean'.
make[2]: Leaving directory `/root/openbsc/openbsc/include/openbsc'
Making clean in .
make[2]: Entering directory `/root/openbsc/openbsc/include'
make[2]: Nothing to be done for `clean-am'.
make[2]: Leaving directory `/root/openbsc/openbsc/include'
make[1]: Leaving directory `/root/openbsc/openbsc/include'
Making clean in .
make[1]: Entering directory `/root/openbsc/openbsc'
make[1]: Nothing to be done for `clean-am'.
make[1]: Leaving directory `/root/openbsc/openbsc'
tiny:~/openbsc/openbsc# autoreconf -i
tiny:~/openbsc/openbsc# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for library containing crypt... -lcrypt
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBOSMOCORE... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking if gcc supports -fvisibility=hidden... yes
configure: creating ./config.status
config.status: creating openbsc.pc
config.status: creating libsccp.pc
config.status: creating include/openbsc/Makefile
config.status: creating include/vty/Makefile
config.status: creating include/sccp/Makefile
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating tests/debug/Makefile
config.status: creating tests/gsm0408/Makefile
config.status: creating tests/db/Makefile
config.status: creating tests/channel/Makefile
config.status: creating tests/sccp/Makefile
config.status: creating Makefile
config.status: creating bscconfig.h
config.status: bscconfig.h is unchanged
config.status: executing depfiles commands
tiny:~/openbsc/openbsc# make
make  all-recursive
make[1]: Entering directory `/root/openbsc/openbsc'
Making all in include
make[2]: Entering directory `/root/openbsc/openbsc/include'
Making all in openbsc
make[3]: Entering directory `/root/openbsc/openbsc/include/openbsc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/openbsc/openbsc/include/openbsc'
Making all in vty
make[3]: Entering directory `/root/openbsc/openbsc/include/vty'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/openbsc/openbsc/include/vty'
Making all in sccp
make[3]: Entering directory `/root/openbsc/openbsc/include/sccp'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/openbsc/openbsc/include/sccp'
make[3]: Entering directory `/root/openbsc/openbsc/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/openbsc/openbsc/include'
make[2]: Leaving directory `/root/openbsc/openbsc/include'
Making all in src
make[2]: Entering directory `/root/openbsc/openbsc/src'
gcc -DHAVE_CONFIG_H -I. -I..  -I../include   -Wall -I/usr/local/include/ 
   -g -O2 -MT sccp.o -MD -MP -MF .deps/sccp.Tpo -c -o sccp.o `test -f 
'sccp/sccp.c' || echo './'`sccp/sccp.c
mv -f .deps/sccp.Tpo .deps/sccp.Po
rm -f libsccp.a
ar cru libsccp.a sccp.o
ranlib libsccp.a
gcc -DHAVE_CONFIG_H -I. -I..  -I../include   -Wall -I/usr/local/include/ 
   -g -O2 -MT abis_rsl.o -MD -MP -MF .deps/abis_rsl.Tpo -c -o abis_rsl.o 
abis_rsl.c
In file included from ../include/openbsc/gsm_data.h:44,
                  from abis_rsl.c:31:
../include/openbsc/gsm_04_08.h:7:28: error: osmocore/gsm48.h: No such 
file or directory
make[2]: *** [abis_rsl.o] Error 1
make[2]: Leaving directory `/root/openbsc/openbsc/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/openbsc/openbsc'
make: *** [all] Error 2
tiny:~/openbsc/openbsc# w


with Regards,
ASHWIN




More information about the OpenBSC mailing list