Cygwin: ./libtool: eval: line 1098: syntax error near unexpected token `|'
W.C.A. Wijngaards
wouter at nlnetlabs.nl
Tue Mar 1 08:56:34 UTC 2016
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi sbremal,
On 29/02/16 19:24, First name Surname via Unbound-users wrote:
> Hi
>
> Does anyone have an idea how to solve this?
Edit Makefile, and change the libtool=./libtool line to use your
cygwin system's libtool, with libtool=libtool
That is, if your system has a libtool that came with it. And if that
libtool works. Otherwise, I don't know, it seems to be an error in
the libtool system (or that part of configure, AC_LIBTOOL).
Or you could edit libtool and replace | | with | for that command ...
Best regards, Wouter
>
> /cygdrive/e/unbound-1.5.7 $ make ... ./libtool --tag=CC --mode=link
> gcc -I. -g -O2 -flto -version-info 5:10:3 -no-undefined
> -export-symbols ./libunbound/ubsyms.def -o libunbound.la context.lo
> libunbound.lo libworker.lo dns.lo infra.lo rrset.lo dname.lo
> msgencode.lo msgparse.lo msgreply.lo packed_rrset.lo iterator.lo
> iter_delegpt.lo iter_donotq.lo iter_fwd.lo iter_hints.lo
> iter_priv.lo iter_resptype.lo iter_scrub.lo iter_utils.lo
> localzone.lo mesh.lo modstack.lo outbound_list.lo alloc.lo
> config_file.lo configlexer.lo configparser.lo fptr_wlist.lo
> locks.lo log.lo mini_event.lo module.lo net_help.lo random.lo
> rbtree.lo regional.lo rtt.lo dnstree.lo lookup3.lo lruhash.lo
> slabhash.lo timehist.lo tube.lo winsock_event.lo autotrust.lo
> val_anchor.lo validator.lo val_kcache.lo val_kentry.lo val_neg.lo
> val_nsec3.lo val_nsec.lo val_secalgo.lo val_sigcrypt.lo
> val_utils.lo dns64.lo netevent.lo listen_dnsport.lo
> outside_network.lo keyraw.lo sbuffer.lo wire2str.lo parse.lo
> parseutil.lo rrdef.lo str2wire.lo reallocarray.lo -rpath
> /usr/local/lib -lssl -lcrypto libtool: link: /usr/bin/nm -B
> .libs/context.o .libs/libunbound.o .libs/libworker.o .libs/dns.o
> .libs/infra.o .libs/rrset.o .libs/dname.o .libs/msgencode.o
> .libs/msgparse.o .libs/msgreply.o .libs/packed_rrset.o
> .libs/iterator.o .libs/iter_delegpt.o .libs/iter_donotq.o
> .libs/iter_fwd.o .libs/iter_hints.o .libs/iter_priv.o
> .libs/iter_resptype.o .libs/iter_scrub.o .libs/iter_utils.o
> .libs/localzone.o .libs/mesh.o .libs/modstack.o
> .libs/outbound_list.o .libs/alloc.o .libs/config_file.o
> .libs/configlexer.o .libs/configparser.o .libs/fptr_wlist.o
> .libs/locks.o .libs/log.o .libs/mini_event.o .libs/module.o
> .libs/net_help.o .libs/random.o .libs/rbtree.o .libs/regional.o
> .libs/rtt.o .libs/dnstree.o .libs/lookup3.o .libs/lruhash.o
> .libs/slabhash.o .libs/timehist.o .libs/tube.o
> .libs/winsock_event.o .libs/autotrust.o .libs/val_anchor.o
> .libs/validator.o .libs/val_kcache.o .libs/val_kentry.o
> .libs/val_neg.o .libs/val_nsec3.o .libs/val_nsec.o
> .libs/val_secalgo.o .libs/val_sigcrypt.o .libs/val_utils.o
> .libs/dns64.o .libs/netevent.o .libs/listen_dnsport.o
> .libs/outside_network.o .libs/keyraw.o .libs/sbuffer.o
> .libs/wire2str.o .libs/parse.o .libs/parseutil.o .libs/rrdef.o
> .libs/str2wire.o .libs/reallocarray.o | | /usr/bin/sed -e
> '/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[
> ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //' | sort | uniq >
> .libs/libunbound.exp ./libtool: eval: line 1098: syntax error near
> unexpected token `|' ./libtool: eval: line 1098: `/usr/bin/nm -B
> .libs/context.o .libs/libunbound.o .libs/libworker.o .libs/dns.o
> .libs/infra.o .libs/rrset.o .libs/dname.o .libs/msgencode.o
> .libs/msgparse.o .libs/msgreply.o .libs/packed_rrset.o
> .libs/iterator.o .libs/iter_delegpt.o .libs/iter_donotq.o
> .libs/iter_fwd.o .libs/iter_hints.o .libs/iter_priv.o
> .libs/iter_resptype.o .libs/iter_scrub.o .libs/iter_utils.o
> .libs/localzone.o .libs/mesh.o .libs/modstack.o
> .libs/outbound_list.o .libs/alloc.o .libs/config_file.o
> .libs/configlexer.o .libs/configparser.o .libs/fptr_wlist.o
> .libs/locks.o .libs/log.o .libs/mini_event.o .libs/module.o
> .libs/net_help.o .libs/random.o .libs/rbtree.o .libs/regional.o
> .libs/rtt.o .libs/dnstree.o .libs/lookup3.o .libs/lruhash.o
> .libs/slabhash.o .libs/timehist.o .libs/tube.o
> .libs/winsock_event.o .libs/autotrust.o .libs/val_anchor.o
> .libs/validator.o .libs/val_kcache.o .libs/val_kentry.o
> .libs/val_neg.o .libs/val_nsec3.o .libs/val_nsec.o
> .libs/val_secalgo.o .libs/val_sigcrypt.o .libs/val_utils.o
> .libs/dns64.o .libs/netevent.o .libs/listen_dnsport.o
> .libs/outside_network.o .libs/keyraw.o .libs/sbuffer.o
> .libs/wire2str.o .libs/parse.o .libs/parseutil.o .libs/rrdef.o
> .libs/str2wire.o .libs/reallocarray.o | | /usr/bin/sed -e
> '/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[
> ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //' | sort | uniq >
> .libs/libunbound.exp' Makefile:299: recipe for target
> 'libunbound.la' failed make: *** [libunbound.la] Error 2
>
> Is this causing the error?
>
> /cygdrive/e/unbound-1.5.7 $ ./configure ... checking command to
> parse /usr/bin/nm -B output from gcc object... failed ...
>
> config.log: ... configure:8554: checking command to parse
> /usr/bin/nm -B output from gcc object configure:8674: gcc -c -g
> -O2 -flto conftest.c >&5 + eval '$CC' -c '$CFLAGS' '$CPPFLAGS'
> 'conftest.$ac_ext' '>&5' ++ gcc -c -g -O2 -flto conftest.c
> configure:8677: $? = 0 configure:8681: /usr/bin/nm -B conftest.o \|
> sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][
> ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \>
> conftest.nm + eval /usr/bin/nm -B conftest.o '|' 'sed -n -e
> '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][
> ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'' | sed '\''/
> __gnu_lto/d'\''' '>' conftest.nm ++ /usr/bin/nm -B conftest.o ++
> sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][
> ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' ++ sed '/ __gnu_lto/d'
> configure:8684: $? = 0 cannot find nm_test_var in conftest.nm
> configure:8674: gcc -c -g -O2 -flto conftest.c >&5 + eval '$CC'
> -c '$CFLAGS' '$CPPFLAGS' 'conftest.$ac_ext' '>&5' ++ gcc -c -g -O2
> -flto conftest.c configure:8677: $? = 0 configure:8681: /usr/bin/nm
> -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[
> ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | sed '/
> __gnu_lto/d' \> conftest.nm + eval /usr/bin/nm -B conftest.o '|'
> 'sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][
> ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p'\'' | sed '\''/
> __gnu_lto/d'\''' '>' conftest.nm ++ /usr/bin/nm -B conftest.o ++
> sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][
> ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' ++ sed '/ __gnu_lto/d'
> configure:8684: $? = 0 cannot run sed -n -e 's/^.*[
> ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][
> ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | sed '/ __gnu_lto/d'
> configure:8788: result: failed
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJW1Vk8AAoJEJ9vHC1+BF+NVvQP/R3nJIrPwqSUfEv7uljVgOwO
9nX00zfPvDoz1RLfqSJeqaapdpSavZbtdMNSmISPXvHBiewBaQ13qYb8bCREef0l
o4SWF9UDSJqYWoFbTU9RYEDMy9jMt9rihBPb1FFqgAYteg1VSp/6H7CiEXH5Zz4q
NuIVB16QN5U/VVFNOpE7z3AN07AUzowtreNR/BOmsIzW7G+qnIb8+MyynzYGD9Ha
R3D0rFjyV3ipOk3zrAcPhcY/coG7p4DwH/+MNwdU8YQkNl0oHAXkGH2XV6y+9ak/
xetqJlojBbj7xa1dCapMIxvBzznQZ6AAPqYwZg9Cjt/Q1geN+Urj6FnL8aNuQlnx
NJ++kuVLDDV21IxmgNiKzDIzrPbOPtGhlBLggiKfrj2DicJXXya3eX14CJHE+uct
SMF610EJThHxGP3eZh7yep/58cxJHSagTu1Ep3N+/VLABfCXjHsHjkhOHzY1Xz4m
LDCm5fjBnUZjk7VgKTfMp/EoTuG9W1WZOnkXp4Zks46agC5XV6+zKXLeWtDeIA7K
li4Xg5EqBFZ/M33X4kLBHqXx/EerGzGu6mKjJU3G0NzGOYIPOKdJDboQ4tNcaohm
Bbc6Qnc1rPOGtc1xepDo0iQzdtxJg2jtQVmtomMx/mA0YI3yp+dRpT5BEo/vCCtN
cRkaSPEWvxy62Ek2q3CL
=ToOy
-----END PGP SIGNATURE-----
More information about the Unbound-users
mailing list