vlc-0.9.4 make error:libtool: eval: line 977: syntax error n

This forum is about all development around libVLC.
xingzhi123
New Cone
New Cone
Posts: 2
Joined: 02 Dec 2008 02:29

vlc-0.9.4 make error:libtool: eval: line 977: syntax error n

Postby xingzhi123 » 02 Dec 2008 02:40

Hello,I have a problem,i use vlc-0.9.6 and contrib-20081021-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2,
The other I also tried,contrib-20081006-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2

../libtool: eval: line 977: syntax error near unexpected token `|'
../libtool: eval: line 977: `link -dump -symbols .libs/libvlccore_la-libvlc.o .
libs/libvlccore_la-libvlc-module.o .libs/libvlccore_la-version.o interface/.libs
/libvlccore_la-interface.o interface/.libs/libvlccore_la-intf_eject.o interface/
.libs/libvlccore_la-interaction.o playlist/.libs/libvlccore_la-thread.o playlist
/.libs/libvlccore_la-control.o playlist/.libs/libvlccore_la-engine.o playlist/.l
ibs/libvlccore_la-sort.o playlist/.libs/libvlccore_la-loadsave.o playlist/.libs/
libvlccore_la-tree.o playlist/.libs/libvlccore_la-item.o playlist/.libs/libvlcco
re_la-search.o playlist/.libs/libvlccore_la-services_discovery.o input/.libs/lib
vlccore_la-item.o input/.libs/libvlccore_la-access.o input/.libs/libvlccore_la-c
lock.o input/.libs/libvlccore_la-control.o input/.libs/libvlccore_la-decoder.o i
nput/.libs/libvlccore_la-decoder_synchro.o input/.libs/libvlccore_la-demux.o inp
ut/.libs/libvlccore_la-es_out.o input/.libs/libvlccore_la-input.o input/.libs/li
bvlccore_la-meta.o input/.libs/libvlccore_la-stream.o input/.libs/libvlccore_la-
mem_stream.o input/.libs/libvlccore_la-subtitles.o input/.libs/libvlccore_la-var
.o video_output/.libs/libvlccore_la-video_output.o video_output/.libs/libvlccore
_la-vout_pictures.o video_output/.libs/libvlccore_la-video_text.o video_output/.
libs/libvlccore_la-video_widgets.o video_output/.libs/libvlccore_la-vout_subpict
ures.o video_output/.libs/libvlccore_la-vout_intf.o audio_output/.libs/libvlccor
e_la-common.o audio_output/.libs/libvlccore_la-dec.o audio_output/.libs/libvlcco
re_la-filters.o audio_output/.libs/libvlccore_la-input.o audio_output/.libs/libv
lccore_la-mixer.o audio_output/.libs/libvlccore_la-output.o audio_output/.libs/l
ibvlccore_la-intf.o osd/.libs/libvlccore_la-osd.o osd/.libs/libvlccore_la-osd_te
xt.o osd/.libs/libvlccore_la-osd_widgets.o network/.libs/libvlccore_la-acl.o net
work/.libs/libvlccore_la-getaddrinfo.o network/.libs/libvlccore_la-io.o network/
.libs/libvlccore_la-tcp.o network/.libs/libvlccore_la-udp.o network/.libs/libvlc
core_la-httpd.o network/.libs/libvlccore_la-rootbind.o network/.libs/libvlccore_
la-tls.o network/.libs/libvlccore_la-poll.o text/.libs/libvlccore_la-charset.o t
ext/.libs/libvlccore_la-strings.o text/.libs/libvlccore_la-unicode.o text/.libs/
libvlccore_la-wincp.o text/.libs/libvlccore_la-iso_lang.o misc/.libs/libvlccore_
la-md5.o misc/.libs/libvlccore_la-rand.o misc/.libs/libvlccore_la-mtime.o misc/.
libs/libvlccore_la-block.o misc/.libs/libvlccore_la-es_format.o modules/.libs/li
bvlccore_la-modules.o modules/.libs/libvlccore_la-cache.o modules/.libs/libvlcco
re_la-entry.o modules/.libs/libvlccore_la-os.o misc/.libs/libvlccore_la-threads.
o misc/.libs/libvlccore_la-stats.o misc/.libs/libvlccore_la-cpu.o misc/.libs/lib
vlccore_la-action.o config/.libs/libvlccore_la-core.o config/.libs/libvlccore_la
-dirs.o config/.libs/libvlccore_la-chain.o config/.libs/libvlccore_la-file.o con
fig/.libs/libvlccore_la-intf.o config/.libs/libvlccore_la-cmdline.o misc/.libs/l
ibvlccore_la-events.o misc/.libs/libvlccore_la-image.o misc/.libs/libvlccore_la-
messages.o misc/.libs/libvlccore_la-objects.o misc/.libs/libvlccore_la-variables
.o misc/.libs/libvlccore_la-error.o misc/.libs/libvlccore_la-update.o misc/.libs
/libvlccore_la-xml.o misc/.libs/libvlccore_la-devices.o extras/.libs/libvlccore_
la-libc.o misc/.libs/libvlccore_la-filter_chain.o misc/.libs/libvlccore_la-win32
_specific.o network/.libs/libvlccore_la-winsock.o extras/.libs/libvlccore_la-get
opt.o extras/.libs/libvlccore_la-getopt1.o stream_output/.libs/libvlccore_la-str
eam_output.o stream_output/.libs/libvlccore_la-announce.o stream_output/.libs/li
bvlccore_la-sap.o stream_output/.libs/libvlccore_la-sdp.o input/.libs/libvlccore
_la-vlm.o input/.libs/libvlccore_la-vlmshell.o misc/.libs/libvlccore_la-revision
.o | | /usr/bin/sed -e '/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__
/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //' | sort |
uniq > .libs/libvlccore.exp'
make[4]: *** [libvlccore.la] Error 1
make[4]: Leaving directory `/cygdrive/c/vlc/vlc-0.9.6/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/cygdrive/c/vlc/vlc-0.9.6/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/cygdrive/c/vlc/vlc-0.9.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/vlc/vlc-0.9.6'
make: *** [all] Error 2

my configure is :

PATH=/usr/win32/bin:$PATH \
PKG_CONFIG_LIBDIR=/usr/win32/lib/pkgconfig \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" \
./configure \
--host=i686-pc-mingw32 \
--disable-gtk \
--enable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin \
--enable-avcodec --enable-avformat --enable-swscale \
--enable-faad --enable-flac --enable-theora \
--with-wx-config-path=/usr/win32/bin \
--with-freetype-config-path=/usr/win32/bin \
--with-fribidi-config-path=/usr/win32/bin \
--enable-live555 --with-live555-tree=/usr/win32/live.com \
--enable-caca --with-caca-config-path=/usr/win32/bin \
--with-xml2-config-path=/usr/win32/bin \
--with-dvdnav-config-path=/usr/win32/bin \
--disable-cddax --disable-vcdx --enable-goom \
--enable-twolame --enable-dvdread \
--enable-debug --enable-dca \
--disable-mkv --disable-taglib


How can I solve this problem??

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vlc-0.9.4 make error:libtool: eval: line 977: syntax error n

Postby Jean-Baptiste Kempf » 02 Dec 2008 09:24

| | is the issue.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

wanwingpui
New Cone
New Cone
Posts: 1
Joined: 03 Dec 2008 01:02

Re: vlc-0.9.4 make error:libtool: eval: line 977: syntax error n

Postby wanwingpui » 03 Dec 2008 01:12

I got the same issue. I also believe the problem comes from the | |.
But could anybody tell me how to fix it?

Best Regards,
Stanley Wan

xingzhi123
New Cone
New Cone
Posts: 2
Joined: 02 Dec 2008 02:29

Re: vlc-0.9.4 make error:libtool: eval: line 977: syntax error n

Postby xingzhi123 » 03 Dec 2008 07:37

cygwin reasons, I use the old and it ok!

lianmiaosen
New Cone
New Cone
Posts: 2
Joined: 25 Sep 2008 07:58

Re: vlc-0.9.4 make error:libtool: eval: line 977: syntax error n

Postby lianmiaosen » 03 Dec 2008 09:34

I got the same error,but it can be compiled in ubuntu,Btw how to get the last contrib package,I just get the contrib version 2008-05

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vlc-0.9.4 make error:libtool: eval: line 977: syntax error n

Postby Jean-Baptiste Kempf » 03 Dec 2008 14:40

I got the same error,but it can be compiled in ubuntu,Btw how to get the last contrib package,I just get the contrib version 2008-05
people.videolan.org/~jb/Contribs
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

StanfordProgrammer
New Cone
New Cone
Posts: 3
Joined: 04 Dec 2008 00:16

Re: vlc-0.9.4 make error:libtool: eval: line 977: syntax error n

Postby StanfordProgrammer » 04 Dec 2008 01:42

Does anyone have a solution for this? I am having the same problem as well. xingzhi123, could you please explain how you solved the problem? Perhaps explain how you reverted back to an old version of cygwin?

Please and thank you!

simonho
New Cone
New Cone
Posts: 1
Joined: 03 Dec 2008 08:35

Re: vlc-0.9.4 make error:libtool: eval: line 977: syntax error n

Postby simonho » 04 Dec 2008 02:59

Does anyone have a solution for this? I am having the same problem as well. xingzhi123, could you please explain how you solved the problem? Perhaps explain how you reverted back to an old version of cygwin?

Please and thank you!
Dear all:

Instead of going back to an older verison of cygwin, I tried other solution.
After VLC successful configuration, open a file named "libtool" in your vlc-0.9.x and change one line in line 144

Code: Select all

# Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\(\\)\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1\\2\\3 \\3/p'"
Type make or compile and enjoy the ride :wink:

I think it is cygwin's libtool problem :evil:
Maybe someone can try to use older version of libtool under cygwin.

ps: I personally recommend not trying to build vlc-0.9.8 under cygwin
while vlc-0.9.6 is O.K with the above mentioned solution.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vlc-0.9.4 make error:libtool: eval: line 977: syntax error n

Postby Jean-Baptiste Kempf » 04 Dec 2008 12:45

I uses MSys now...
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

tihctw
Blank Cone
Blank Cone
Posts: 19
Joined: 20 Aug 2008 08:32

Re: vlc-0.9.4 make error:libtool: eval: line 977: syntax error n

Postby tihctw » 24 Dec 2008 07:27

Dear all:

Instead of going back to an older verison of cygwin, I tried other solution.
After VLC successful configuration, open a file named "libtool" in your vlc-0.9.x and change one line in line 144

Code: Select all

# Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\(\\)\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1\\2\\3 \\3/p'"
Type make or compile and enjoy the ride :wink:

I think it is cygwin's libtool problem :evil:
Maybe someone can try to use older version of libtool under cygwin.

ps: I personally recommend not trying to build vlc-0.9.8 under cygwin
while vlc-0.9.6 is O.K with the above mentioned solution.
Hi, I changed the line 144 in libtool file as you indicated and the "|" problem went away. However, I got another error, link: invalid option -- d, while make. How can I fix it? Thanks! Ps. I tried with both v0.9.8a and v0.9.6 and had no luck on both.

markfm
Big Cone-huna
Big Cone-huna
Posts: 1535
Joined: 22 Feb 2004 17:42

Re: vlc-0.9.4 make error:libtool: eval: line 977: syntax error n

Postby markfm » 09 Feb 2009 21:27

Building the latest VLC off of git, updated as of 6 hours ago. Very latest Cygwin tools.

Need to make the ECHO= to echo= substitution in multiple of the contribs, plus in VLC's own root libroot file. Is there a reasonable way to automate that change during the build process (ifdef CYGWIN execute a SED to change the libroot ECHO= to echo=)

gettext just doesn't seem to build right in the vlc extras/contrib -- files for the .exe come out way larger than Cywgwin's own distribution (we're talking > 1MB files vs a couple 10s of kb). I end up overlaying a copy of the Cygwin gettext files into contrib.

I run into the global_symbol_pipe problem, as previously noted -- the change to line 144 works for me, too. Another candidate for a patch of some kind...

For contrib, zvbi is the only file that didn't seem to build OK under Cygwin, after at most minor tweaking (an occasional rerun of autoconf). I commented it out. I suspect multiple of the contrib could/should be commented out for a Windows contrib build (zvbi, used for Linux V4L, doesn't make sense to build for Windows, best I can tell, nor do Mac-specific items. The fact that something nominally cleared a build, produced DLLs or .exe, doesn't necessarily mean that it will do anything on a Win box.).

yumbrad
New Cone
New Cone
Posts: 2
Joined: 11 Jun 2009 02:05

Re: vlc-0.9.4 make error:libtool: eval: line 977: syntax error n

Postby yumbrad » 11 Jun 2009 02:10

Regarding the "invalid option: -d" error for link... I believe I fixed this - also in the generated libtool file, I replaced

Code: Select all

NM="link -dump -symbols"
with

Code: Select all

NM="nm"
I'm not sure why configure didn't see the nm executable


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 3 guests