Page 1 of 1

error on compiling during bootstrap

Posted: 22 Dec 2009 18:45
by Exxor
I get the following result when trying to execute "PATH=/usr/win32/bin:$PATH ./bootstrap
" from http://wiki.videolan.org/Win32CompileMSYSNew:

Code: Select all

$ PATH=/usr/win32/bin:$PATH ./bootstrap ++ dirname ./bootstrap + cd . + ACLOCAL_ARGS='-I m4 ' + test -d extras/contrib/bin ++ uname -s + test .MINGW32_NT-6.1 = .Darwin + pkg-config --version + PKGCONFIG=yes + export AUTOPOINT + test '' + AUTOPOINT=autopoint + autopoint --dry-run --force + set +x generating modules/**/Makefile.am ................................................................................ + echo + echo + cp -f INSTALL INSTALL.git + autoreconf --install --force --verbose -I m4 autoreconf: Entering directory `.' autoreconf: running: autopoint --force Copying file ABOUT-NLS autoreconf: running: aclocal --force -I m4 m4/autoopts.m4:22: warning: underquoted definition of AG_PATH_AUTOOPTS m4/autoopts.m4:22: run info '(automake)Extending aclocal' m4/autoopts.m4:22: or see http://sources.redhat.com/automake/automake.html#Ext ending-aclocal autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force C:\msys\1.0\bin\libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `autot ools'. C:\msys\1.0\bin\libtoolize: copying file `autotools/ltmain.sh' C:\msys\1.0\bin\libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. C:\msys\1.0\bin\libtoolize: copying file `m4/libtool.m4' C:\msys\1.0\bin\libtoolize: copying file `m4/ltoptions.m4' C:\msys\1.0\bin\libtoolize: copying file `m4/ltsugar.m4' C:\msys\1.0\bin\libtoolize: copying file `m4/ltversion.m4' C:\msys\1.0\bin\libtoolize: copying file `m4/lt~obsolete.m4' m4/autoopts.m4:22: warning: underquoted definition of AG_PATH_AUTOOPTS m4/autoopts.m4:22: run info '(automake)Extending aclocal' m4/autoopts.m4:22: or see http://sources.redhat.com/automake/automake.html#Ext ending-aclocal autoreconf: running: /usr/bin/autoconf --include=m4 --force configure.ac:1: error: possibly undefined macro: dnl If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:11: error: possibly undefined macro: AC_SUBST configure.ac:34: error: possibly undefined macro: AS_IF configure.ac:52: error: possibly undefined macro: AC_ARG_ENABLE configure.ac:56: error: possibly undefined macro: AC_MSG_ERROR configure.ac:76: error: possibly undefined macro: AC_DEFINE configure.ac:103: error: possibly undefined macro: AS_HELP_STRING configure.ac:134: error: possibly undefined macro: AC_MSG_WARN configure.ac:308: error: possibly undefined macro: AC_TRY_LINK configure.ac:485: error: possibly undefined macro: AC_CHECK_LIB configure.ac:494: error: possibly undefined macro: AC_CACHE_CHECK configure.ac:586: error: possibly undefined macro: AC_CHECK_HEADERS configure.ac:2280: error: possibly undefined macro: AC_PATH_PROG configure.ac:5083: error: possibly undefined macro: AC_PATH_PROGS autoreconf: /usr/bin/autoconf failed with exit status: 1
I'm running Windows 7 Professional. I followed the install guide to the letter starting from a clean base, except for downloading http://ftp.gnome.org/pub/gnome/binaries ... 0.23-2.zip since it didn't appear to work anymore, instead I downloaded http://ftp.gnome.org/pub/gnome/binaries ... _win32.zip. Tried to look for another site providing the 23-2 version.. but couldn't find any.

That could very well be an issue, but since the file dates from the 8th of July, I find it hard to believe I'm the first one running into this problem. But maybe they only just removed the old link or maybe I didn't search the forum correctly...

If anyone would have any idea how I could fix it, that would be great.

Thanks in advance,
Marijn

Re: error on compiling during bootstrap

Posted: 22 Dec 2009 22:34
by Jean-Baptiste Kempf
automake --version?
autoconf --version?

Re: error on compiling during bootstrap

Posted: 23 Dec 2009 15:23
by Exxor
$ automake --version
automake (GNU automake) 1.11

$ autoconf --version
autoconf (GNU Autoconf) 2.63

Re: error on compiling during bootstrap

Posted: 23 Dec 2009 18:42
by Exxor
Some additional info

