Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./configure: 12102: Syntax error: word unexpected (expecting ")") #49

Closed
niklaas opened this issue Oct 23, 2015 · 4 comments
Closed

./configure: 12102: Syntax error: word unexpected (expecting ")") #49

niklaas opened this issue Oct 23, 2015 · 4 comments

Comments

@niklaas
Copy link

niklaas commented Oct 23, 2015

I get the following error during compilation on a FreeBSD system:

$ ./autogen.sh 
-----------8<----------------
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd10.1 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether make supports nested variables... (cached) yes
checking for cc option to accept ISO C99... none needed
./configure: 12102: Syntax error: word unexpected (expecting ")")
@dequis
Copy link
Member

dequis commented Oct 23, 2015

Works for me in freebsd 10.1. Do you have all the dependencies installed? (autoconf, automake, libtool, bitlbee, glib, json-glib, zlib). Do you use a weird /bin/sh? Maybe try running "bash ./configure"

@niklaas
Copy link
Author

niklaas commented Oct 24, 2015

Everything is there:

$ find / -name 'zlib' 2&>/dev/null
/basejail/usr/src/sys/modules/zlib
$ pkg info autoconf automake glib json-glib libtool bitlbee
autoconf-2.69
automake-1.15_1
glib-2.44.1_2
json-glib-1.0.4
libtool-2.4.6
bitlbee-3.4.1_4

Normally, I use zsh but using bash gives the same error.

$ bash ./autogen.sh 
--------8<--------
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether make supports nested variables... (cached) yes
checking for cc option to accept ISO C99... none needed
./configure: 12102: Syntax error: word unexpected (expecting ")")
$ cat -n configure | sed -n '12095,12115p'
 12095  # Check whether --with-plugindir was given.
 12096  if test "${with_plugindir+set}" = set; then :
 12097    withval=$with_plugindir; plugindir="$with_plugindir"
 12098
 12099  fi
 12100
 12101
 12102  PKG_CHECK_MODULES(BITLBEE, bitlbee >= 3.4)
 12103  PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.32.0 gobject-2.0)
 12104  PKG_CHECK_MODULES(JSON, json-glib-1.0 >= 0.14.0)
 12105  PKG_CHECK_MODULES(ZLIB, zlib)
 12106
 12107
 12108       if test -z "$GLIB_GENMARSHAL"; then :
 12109    GLIB_GENMARSHAL=`$PKG_CONFIG --variable="glib_genmarshal" "glib-2.0"`
 12110  fi
 12111       if test -n "$GLIB_GENMARSHAL"; then :
 12112
 12113  fi
 12114
 12115  if test -z "$GLIB_GENMARSHAL"; then :
$ bash ./configure
--------8<--------
checking for cc option to accept ISO C99... none needed
./configure: line 12102: syntax error near unexpected token `BITLBEE,'
./configure: line 12102: `PKG_CHECK_MODULES(BITLBEE, bitlbee >= 3.4)'

Unfortunately, I am only acquainted with compiling to a limited extent.

@jgeboski
Copy link
Member

Do you have pkgconfig installed?

@niklaas
Copy link
Author

niklaas commented Oct 24, 2015

This was it. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants