Autoconf Pkg_check_modules Syntax Error
Contents |
Support Search GitHub This repository Watch 117 Star 947 Fork 363 texane/stlink Code Issues 30 Pull requests 2 Projects 0 Wiki Pulse Graphs PKG_CHECK_MODULES USB unexpected token #83 syntax error pkg_check_modules Closed zansibar opened this Issue May 24, 2012 · 17 comments Projects None pkg_check_modules not found yet Labels os/mac-osx Milestone No milestone Assignees No one assigned 15 participants zansibar commented May 24, 2012 I installed this pkg_check_modules example a month ago on OSX and it went fine, I had to reinstall osx and now I am running into problems. ./configure: line 4781: syntax error near unexpected token USB,'
./configure: line 4781:PKG_CHECK_MODULES(USB,
Pkg_prog_pkg_config Syntax Error
libusb-1.0 >= 1.0.0,,' I already installed libusb: $ pkg-config --libs libusb -L/usr/local/lib -lusb $ pkg-config --libs libusb-1.0 -L/usr/local/lib -lusb-1.0 if I comment out the line 4781 from configure which causes the problem then it creates the make file but the makefile doesn't Include or link correctly. I can compile it by adding -lusb-1.0 to the gcc command (also added -I/usr/local/include/libusb to the makefile) gcc -g -O2 install pkg-config -o st-util gdbserver/st_util-gdb-remote.o gdbserver/st_util-gdb-server.o mingw/st_util-mingw.o libstlink.a -lusb-1.0 Any ideas why I don't have this USB token? What should it be? karlp commented May 25, 2012 can we remove autotools now? It's causing more problems. sasai commented May 29, 2012 It seems the same trouble I had on OSX using homebrew. In my case, it works well after adding a line "/usr/local/share/aclocal" in /usr/share/aclocal/dirlist file. See: http://stackoverflow.com/questions/3522248/how-do-i-compile-jzmq-for-zeromq-on-osx lestofante commented Jun 5, 2012 same problem here on Arch linux x86_64, gcc4.7 and autoconf 2.69... How can i solve? tomorrow i'll try fall back to autoconf 2.13. kevincook commented Jun 20, 2012 I'm having this issue today. I've read that this issue can occur when your pkg.m4 file isn't in some sane directory. It will cause the aclocal.m4 file to not contain the PKG_CHECK_MODULES macro. This is true for me. by modifying the autogen.sh file to execute aclocal --force -I /opt/local/share/aclocal after the autoreconf line, i find the PKG_CHECK_MODULES macro in the generated aclocal.m4 file. Unfortunate it does not resolve my issue. kevincook commented Jun 20, 2012 resolved my issue by adding: ACLOCAL_AMFLAGS = -I /opt/local/share/aclocal to Makefile.am mkv123 commented Aug 24, 2012 I can confirm that adding ACLO
Support Search GitHub This repository Watch 706 Star 15,019 Fork 1,087 syntax error near unexpected token glib firehol/netdata Code Issues 144 Pull requests 14 Projects 5
Pkg_check_modules Zlib Zlib
Wiki Pulse Graphs New issue ./configure: line 4860: syntax error near unexpected token `newline' #98
Configure Syntax Error Near Unexpected Token
Closed roottox opened this Issue Mar 31, 2016 · 8 comments Projects None yet Labels installation help packaging Milestone No milestone Assignees No one https://github.com/texane/stlink/issues/83 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 commented Mar 31, 2016 I commented out in the configure.rc file the following line if test "${enable_plugin_nfacct}" = "yes"; https://github.com/firehol/netdata/issues/98 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 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
Support Search GitHub This repository Watch 35 Star 254 Fork 70 brianb/mdbtools Code Issues https://github.com/brianb/mdbtools/issues/48 28 Pull requests 8 Projects 0 Pulse Graphs New issue https://coffeecode.net/archives/208-PKG_CHECK_MODULES-syntax-error-near-unexpected-token-DEPS,.html ./configure: line 11613: syntax error near unexpected token `GLIB,' ./configure: line 11613: `PKG_CHECK_MODULES(GLIB, glib-2.0, ,' #48 Closed leipzig opened this Issue Mar 13, 2014 · 5 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 4 participants syntax error 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: `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 syntax error near 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 # 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 comp
while wondering why your perfectly good PKG_CHECK_MODULES() macro, as cut and paste directly from the recommended configure.ac entry for the package you're trying to integrate (in this case libmemcached), and you get the error message PKG_CHECK_MODULES syntax error near unexpected token `DEPS,' on one system and not on another, it's probably because you're missing the pkg-config package on the failing system. It would be nice if the error message gave you a clue, but it doesn't and probably can't, because the macro simply doesn't exist until the package is installed. So I'm telling you. Go forth and code now that that irritation is gone. Posted by Dan Scott in Coding at 17:35 | Comments (2) Comments Display comments as (Linear | Threaded) Dude, you just saved me. I wish this was closer to the top of the list of Google results... #1 Lee Trout (Homepage) on 2011-11-29 01:31 (Reply) For those finding this thread (and I'll go ahead and +1 it up at google so perhaps a few more do): Old versions of pkg-config will also cause you grief as they may not contain the macro. To update: http://www.freedesktop.org/wiki/Software/pkg-config Installation is classic "./configure, make, sudo make install" #2 Tom Buttner on 2012-05-04 15:23 (Reply) Add Comment Name Email Homepage In reply to [ Top level ]#1: Lee Trout on 2011-11-29 01:31 #2: Tom Buttner on 2012-05-04 15:23 Comment Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.Standard emoticons like :-) and ;-) are converted to images.E-Mail addresses will not be displayed and will only be used for E-Mail notifications. Remember Information? Subscribe to this entry Quicksearch About Me I'm Dan Scott: barista, library geek, and free-as-in-freedom software developer. I hack on projects such as the Evergreen open-source ILS project and PEAR's File_MARC package . By day I'm the Systems Librarian for Laurentian University. You can reach me by email at dan@coffeecode.net. License This work is licensed under a Creative Commons Attribution-Share Alike 2.5 Canada License. Categories Android (4) Coffee (2) Databases Apache Derby (6) DB2 (6) MySQL (1) PostgreSQL (7) FSOSS (7) Libraries (12) Coding (104) Evergreen