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 gives an error on Ubuntu 10.10 (x64) #1

Closed
discofever opened this issue Dec 9, 2010 · 13 comments
Closed

./configure gives an error on Ubuntu 10.10 (x64) #1

discofever opened this issue Dec 9, 2010 · 13 comments

Comments

@discofever
Copy link

    ./configure: line 21755: syntax error near unexpected token `GNUTLS,'
    ./configure: line 21755: `PKG_CHECK_MODULES(GNUTLS, gnutls >= 2.4.0, , with_client_tls=no)'

I have all packages installed
libgnutls-dev 2.8.6-1
libgnutls26 2.8.6-1
gnutls-bin 2.8.6-1

@kanaka
Copy link
Owner

kanaka commented Dec 9, 2010

Can you pull down the latest tree of libvncserver from upstream and see if it builds successfully on 10.10. I don't have easy access to a 10.10 system to replicate your problem. If the upstream version builds for you then I will pull it down and see if I can figure out the difference. If it doesn't build and you run into the same problem, then it's probably something about your installation, or it's a bug that should be filed upstream.

git://libvncserver.git.sourceforge.net/gitroot/libvncserver/libvncserver

Thanks. I'll leave the bug open until you post back results.

@discofever
Copy link
Author

Ok, pulled upstream. Same error. And no clue on what's wrong. Maybe a syntax error ? but looks ok to me.

@discofever
Copy link
Author

Ok fixed, was missing pkg-config package.

@tobitailor
Copy link

How did you solve the issue in detail? I've run into the same on Mac OSX 10.6.

@kanaka
Copy link
Owner

kanaka commented Mar 16, 2011

tobeytailor, according to discofever the error he was seeing was because the pkg-config package was not installed on his system. pkg-config provides the PKG_CHECK_MODULES m4 autoconf macro (http://www.flameeyes.eu/autotools-mythbuster/pkgconfig/pkg_check_modules.html).

Are you seeing exactly the same error as discofever? Do you have pkg-config installed?

Can you try running the following:

pkg-config gnutls --libs

You should get output similar to:

-lgnutls

@tobitailor
Copy link

Yes, I see the same error as discofever. But I have pkg-config installed. Output of the command listed above is:

-L/usr/local/Cellar/gnutls/2.10.5/lib -lgnutls

@kanaka
Copy link
Owner

kanaka commented Mar 23, 2011

The PKG_CHECK_MODULES m4 macro comes from the pkg.m4 file. On my system, the pkg-config package installs it to /usr/share/aclocal/pkg.m4.

My guess is that when autoconf is run (by ./autogen.sh) it's not finding the pkg.m4 file so it leaves the PKG_CHECK_MODULES macro unexpanded in the configure script.

Probably the best thing is to try and figure out why autoconf isn't finding pkg.m4.

Alternately, you might be able to re-run autoconf with the -I (or -B) option to point to the path where pkg-config installed pkg.m4 (or add the path to the autoconf call in autogen.sh and run that again).

@kanaka
Copy link
Owner

kanaka commented Mar 23, 2011

Actually, aclocal is the command that pulls in the *.m4 files. I notice the autogen.sh has a variable used to add to the aclocal command line.

So this might work:

ACLOCAL_FLAGS="-I /path/to/m4/dir" ./autogen.sh

Substitute in the directory containing pkg.m4 for that path.

@kanaka
Copy link
Owner

kanaka commented Mar 23, 2011

Another hint: if aclocal pulls in the pkg.m4 file you should see PKG_CHECK_MODULES defined in the aclocal.m4 file generated at the top of the libvncserver directory after aclocal (i.e. autogen.sh) runs.

@tobitailor
Copy link

Yes, setting the ACLOCAL_FLAGS environment variable works for me. Thanks a lot!

@kanaka
Copy link
Owner

kanaka commented Apr 6, 2011

Awesome!

@zhuyjgh
Copy link

zhuyjgh commented Aug 10, 2013

kanaka,Thanks! for me ACLOCAL_FLAGS="-I /usr/share/aclocal" ./autogen.sh worked!!
I find my pkg.m4 here:/usr/share/aclocal.

@dscho
Copy link
Contributor

dscho commented Mar 31, 2014

Please note that @kanaka is not a maintainer of LibVNCServer I just added an official GitHub repository for the project: https://github.com/LibVNC/libvncserver. Please consider opening the pull request there.

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

No branches or pull requests

5 participants