1 (edited by ajaygargnsit 2019-04-02 07:37:35)

Topic: [SOLVED] Unable to compile v4.0.0-stable on Ubuntu-16.04 on x86_64

Hi All.

Following is my machine information :

ajay@latitude-3480:~$ uname -a
Linux latitude-3480 4.13.0-38-generic #43~16.04.1-Ubuntu SMP Wed Mar 14 17:48:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

I cloned the repository, checked out v4.0.0-stable, and then did the following :

ajay@latitude-3480:~/wolfssl$ ./autogen.sh 
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:21: installing 'build-aux/compile'
configure.ac:26: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
autoreconf: Leaving directory `.'
ajay@latitude-3480:~/wolfssl$
ajay@latitude-3480:~/wolfssl$
ajay@latitude-3480:~/wolfssl$
ajay@latitude-3480:~/wolfssl$ ./configure 
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
configure: error: cannot run /bin/bash build-aux/config.sub

If I manually try running build/aux/config.sub, following is seen :

ajay@latitude-3480:~/wolfssl$ /bin/bash build-aux/config.sub
build-aux/config.sub: line 95: syntax error near unexpected token `)'
build-aux/config.sub: line 95: `    *local*)'

What am I missing?

I have already googled, but haven't been able to solve the issue I have been hung now for 2 days.
So, will be grateful for pointers.


Thanks and Regards,
Ajay

Share

Re: [SOLVED] Unable to compile v4.0.0-stable on Ubuntu-16.04 on x86_64

Just for the record, ruby is already installed.

ajay@latitude-3480:~/wolfssl$ ruby -v
ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-linux]

Earnestly looking for pointers.


Thanks and Regards,
Ajay

Share

Re: [SOLVED] Unable to compile v4.0.0-stable on Ubuntu-16.04 on x86_64

Using the config.sub from http://git.savannah.gnu.org/gitweb/?p=c … ub;hb=HEAD solved the issue.

Share