Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 16.04 LTS build failed #58

Open
cn0xroot opened this issue Nov 29, 2017 · 6 comments
Open

Ubuntu 16.04 LTS build failed #58

cn0xroot opened this issue Nov 29, 2017 · 6 comments

Comments

@cn0xroot
Copy link

Unknown value '' found in build_tools/menuselect-deps for NATIVE_ARCH
make[1]: Leaving directory '/home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0'
PATH=$PATH:/home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0/debian/dummyprogs /usr/bin/make OPTIMIZE=-O2 MAKECMDGOALS=dont-optimize NOISY_BUILD=yes ASTDATADIR=/usr/share/asterisk ASTVARRUNDIR=/var/run/asterisk
make[2]: Leaving directory '/home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0'
make[2]: Entering directory '/home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0/utils'
x86_64-linux-gnu-gcc -o astcanary.o -c astcanary.c -MD -MT astcanary.o -MF .astcanary.o.d -MP -pthread -I/home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0/include -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2   -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations  -g3  -DSTANDALONE -O2 
x86_64-linux-gnu-g++  -o astcanary -pthread -Wl,-Bsymbolic-functions -Wl,-z,relro -z muldefs   astcanary.o  -lc   
x86_64-linux-gnu-gcc -o astdb2sqlite3.o -c astdb2sqlite3.c -MD -MT astdb2sqlite3.o -MF .astdb2sqlite3.o.d -MP -pthread -I/home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0/include -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2   -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations  -g3  -DSTANDALONE -O2 -pthread 
In file included from /home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0/include/asterisk/autoconfig.h:7:0,
                 from /home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0/include/asterisk.h:21,
                 from astdb2sqlite3.c:30:
/home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0/include/asterisk/buildopts.h:19:26: warning: missing terminating " character
 #define AST_BUILDOPT_SUM "print mode:  md5sum <file> <file
                          ^
/home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0/include/asterisk/buildopts.h:20:1: error: unknown type name ‘check’
 check mode:  md5sum -c <checksum"
 ^
/home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0/include/asterisk/buildopts.h:20:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 check mode:  md5sum -c <checksum"
           ^
/home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0/include/asterisk/buildopts.h:20:33: warning: missing terminating " character
 check mode:  md5sum -c <checksum"
                                 ^
/home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0/include/asterisk/buildopts.h:20:11: error: missing terminating " character
 check mode:  md5sum -c <checksum"
           ^
/home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0/Makefile.rules:107: recipe for target 'astdb2sqlite3.o' failed
make[2]: *** [astdb2sqlite3.o] Error 1
make[2]: Leaving directory '/home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0/utils'
Makefile:387: recipe for target 'utils' failed
make[1]: *** [utils] Error 2
make[1]: Leaving directory '/home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0'
debian/rules:95: recipe for target 'build-arch-stamp' failed
make: *** [build-arch-stamp] Error 2
dpkg-buildpackage: 错误: debian/rules build 提供错误退出状态 2
ERROR: command failed!
# ERROR: command failed!

@fr0zenrain
Copy link

i have the same issue

@fr0zenrain
Copy link

it seems asterisk's issue, it need a line break

@aarbore
Copy link

aarbore commented Dec 24, 2018 via email

@bbaranoff
Copy link

nano /home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0/include/asterisk/buildopts.h
put
#define AST_BUILDOPT_SUM "a075fc53e4f32137505c0a42a594270e"
with the checksum checked https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13.29.1.md5
PS= No checksum for 11.7.0

@r00tb3
Copy link

r00tb3 commented Nov 23, 2019

nano /home/init3/sdr/dev-5.0/dev/asterisk/asterisk-11.7.0/include/asterisk/buildopts.h
put
#define AST_BUILDOPT_SUM "a075fc53e4f32137505c0a42a594270e"
with the checksum checked https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13.29.1.md5
PS= No checksum for 11.7.0

Does not work.

@r00tb3
Copy link

r00tb3 commented Nov 29, 2019

Fixed it after compiling OpenBTS if asterisk and asterisk-config don't compile.

run sudo apt install asterisk asterisk-config

then install the deb files from BUILDS directory and you're good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants