running configure give error

95 views
Skip to first unread message

sanjeev kumar

unread,
Sep 15, 2011, 4:52:19 AM9/15/11
to Mordor Users
Hello,

I downloaded mozy-mordor-feb7efe

When I launch ./configure I get the following error. How to get rid of
this.

./configure: line 16497: syntax error near unexpected token `mordor/
uri.cpp,'
./configure: line 16497: `CHECK_RAGEL(mordor/uri.cpp, 6)'

Thank you
Sanjeev

Cody Cutrer

unread,
Sep 15, 2011, 11:14:35 AM9/15/11
to mordor...@googlegroups.com
So you already ran "autoreconf -i"? Mordor requires
autoconf/automake/libtool/pkg-config, ragel, boost, openssl, and zlib
to build from source. My first guess would be missing pkg-config, but
CHECK_RAGEL is an autoconf macro that is provided with Mordor. Maybe
you need a newer version of autoconf. What version are you using?
Off the top of my head, I want to say mordor requires 2.16. If you
want, I could upload a dist tarball, so your only build dependencies
would be boost, openssl, and zlib.

Cody

sanjeev kumar

unread,
Sep 16, 2011, 7:23:36 AM9/16/11
to Mordor Users
Thank it worked after several attempts.

libtoolize
aclocal -I m4
autoconf
./configure
cp /usr/share/automake-1.11/config.guess /usr/share/automake-1.11/
config.sub /usr/share/automake-1.11/install-sh .
./configure
automake
autoheader
automake
./configure
automake
automake --add-missing --copy
make

sanjeev kumar

unread,
Sep 28, 2011, 10:39:38 AM9/28/11
to Mordor Users
Hi Cody,

Do to some unavoidable circumstances I had reconfigure the mozy morodr
again.

Steps:
aclocal
autoreconf -i
./configure --with-boost-program-options=boost_program_options --with-
boost-regex=boost_regex --with-boost-thread=boost_thread --with-
postgresql=no

I get the below error, how to over come it.
....
checking for main in -lboost_program_options... yes
checking whether the Boost::Regex library is available... yes
checking for main in -lboost_regex... yes
checking whether the Boost::Thread library is available... yes
checking for exit in -lboost_thread... yes
checking for CFNetworkCopyProxiesForURL... no
checking for CFRetain... no
checking for SecKeychainItemFreeContent... no
checking for SCDynamicStoreCreate... no
checking for yaml_parser_initialize in -lyaml... yes
./configure: line 18121: syntax error near unexpected token
`PROTOBUF,'
./configure: line 18121: ` PKG_CHECK_MODULES(PROTOBUF, protobuf)'
...

Sanjeev

On Sep 15, 5:14 pm, Cody Cutrer <c...@cutrer.us> wrote:

Cody Cutrer

unread,
Sep 28, 2011, 10:57:33 AM9/28/11
to mordor...@googlegroups.com
That means pkg-config is not installed (or autoconf can't find the
autoconf macros that pkg-config includes).

Cody

sanjeev kumar

unread,
Sep 29, 2011, 7:41:57 AM9/29/11
to Mordor Users
Due to some * reason pkg_config couldn't be installed.

So I changed the configure.ac
AC_ARG_WITH([protobuf-include-path],
[AS_HELP_STRING([--with-protobuf-include-path],
[location of the Protobuf headers, defaults to /opt/tools/dev/
include/google])],
[PROTOBUF_CFLAGS="-I$withval"],
[PROTOBUF_CFLAGS='-I/opt/tools/dev/include/google'])
AC_SUBST([PROTOBUF_CFLAGS])

AC_ARG_WITH([protobuf-lib-path],
[AS_HELP_STRING([--with-protobuf-lib-path], [location of the
Protobuf libraries])],
[PROTOBUF_LIBS="-L$withval -lprotobuf"],
[PROTOBUF_LIBS='-lprotobuf'])
AC_SUBST([PROTOBUF_LIBS])
AM_CONDITIONAL([HAVE_PROTOBUF], [test "x${PROTOBUF_CFLAGS}" != x])

and removed the -Werror flag from the Makefile. (as make was not
going ahead)

Doing that Mordor was build and installed and following libs were
created.

ibmordortest.so.0.0.0
libmordortest.so.0 -> libmordortest.so.0.0.0
libmordortest.so -> libmordortest.so.0.0.0
libmordortest.la
libmordor.so.1.0.0
libmordor.so.1 -> libmordor.so.1.0.0
libmordor.so -> libmordor.so.1.0.0
libmordor.la
libmordoryaml.so.0.0.0
libmordoryaml.so.0 -> libmordoryaml.so.0.0.0
libmordoryaml.so -> libmordoryaml.so.0.0.0
libmordoryaml.la
libmordorprotobuf.so.0.0.0
libmordorprotobuf.so.0 -> libmordorprotobuf.so.0.0.0
libmordorprotobuf.so -> libmordorprotobuf.so.0.0.0
libmordorprotobuf.la

what is your opinion on this ?

thank you
Sanjeev.

Cody Cutrer

unread,
Sep 30, 2011, 11:31:40 AM9/30/11
to mordor...@googlegroups.com
I'd love to see the errors you are getting with -Werror (or the
warnings you are getting without it) so I can fix them. What compiler
and version are you using.

As for the changes to configure.ac - I will not accept them back.
Pkgconfig is a pretty standard thing, and I myself use multiple
operatings systems where pkgconfig automatically finds protobuf for
me, but not using pkgconfig it would not be to automatically find
them. What operating system are you using that you're having troubles
with pkgconfig? Most linux distros should have it as a package. On
OS X, brew is the easiest way to install it, and will ask after it
installs if you want the system autoconf to be able to find it.

Cody

sanjeev kumar

unread,
Oct 4, 2011, 12:02:09 PM10/4/11
to Mordor Users
Due to some reason I had to move to another machine where the
installation is not proper.
I did not saved the errors info with -Werror.
Fresh installation of gcc 4.6.1 without Pkgconfig hence I need to
change the configure.ac
---
Reply all
Reply to author
Forward
0 new messages