at first guess, it seems to me that you shuld be using bash, not sh<br><br><div class="gmail_quote">2011/4/22 zredlined <span dir="ltr"><<a href="mailto:zredlined@gmail.com">zredlined@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

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


Sent from the baseband-devel mailing list archive at Nabble.com.<br>
<br>
</font></blockquote></div><br>