Osmocom + Freerunner compilation issue

n0p [Luis Bernal] lbernal at gmail.com
Sat Apr 23 10:52:49 UTC 2011


at first guess, it seems to me that you shuld be using bash, not sh

2011/4/22 zredlined <zredlined at gmail.com>

> I have been trying to compile the latest osmocom-bb build target binaries
> directly on my Freerunner, which is running Om2008.8.
>
> uname -a // Linux om-gta02 2.6.28-rc4 #1 PREEMPT Mon Mar 2 19:43:22 CET
> 2009
> armv4tl unknown
>
> Unfortunately, I am getting an error during compilation in:
>
> directory // `/src/shared/libosmocore/build-target/src'
>
> GCC output:
>
> make[3]: Entering directory
> `/home/root/osmocom/src/shared/libosmocore/build-target/src'
> make: *** [shared/libosmocore/build-target/src/.libs/libosmocore.a] Error 2
> > Making all in .
> > make[4]: Entering directory
> > `/home/root/osmocom/src/shared/libosmocore/build-target/src'
> >   CC     gsmtap_util.lo
> > In file included from ../../src/gsmtap_util.c:37:
> > /usr/include/netinet/in.h:365: error: expected declaration specifiers or
> > '...' before '(' token
> -sh: syntax error: "(" unexpected
> root at om-gta02 ~/osmocom/src $ /usr/include/netinet/in.h:365: error:
> expected
> ')' before '?' token
> -sh: /usr/include/netinet/in.h:365:: not found
> root at om-gta02 ~/osmocom/src $ /usr/include/netinet/in.h:366: error:
> expected
> declaration specifiers or '...' before '(' token
> -sh: /usr/include/netinet/in.h:366:: not found
> root at om-gta02 ~/osmocom/src $ /usr/include/netinet/in.h:366: error:
> expected
> ')' before '?' token
> -sh: /usr/include/netinet/in.h:366:: not found
> root at om-gta02 ~/osmocom/src $ /usr/include/netinet/in.h:368: error:
> expected
> declaration specifiers or '...' before '(' token
> -sh: /usr/include/netinet/in.h:368:: not found
> root at om-gta02 ~/osmocom/src $ /usr/include/netinet/in.h:368: error:
> expected
> ')' before '?' token
> -sh: /usr/include/netinet/in.h:368:: not found
> root at om-gta02 ~/osmocom/src $ /usr/include/netinet/in.h:370: error:
> expected
> declaration specifiers or '...' before '(' token
> -sh: /usr/include/netinet/in.h:370:: not found
> root at om-gta02 ~/osmocom/src $ /usr/include/netinet/in.h:370: error:
> expected
> ')' before '?' token
> -sh: /usr/include/netinet/in.h:370:: not found
> root at om-gta02 ~/osmocom/src $ ../../src/gsmtap_util.c: In function
> 'gsmtap_fd_cb':
> -sh: ../../src/gsmtap_util.c:: not found
> root at om-gta02 ~/osmocom/src $ ../../src/gsmtap_util.c:155: warning:
> implicit
> declaration of function 'perror'
> -sh: ../../src/gsmtap_util.c:155:: not found
> root at om-gta02 ~/osmocom/src $ make[4]: *** [gsmtap_util.lo] Error 1
>
> A google search for "implicit declaration of function 'perror'" made it
> look
> like I am missing header declarations included in the "build-essential"
> packages, but this package does not exist for Om2008.8. I have included my
> config.log. Any ideas what I am missing?
>
> -Alex
>
> http://baseband-devel.722152.n3.nabble.com/file/n2851445/config.log
> config.log
>
>
>
>
>
>
>
> --
> View this message in context:
> http://baseband-devel.722152.n3.nabble.com/Osmocom-Freerunner-compilation-issue-tp2851445p2851445.html
> Sent from the baseband-devel mailing list archive at Nabble.com.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/baseband-devel/attachments/20110423/c13e067b/attachment.html>


More information about the baseband-devel mailing list