Shadowsocks-libev: 无法编译

Created on 24 Jan 2017  ·  15Comments  ·  Source: shadowsocks/shadowsocks-libev

Please answer these questions before submitting your issue. Thanks!

What version of shadowsocks-libev are you using?

2.6.3

What operating system are you using?

fedora 24

What did you do?

编译

What did you expect to see?

What did you see instead?

运行./autogen.sh

configure.ac:258: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:258: warning: AC_LIB_PROG_LD is m4_require'd but not m4_defun'd
m4/lib-link.m4:125: AC_LIB_RPATH is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:258: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:269: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:269: the top level
configure.ac:269: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:269: the top level
configure.ac:258: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:258: warning: AC_LIB_PROG_LD is m4_require'd but not m4_defun'd
m4/lib-link.m4:125: AC_LIB_RPATH is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:258: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:269: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:269: the top level
configure.ac:269: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:269: the top level
configure.ac:258: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:161: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:258: warning: AC_LIB_PROG_LD is m4_require'd but not m4_defun'd
m4/lib-link.m4:125: AC_LIB_RPATH is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:161: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:258: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:161: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:269: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:161: PKG_CHECK_MODULES is expanded from...
configure.ac:269: the top level
configure.ac:269: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:161: PKG_CHECK_MODULES is expanded from...
configure.ac:269: the top level
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'auto'.
libtoolize: copying file 'auto/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'
configure.ac:258: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:258: warning: AC_LIB_PROG_LD is m4_require'd but not m4_defun'd
m4/lib-link.m4:125: AC_LIB_RPATH is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:258: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:269: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:269: the top level
configure.ac:269: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:269: the top level
configure.ac:258: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:258: warning: AC_LIB_PROG_LD is m4_require'd but not m4_defun'd
m4/lib-link.m4:125: AC_LIB_RPATH is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:258: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:269: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:269: the top level
configure.ac:269: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:139: PKG_CHECK_MODULES is expanded from...
configure.ac:269: the top level
configure.ac:258: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:161: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:258: warning: AC_LIB_PROG_LD is m4_require'd but not m4_defun'd
m4/lib-link.m4:125: AC_LIB_RPATH is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:161: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:258: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:161: PKG_CHECK_MODULES is expanded from...
configure.ac:258: the top level
configure.ac:269: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:161: PKG_CHECK_MODULES is expanded from...
configure.ac:269: the top level
configure.ac:269: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:161: PKG_CHECK_MODULES is expanded from...
configure.ac:269: the top level
configure:16721: error: possibly undefined macro: AC_LIB_PREPARE_PREFIX
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure:16722: error: possibly undefined macro: AC_LIB_PROG_LD
configure:16757: error: possibly undefined macro: AC_LIB_PREPARE_MULTILIB
configure:16833: error: possibly undefined macro: AC_LIB_WITH_FINAL_PREFIX
autoreconf: /usr/bin/autoconf failed with exit status: 1

What is your config in detail (with all sensitive info masked)?

Most helpful comment

On cento os 6x-86
yum groupinstall "Development Tools"

All 15 comments

arch没有这方面的问题,fedora上依赖装齐了,而且是重新clone下来的,有做submodule

install gettext
树莓派2安装之后倒是编译成功了,但另一台debian8.2报错,还在摸索中。
configure.ac:26: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:259: error: possibly undefined macro: AC_LIB_HAVE_LINKFLAGS
autoreconf: /usr/bin/autoconf failed with exit status: 1

update:
解决了,原因还是缺东西。
补全这些,如果其中的libsodium-dev是自己编译的最新版,不要安装。
apt-get install --no-install-recommends gettext build-essential autoconf libtool libssl-dev
gawk debhelper dh-systemd init-system-helpers pkg-config asciidoc xmlto apg libpcre3-dev zlib1g-dev
libev-dev libudns-dev libsodium-dev

On cento os 6x-86
yum groupinstall "Development Tools"

apt-get install --no-install-recommends pkg-config gnulib

@3xpert
on Fedora 24, the "Development Tools" can't help me.

@Sherlock-Holo Search key word "build-essential" for fedora may help.

and search build-essential
there is not build-essential

3xpert notifications@github.com于2017年1月25日周三 12:10写道:

@Sherlock-Holo https://github.com/Sherlock-Holo Search key word "
build-essential" for fedora may help.


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
https://github.com/shadowsocks/shadowsocks-libev/issues/1131#issuecomment-275014278,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJoPKULN3pN4KUaYemCRC8XdZEMoLtP7ks5rVsssgaJpZM4Lsgxx
.

dnf search build-essential

Sure, the package of "build-essential" is not for fadora. I mean that you can google search the key word with "build-essential fadora" may find the solution.

OK I will try this

3xpert notifications@github.com于2017年1月25日周三 15:11写道:

Sure, the package of "build-essential" is not for fadora. I mean that you
can google search the key word with "build-essential fadora" may find the
solution.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/shadowsocks/shadowsocks-libev/issues/1131#issuecomment-275035524,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJoPKUhpiIHZnUNaiqOk4gdrSS6AX-dOks5rVvWngaJpZM4Lsgxx
.

Maybe you need install gettext and gettext-tools

maybe, but now it is installed, it is a good idea to update the README

suse-free notifications@github.com于2017年1月26日周四 03:49写道:

Maybe you need install gettext and gettext-tools


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/shadowsocks/shadowsocks-libev/issues/1131#issuecomment-275213364,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJoPKSPgQif3G39HaHfMbVF8zg07gngpks5rV6cpgaJpZM4Lsgxx
.

Try the latest commit

yum groupinstall "Development Tools" "Development Libraries"
I use this but I clone the least source, so I don't know which fix the problem

yum groupinstall "Development Tools" shall solve the problem (Scientific Linux 7.3), but only for Source code (tar.gz) (./autogen.sh).

shadowsocks-libev-2.6.3.tar.gz reported error when make (./configure)
*** No rule to make targetss-nat', needed by all-am'. Stop.

Anyway, this wouldn't be an issue as I'll just build with autogen.sh .

Was this page helpful?
0 / 5 - 0 ratings