Summary: | ASTERISK-16752: [patch] failure to cross compile asterisk-1.8.0-rc3 | ||
Reporter: | Ovidiu Sas (ovi) | Labels: | |
Date Opened: | 2010-10-13 13:37:12 | Date Closed: | 2010-10-14 13:46:55 |
Priority: | Blocker | Regression? | No |
Status: | Closed/Complete | Components: | Core/Portability |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 18137_localelist_warning.patch ( 1) 18137_test_framework_ifdef.patch ( 2) config.log.gz | |
Description: | While cross compiling asterisk 1.8 for several embedded platforms I ran into this issue: [CC] stdtime/localtime.c -> stdtime/localtime.o stdtime/localtime.c: In function `notify_daemon': stdtime/localtime.c:557: error: `test' undeclared (first use in this function) stdtime/localtime.c:557: error: (Each undeclared identifier is reported only once stdtime/localtime.c:557: error: for each function it appears in.) stdtime/localtime.c: At top level: stdtime/localtime.c:253: warning: `localelist' defined but not used make[2]: *** [stdtime/localtime.o] Error 1 make[1]: *** [main] Error 2 make[1]: Leaving directory `/home/osas/slug/optware/nslu2/builds/asterisk18' make: *** [/home/osas/slug/optware/nslu2/builds/asterisk18/.built] Error 2 ****** ADDITIONAL INFORMATION ****** Here's the build process. Because the xlocale is not properly detected in this special build environment, we disable it: sed -i -e "s/AC_CHECK_HEADERS..xlocale\.h../###########/" configure.ac After that, we bootstrap: ./bootstrap.sh And finally we run configure: AR=/home/osas/slug/optware/nslu2/toolchain/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/bin/armv5b-softfloat-linux-ar AS=/home/osas/slug/optware/nslu2/toolchain/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/bin/armv5b-softfloat-linux-as LD=/home/osas/slug/optware/nslu2/toolchain/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/bin/armv5b-softfloat-linux-ld NM=/home/osas/slug/optware/nslu2/toolchain/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/bin/armv5b-softfloat-linux-nm CC=/home/osas/slug/optware/nslu2/toolchain/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/bin/armv5b-softfloat-linux-gcc CPP="/home/osas/slug/optware/nslu2/toolchain/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/bin/armv5b-softfloat-linux-gcc -E" GCC=/home/osas/slug/optware/nslu2/toolchain/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/bin/armv5b-softfloat-linux-gcc CXX=/home/osas/slug/optware/nslu2/toolchain/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/bin/armv5b-softfloat-linux-g++ RANLIB=/home/osas/slug/optware/nslu2/toolchain/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/bin/armv5b-softfloat-linux-ranlib STRIP=/home/osas/slug/optware/nslu2/toolchain/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/bin/armv5b-softfloat-linux-strip \ CPPFLAGS="-O2 -pipe -I/home/osas/slug/optware/nslu2/staging/opt/include -fsigned-char -I/home/osas/slug/optware/nslu2/staging/opt/include" \ LDFLAGS=" -L/home/osas/slug/optware/nslu2/staging/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link,/home/osas/slug/optware/nslu2/staging/opt/lib " \ PATH="/home/osas/slug/optware/nslu2/staging/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games" \ ./configure \ --build=i386-pc-linux-gnu \ --host=armv5b-softfloat-linux \ --target=armv5b-softfloat-linux \ --prefix=/opt \ --disable-nls \ --disable-static \ --with-ssl=/home/osas/slug/optware/nslu2/staging/opt \ --with-z=/home/osas/slug/optware/nslu2/staging/opt \ --with-termcap=/home/osas/slug/optware/nslu2/staging/opt \ --with-curl=/home/osas/slug/optware/nslu2/staging/opt \ --with-ogg=/home/osas/slug/optware/nslu2/staging/opt \ --with-popt=/home/osas/slug/optware/nslu2/staging/opt \ --without-tds \ --with-sqlite=/home/osas/slug/optware/nslu2/staging/opt \ --with-radius=/home/osas/slug/optware/nslu2/staging/opt \ --with-odbc=/home/osas/slug/optware/nslu2/staging/opt \ --with-netsnmp=/home/osas/slug/optware/nslu2/staging/opt \ --with-ltdl=/home/osas/slug/optware/nslu2/staging/opt \ --without-postgres \ --without-sqlite3 \ --without-pwlib \ --without-usb \ --without-lua \ --without-imap \ --without-dahdi \ --without-sdl \ --with-gnutls=/home/osas/slug/optware/nslu2/staging/opt --with-iksemel=/home/osas/slug/optware/nslu2/staging/opt --without-gtk2 --with-x11=/home/osas/slug/optware/nslu2/staging/opt \ --localstatedir=/opt/var \ --sysconfdir=/opt/etc \ ) And then we run make: ASTCFLAGS="-fsigned-char -I/home/osas/slug/optware/nslu2/staging/opt/include" \ ASTLDFLAGS=" -L/home/osas/slug/optware/nslu2/staging/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link,/home/osas/slug/optware/nslu2/staging/opt/lib " \ make -C /home/osas/slug/optware/nslu2/builds/asterisk18 The config.log will be attached soon. | ||
Comments: | By: Leif Madsen (lmadsen) 2010-10-13 13:49:01 Assigned to tilghman. This is a blocker for 1.8.0. Hopefully we can get this fixed by Friday when 1.8.0-RC4 will be created. By: Walter Doekes (wdoekes) 2010-10-13 13:50:24 Looks like a missing ifdef only. See patch. By: Ovidiu Sas (ovi) 2010-10-13 13:58:58 The patch looks good. The build completes with the provided patch. By: Russell Bryant (russell) 2010-10-14 13:10:08 ship it By: Digium Subversion (svnbot) 2010-10-14 13:45:03 Repository: asterisk Revision: 291791 U branches/1.8/main/stdtime/localtime.c ------------------------------------------------------------------------ r291791 | jpeeler | 2010-10-14 13:45:03 -0500 (Thu, 14 Oct 2010) | 10 lines Add missing ifdefs for test framework and new locale code. (closes issue ASTERISK-16752) Reported by: ovi Patches: 18137_test_framework_ifdef.patch uploaded by wdoekes (license 717) 18137_localelist_warning.patch uploaded by wdoekes (license 717) Tested by: ovi ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=291791 By: Digium Subversion (svnbot) 2010-10-14 13:46:55 Repository: asterisk Revision: 291792 _U trunk/ U trunk/main/stdtime/localtime.c ------------------------------------------------------------------------ r291792 | jpeeler | 2010-10-14 13:46:54 -0500 (Thu, 14 Oct 2010) | 16 lines Merged revisions 291791 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r291791 | jpeeler | 2010-10-14 13:45:02 -0500 (Thu, 14 Oct 2010) | 10 lines Add missing ifdefs for test framework and new locale code. (closes issue ASTERISK-16752) Reported by: ovi Patches: 18137_test_framework_ifdef.patch uploaded by wdoekes (license 717) 18137_localelist_warning.patch uploaded by wdoekes (license 717) Tested by: ovi ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=291792 |