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

configure fails on Alpine Linux 3.3.3 (kernel 4.4.6) #37

Open
ntwrkguru opened this issue May 8, 2016 · 3 comments
Open

configure fails on Alpine Linux 3.3.3 (kernel 4.4.6) #37

ntwrkguru opened this issue May 8, 2016 · 3 comments

Comments

@ntwrkguru
Copy link

Trying to install JUISE on Alpine Linux and running into issues running configure for libslax.

Error:

checking whether ln -s works... yes
../configure: ./configure.lineno: line 4201: syntax error: unexpected word (expecting ")")

Line 4201-4202:

# Must be after AC_PROG_AR   
LT_INIT(dlopen shared)

Alpine uses the musl libc (as opposed to glibc), which may be to blame. Additionally, it appears that Alpine uses PaX, which may also be causing issues with the build. Any pointers on a workaround?

@philshafer
Copy link
Contributor

Bizarre! A linux variant that even configure can’t handle.

Have you tried running “autoreconf” directly, if you’re using a release tarball? Having the local tools build your configure script might help. If that doesn’t help, please send in the output of “sh -x ../configure”.

Thanks,
Phil

On May 7, 2016, at 8:56 PM, ntwrkguru [email protected] wrote:

Trying to install JUISE on Alpine Linux and running into issues running configure for libslax.

Error:

checking whether ln -s works... yes
../configure: ./configure.lineno: line 4201: syntax error: unexpected word (expecting ")")
Line 4201-4202:

Must be after AC_PROG_AR

LT_INIT(dlopen shared)
Alpine uses the musl libc (as opposed to glibc), which may be to blame. Additionally, it appears that Alpine uses PaX, which may also be causing issues with the build. Any pointers on a workaround?


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub #37

@ntwrkguru
Copy link
Author

Thanks. Made some progress. Looks like I failed to install libtool, but that didn't resolve it. Running autoreconf yielded:

/libslax/build # autoreconf ../configure.ac 
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${  <-- HERE ([^ \t=:+{}]+)}/ at /usr/bin/automake line 3936.
configure.ac:37: error: required file './config.guess' not found
configure.ac:37:   'automake --add-missing' can install 'config.guess'
configure.ac:37: error: required file './config.sub' not found
configure.ac:37:   'automake --add-missing' can install 'config.sub'
configure.ac:37: error: required file './ltmain.sh' not found
autoreconf: automake failed with exit status: 1

Following the guidance, I ran automake --add-missing in the same dir as configure.ac and that yielded:

/libslax # automake --add-missing
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/bin/automake line 3936.
configure.ac:37: installing './config.guess'
configure.ac:37: installing './config.sub'
configure.ac:37: error: required file './ltmain.sh' not found

sh -x configure.ac yields this:

/libslax # sh -x configure.ac 
configure.ac: line 14: syntax error: unexpected word (expecting ")")

The offending line:

AC_PREREQ(2.2)

Autoconf seems to meet the requirements:

/libslax # autoconf --version
autoconf (GNU Autoconf) 2.69

Running automake directly fails as well:

/libslax/build # autoreconf ../configure.ac 
../configure.ac:16: error: possibly undefined macro: AM_INIT_AUTOMAKE
  If this token and others are legitimate, please use m4_pattern_allow.
  See the Autoconf documentation.
../configure.ac:31: error: possibly undefined macro: AM_PROG_AR
../configure.ac:80: error: possibly undefined macro: AM_CONDITIONAL

UGH!

So, I found a similar issue on the Gentoo forums which recommended to run libtoolize --force, which I did, and follow up with aclocal, autoheader, and automake --force-missing --add-missing. I was then able to successfully configure, only to be disappointed during the make.

make[2]: Entering directory '/libslax/build/libslax'
  CC       slaxdebugger.lo
../../libslax/slaxdebugger.c:69:23: fatal error: sys/queue.h: No such file or directory

I'm still working on it as well...just figured I'd post an update.

@philshafer
Copy link
Contributor

There are specific instructions in bin/setup.sh that are detailed in the wiki:

https://github.com/Juniper/juise/wiki/Building#building-juise https://github.com/Juniper/juise/wiki/Building#building-juise

Try those and see if that solves it.

Thanks,
Phil

On May 8, 2016, at 10:26 PM, ntwrkguru [email protected] wrote:

Thanks. Made some progress. Looks like I failed to install libtool, but that didn't resolve it. Running autoreconf yielded:

/libslax/build # autoreconf ../configure.ac
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/bin/automake line 3936.
configure.ac:37: error: required file './config.guess' not found
configure.ac:37: 'automake --add-missing' can install 'config.guess'
configure.ac:37: error: required file './config.sub' not found
configure.ac:37: 'automake --add-missing' can install 'config.sub'
configure.ac:37: error: required file './ltmain.sh' not found
autoreconf: automake failed with exit status: 1
Following the guidance, I ran automake --add-missing in the same dir as configure.ac and that yielded:

/libslax # automake --add-missing
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/bin/automake line 3936.
configure.ac:37: installing './config.guess'
configure.ac:37: installing './config.sub'
configure.ac:37: error: required file './ltmain.sh' not found
sh -x configure.ac yields this:

/libslax # sh -x configure.ac
configure.ac: line 14: syntax error: unexpected word (expecting ")")
The offending line:

AC_PREREQ(2.2)

Autoconf seems to meet the requirements:

/libslax # autoconf --version
autoconf (GNU Autoconf) 2.69
Running automake directly fails as well:

/libslax/build # autoreconf ../configure.ac
../configure.ac:16: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
../configure.ac:31: error: possibly undefined macro: AM_PROG_AR
../configure.ac:80: error: possibly undefined macro: AM_CONDITIONAL
UGH!

So, I found a similar issue on the Gentoo forums which recommended to run libtoolize --force, which I did, and follow up with aclocal, autoheader, and automake --force-missing --add-missing. I was then able to successfully configure, only to be disappointed during the make.

make[2]: Entering directory '/libslax/build/libslax'
CC slaxdebugger.lo
../../libslax/slaxdebugger.c:69:23: fatal error: sys/queue.h: No such file or directory
I'm still working on it as well...just figured I'd post an update.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub #37 (comment)

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

2 participants