-I assumed "mv /mingw/bin/g++-sjlj.exe /mingw/bin/c++.exe" was a typo and entered "mv /mingw/bin/c++-sjlj.exe /mingw/bin/c++.exe"
-I got the source from [url]git://git.videolan.org/vlc.git[/url]
-I got http://people.videolan.org/~jb/Contribs ... ly.tar.bz2 from the contribs
-I added

Code: Select all

m4_pattern_allow([^dnl]) m4_pattern_allow([^AC_]) m4_pattern_allow([^AS_]) m4_pattern_allow([^m4])

to the top of the configure.ac file which allowed me to finish the bootstrap
-I updated m4 from 1.4.7 -> 1.4.13 by downloading ftp://ftp.gnu.org/gnu/m4/m4-1.4.13.tar.gz, extracting it the msys home dir, and entering "./configure", "make", "make install" (I did this because viewtopic.php?f=2&t=61543)
$ m4 --version
m4 (GNU M4) 1.4.13

-now the line "sh extras/package/win32/configure-msys.sh" gives the following error:

Code: Select all

./configure: line 29552: syntax error near unexpected token `MINIZIP,' ./configure: line 29552: ` PKG_CHECK_MODULES(MINIZIP, minizip , have_minizip=yes ,'
Any suggestions?

Cheers,
Marijn

Re: error on compiling during bootstrap

Posted: 26 Dec 2009 18:48
by Jean-Baptiste Kempf
pkg-config --version ?

Re: error on compiling during bootstrap

Posted: 27 Dec 2009 06:33
by whatnick
Same errors so I thought I should continue the thread:

$ pkg-config.exe --version
0.23

Cheers,

Tisham.

Re: error on compiling during bootstrap

Posted: 06 Jan 2010 18:50
by Wannabe Tsotsi
Working from the same doc, Win32CompileMSYSNew, I have an XP system very similar to your's and experienced the same problems.

I found that the msys/mingw env was missing pkg.m4, which is where the PKG_CHECK_MODULES macro is defined.

I copied pkg.m4 from a Debian build system into vlc-1.0.3/m4 and bootstrap completes successfully (with your m4_pattern_allow's).

Need to look into those further as I didn't experience any such problems with a previous msys/mingw env on XP.

Re: error on compiling during bootstrap

Posted: 07 Jan 2010 07:24
by Jean-Baptiste Kempf
The issue was an errror in the howto and is fixed now.

Re: error on compiling during bootstrap

Posted: 08 Jan 2010 10:57
by Wannabe Tsotsi
Thanks Jean-Baptiste,

pkg-config-dev_0.23-3_win32.zip solves both the requirement for m4_pattern_allow's (^dnl ^AC_ ^AS_ ^m4) and the missing PKG_CHECK_MODULES macro definition.

Re: error on compiling during bootstrap

Posted: 08 Jul 2010 23:33
by wsjjswwsjjsw
I am still having the same problem.

$ PATH=/usr/win32/bin:$PATH ./bootstrap
++ dirname ./bootstrap
+ cd .
+ ACLOCAL_ARGS='-I m4 '
+ test -d extras/contrib/build/bin
++ uname -s
+ test .MINGW32_NT-5.1 = .Darwin
+ pkg-config --version
+ PKGCONFIG=yes
+ export AUTOPOINT
+ test ''
+ AUTOPOINT=autopoint
+ autopoint --dry-run --force
+ set +x
generating modules/**/Makefile.am
...........................................................................
+ echo
+ echo
+ cp -f INSTALL INSTALL.git
+ autoreconf --install --force --verbose -I m4
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
Copying file ABOUT-NLS
autoreconf: running: aclocal --force -I m4
m4/autoopts.m4:22: warning: underquoted definition of AG_PATH_AUTOOPTS
m4/autoopts.m4:22: run info '(automake)Extending aclocal'
m4/autoopts.m4:22: or see http://sources.redhat.com/automake/auto ... ng-aclocal
/bin/m4:/usr/share/autoconf/autoconf/autoconf.m4f:19: expecting line feed in frozen file
autom4te: /bin/m4 failed with exit status: 1
C:\msys\1.0\bin\aclocal: autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1


$ autoconf --version
autoconf (GNU Autoconf) 2.63
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later
<http://gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

$ automake --version
automake (GNU automake) 1.11
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <tromey@redhat.com>
and Alexandre Duret-Lutz <adl@gnu.org>.


I followed the instruction on http://wiki.videolan.org/Win32CompileMSYSNew literally and I have tried m4.1.4.7-13 and m4.1.4.7-14 and none of them help.

Can anyone suggest what might go wrong.
Thanks.