Configure Syntax Error Near Unexpected Token Pkg_check_modules
Contents |
Support Search GitHub This repository Watch 36 Star 255 Fork 71 brianb/mdbtools Code Issues 28 Pull requests 8 Projects 0 Pulse Graphs New issue ./configure: line 11613:
Configure Line Syntax Error Near Unexpected Token
syntax error near unexpected token `GLIB,' ./configure: line 11613: `PKG_CHECK_MODULES(GLIB, glib-2.0, ,' #48 pkg_check_modules example Closed leipzig opened this Issue Mar 13, 2014 · 5 comments Projects None yet Labels None yet Milestone No milestone pkg_check_modules not found Assignees No one assigned 4 participants leipzig commented Mar 13, 2014 centos6 checking whether /usr/bin/ld -m elf_x86_64 accepts --as-needed... yes ./configure: line 11613: syntax error near unexpected token `GLIB,' ./configure: line 11613:
Syntax Error Near Unexpected Token `lasso,'
`PKG_CHECK_MODULES(GLIB, glib-2.0, ,' the offending lines: PKG_CHECK_MODULES(GLIB, glib-2.0, , as_fn_error $? " glib 2.0 is required by MDB Tools (runtime and devel). It can be downloaded at www.gtk.org. " "$LINENO" 5) amirkdv commented Mar 24, 2014 Same issue here on Ubuntu 12:04 dpkg -l | grep glib # ii libglib2.0-0 2.32.1-0ubuntu2 GLib library of C routines git clone https://github.com/brianb/mdbtools cd mdbtools autoreconf -i -f ./configure #
Pkg_prog_pkg_config Syntax Error
checking for a BSD-compatible install... /usr/bin/install -c # checking whether build environment is sane... yes # checking for a thread-safe mkdir -p... /bin/mkdir -p # checking for gawk... no # checking for mawk... mawk # checking whether make sets $(MAKE)... yes # checking whether to enable maintainer-specific portions of Makefiles... yes # checking whether make supports nested variables... yes # checking for gcc... gcc # checking whether the C compiler works... yes # checking for C compiler default output file name... a.out # checking for suffix of executables... # checking whether we are cross compiling... no # checking for suffix of object files... o # checking whether we are using the GNU C compiler... yes # checking whether gcc accepts -g... yes # checking for gcc option to accept ISO C89... none needed # checking for style of include used by make... GNU # checking dependency style of gcc... gcc3 # checking whether make sets $(MAKE)... (cached) yes # checking for ar... ar # checking the archiver (ar) interface... ar # checking build system type... x86_64-unknown-linux-gnu # checking host system type... x86_64-unknown-linux-gnu # checking how to print strings... printf # checking for a sed
Support Search GitHub This repository Watch 707 Star 15,078 Fork 1,090 firehol/netdata Code Issues 146 Pull requests 15 Projects 5 Wiki Pulse Graphs New issue ./configure: install pkg-config line 4860: syntax error near unexpected token `newline' #98 Closed roottox opened
Pkg_check_modules Cmake
this Issue Mar 31, 2016 · 8 comments Projects None yet Labels installation help packaging Milestone No milestone Assignees syntax error near unexpected token glib No one assigned 4 participants roottox commented Mar 31, 2016 Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.73-2+deb7u3 x86_64 GNU/Linux ./configure: line 4860: syntax error near unexpected token newline'
./configure: line 4860: PKG_CHECK_MODULES(' justincm https://github.com/brianb/mdbtools/issues/48 commented Mar 31, 2016 I commented out in the configure.rc file the following line if test "${enable_plugin_nfacct}" = "yes"; then PKG_CHECK_MODULES( NFACCT, libnetfilter_acct, ) PKG_CHECK_MODULES( LIBMNL, libmnl, ) test -z "${NFACCT_LIBS}" && as_fn_error $? "netfilter_acct required but not found" "$LINENO" 5 test -z "${LIBMNL_LIBS}" && as_fn_error $? "libmnl required but not found" "$LINENO" 5 $as_echo "#define INTERNAL_PLUGIN_NFACCT 1" >>confdefs.h OPTIONAL_NFACCT_CLFAGS="${NFACCT_CFLAGS} ${LIBMNL_CFLAGS}" OPTIONAL_NFACCT_LIBS="${NFACCT_LIBS} ${LIBMNL_LIBS}" fi https://github.com/firehol/netdata/issues/98 if test "${with_zlib}" = "yes"; then PKG_CHECK_MODULES( ZLIB, zlib, ) test -z "${ZLIB_LIBS}" && as_fn_error $? "zlib required but not found" "$LINENO" 5 $as_echo "#define NETDATA_WITH_ZLIB 1" >>confdefs.h OPTIONAL_ZLIB_CLFAGS="${ZLIB_CFLAGS}" OPTIONAL_ZLIB_LIBS="${ZLIB_LIBS}" fi then reran the ./netdata-installer.sh --zlib-is-really-here now running roottox commented Mar 31, 2016 thx for fast feedback. gonna test your workaround laters @home. insom commented Mar 31, 2016 Hi @roottox / @justincm, I had this but it was because I was missing pkg-config - can you check if you have all the deps installed? gcc make autoconf automake pkg-config zlib1g-dev node curl ktsaou added the installation help label Mar 31, 2016 justincm commented Apr 1, 2016 centos 5 no pkg-config available. insom commented Apr 1, 2016 Hi @justincm - I gave the Ubuntu package names, but pkgconfig (with no hyphen) is available on CentOS 5. zilb will be zlib-devel. You may need to find Node from somewhere else though, it looks like it didn't make it into CentOS properly until CentOS 6, sorry. justincm commented Apr 1, 2016 pkgconfig and zlib0devel both were installed for node I used this curl --silent --location https://rpm.nodesource.com/setup | bash - I followed th
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company http://stackoverflow.com/questions/8578181/using-the-pkg-config-macro-pkg-check-modules-failing Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs http://stackoverflow.com/questions/22972633/autoconf-without-glib-breaks-with-syntax-error-on-configure Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Using the pkg-config macro PKG_CHECK_MODULES failing up vote 9 down vote favorite I'm sure this is a fairly simple problem. I have syntax error a very simple configure.ac file which I am using to just learn how autoconf & pkg-config work together. The confgure.ac file looks like: AC_PREREQ(2.61) AC_INIT(autoconf_test, 1.0, nowhere@dev.null) PKG_CHECK_MODULES(libusbmuxd, libusbmuxd >= 0.1.4) I can then execute autoconf from the command line and it does produce a configure script. However, when I run the configure script, I get the following error: ./configure: line 1618: syntax error near unexpected token `libusbmuxd,' ./configure: line 1618: `PKG_CHECK_MODULES(libusbmuxd, libusbmuxd >= syntax error near 0.1.4)' If I use the pkg-config program from the command line to check to see whether it can find this library, it succeeds. /usr/lib/pkgconfig $pkg-config --libs --cflags --modversion libusbmuxd 1.0.7 -I/usr/local/Cellar/usbmuxd/1.0.7/include -L/usr/local/Cellar/usbmuxd/1.0.7/lib -lusbmuxd So, it seems clear that for some reason the PGK_CHECK_MODULE macro cannot be located and I am not sure why. This probably isn't OS specific, but I am using Mac OS X 10.6.8. osx osx-snow-leopard autoconf automake pkg-config share|improve this question edited May 6 at 12:35 vaxquis 5,78752541 asked Dec 20 '11 at 15:54 ericgorr 4,2062647 1 The macro is in a file pkg.m4 if I'm not wrong. Can you find this file somewhere in /usr/share/aclocal or a similar directory? –ptomato Dec 20 '11 at 21:48 3 Use 'aclocal --print' to determine the directory in which to look for pkg.m4 –William Pursell Dec 21 '11 at 11:39 How did you install pkg-config, and how did you install the autotools? –Jack Kelly Dec 25 '11 at 3:51 add a comment| 2 Answers 2 active oldest votes up vote 14 down vote accepted When you are bootstrapping (ie, running autoreconf), aclocal is unable to find pkg.m4. This is because pkg-config was either not installed or has been installed somewhere that aclocal does not know about. (ie, it was installed with a different prefix than automake.) Ther
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Autoconf without GLib breaks with syntax error on configure up vote 2 down vote favorite If I don't have pkg-config installed nor glib my configure breaks with a syntax error when running ./configure. Is there a way to break with AC_MSG_ERROR? ./configure: line 4001: syntax error near unexpected token `GLIB2,' ./configure: line 4001: ` PKG_CHECK_MODULES(GLIB2, glib-2.0, , as_fn_error $? "glib needed" "$LINENO" 5)' -- AC_ARG_ENABLE(GTK, [], [gtk="$enabled"], gtk=no) if test "$gtk" = "yes"; then AC_CHECK_LIB([gtk-x11-2.0], [gtk_init], [], [AC_MSG_ERROR([gtk needed])]) else AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes) if test x"$HAVE_PKG_CONFIG" != x"yes" ; then AC_MSG_ERROR([pkg-config]) fi PKG_CHECK_MODULES(GLIB2, glib-2.0, [], AC_MSG_ERROR([glib needed])) AC_SUBST(GLIB2_CFLAGS) AC_SUBST(GLIB2_LIBS) AC_CHECK_LIB([glib-2.0], [g_list_append], [], [AC_MSG_ERROR([glib needed])]) fi AM_CONDITIONAL([GTK], [test "x$gtk" = "xyes"]) glib autoconf share|improve this question asked Apr 9 '14 at 19:51 user1024718 169111 add a comment| 2 Answers 2 active oldest votes up vote 4 down vote The configure script was generated incorrectly, in absence of pkg.m4. For all non-basic macros that don't start with AC_* it's a good idea to distribute them with the source code for this reason, so you can at least get a correct configure script. That said, pkg-config is pretty ubiquitous nowadays, why are you gen