Giter Club home page Giter Club logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
Any update on this bug? Is there anything I can do about it? Is there something 
I am doing wrong? Thank you!

Original comment by [email protected] on 29 Dec 2011 at 12:54

from asterisk-chan-dongle.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
I have the same problem with svn revision 24 and openwrt revision 29985.
I changed asterisk to 1.8.8.0.. but also the same error


make[4]: Entering directory 
`/home/goran/development/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/ch
an_dongle-1.1.r10'
mips-openwrt-linux-uclibc-gcc -Os -pipe -mips32r2 -mtune=mips32r2 
-fno-caller-saves -fhonour-copts -msoft-float -DLOW_MEMORY -D_XOPEN_SOURCE=600 
-I/home/goran/development/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32
/usr/include 
-I/home/goran/development/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32
/include 
-I/home/goran/development/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.5-li
naro_uClibc-0.9.32/usr/include 
-I/home/goran/development/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.5-li
naro_uClibc-0.9.32/include 
-I/home/goran/development/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32
/usr/lib/libiconv-full/include 
-I/home/goran/development/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/a
sterisk-1.8.8.0/include -DHAVE_CONFIG_H -I. -fPIC  -o app.o -c app.c
In file included from 
/home/goran/development/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.5-lina
ro_uClibc-0.9.32/lib/gcc/mips-openwrt-linux-uclibc/4.5.4/../../../../mips-openwr
t-linux-uclibc/sys-include/bits/types.h:31:0,
                 from /home/goran/development/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.5-linaro_uClibc-0.9.32/lib/gcc/mips-openwrt-linux-uclibc/4.5.4/../../../../mips-openwrt-linux-uclibc/sys-include/unistd.h:188,
                 from /home/goran/development/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/asterisk-1.8.8.0/include/asterisk/compat.h:37,
                 from /home/goran/development/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/asterisk-1.8.8.0/include/asterisk.h:27,
                 from app.c:17:
/home/goran/development/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.5-lina
ro_uClibc-0.9.32/lib/gcc/mips-openwrt-linux-uclibc/4.5.4/include/stddef.h:211:23
: error: duplicate 'unsigned'
/home/goran/development/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.5-lina
ro_uClibc-0.9.32/lib/gcc/mips-openwrt-linux-uclibc/4.5.4/include/stddef.h:211:23
: error: two or more data types in declaration specifiers
In file included from 
/home/goran/development/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/ast
erisk-1.8.8.0/include/asterisk/compat.h:37:0,
                 from /home/goran/development/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/asterisk-1.8.8.0/include/asterisk.h:27,
                 from app.c:17:
/home/goran/development/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.5-lina
ro_uClibc-0.9.32/lib/gcc/mips-openwrt-linux-uclibc/4.5.4/../../../../mips-openwr
t-linux-uclibc/sys-include/unistd.h:191:19: error: two or more data types in 
declaration specifiers
make[4]: *** [app.o] Error 1
make[4]: Leaving directory 
`/home/goran/development/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/ch
an_dongle-1.1.r10'
make[3]: *** 
[/home/goran/development/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/ch
an_dongle-1.1.r10/.built] Error 2
make[3]: Leaving directory 
`/home/goran/development/openwrt/chan-dongle/asterisk18-chan-dongle'
make[2]: *** [package/asterisk18-chan-dongle/compile] Error 2
make[2]: Leaving directory `/home/goran/development/openwrt/trunk'
make[1]: *** 
[/home/goran/development/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/
stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/goran/development/openwrt/trunk'
make: *** [world] Error 2

Original comment by [email protected] on 5 Feb 2012 at 3:42

from asterisk-chan-dongle.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
[deleted comment]

from asterisk-chan-dongle.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
Added ifndef in:

/home/goran/development/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.5-lina
ro_uClibc-0.9.32/lib/gcc/mips-openwrt-linux-uclibc/4.5.4/../../../../mips-openwr
t-linux-uclibc/sys-include/unistd.h
#ifndef __ssize_t_defined
#ifndef CHANDONGLE
typedef __ssize_t ssize_t;
# define __ssize_t_defined
#endif
#endif



/home/goran/development/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.5-lina
ro_uClibc-0.9.32/lib/gcc/mips-openwrt-linux-uclibc/4.5.4/include/stddef.h
#ifndef CHANDONGLE
typedef __SIZE_TYPE__ size_t;
#endif



/home/goran/development/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.5-lina
ro_uClibc-0.9.32/lib/gcc/mips-openwrt-linux-uclibc/4.5.4/../../../../mips-openwr
t-linux-uclibc/sys-include/sys/types.h
#ifndef CHANDONGLE
#ifndef __ssize_t_defined
typedef __ssize_t ssize_t;
#endif
#endif


And added -DCHANDONGLE in package/asterisk18-chan-dongle/Makefile:
MAKE_ARGS:= \
        CC="$(TARGET_CC)" \
        LD="$(TARGET_CC)" \
        CFLAGS="$(TARGET_CFLAGS) -DLOW_MEMORY -DCHANDONGLE -D_XOPEN_SOURCE=600 $(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/lib/libiconv-full/include -I$(BUILD_DIR)/$(WITH_ASTERISK)/include -DHAVE_CONFIG_H -I. -fPIC" \
        LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/libiconv-full/lib -liconv" \
        DESTDIR="$(PKG_INSTALL_DIR)/usr/lib/asterisk/modules"


Added ifndef CHANMOBILE

Original comment by [email protected] on 5 Feb 2012 at 10:13

from asterisk-chan-dongle.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
If someone correct those includes.. it would be better to correct there.. This 
way up there was the fastest for me.

Original comment by [email protected] on 6 Feb 2012 at 9:38

from asterisk-chan-dongle.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
I'm using Ubuntu x64 and have the same problem. In my case config.log shows 
"fatal error: bits/predefs.h: No such file or directory" while checking for 
size_t, and "apt-get install libc6-dev-i386" solve the problem.

Original comment by [email protected] on 3 Feb 2013 at 3:01

from asterisk-chan-dongle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.