Again, lib "problems" when typing ./configure

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

Again, lib "problems" when typing ./configure

Postby velocidrom » 21 Jan 2014, 22:47

Hello!
I'm having troubles compiling xboard (the latest dev version). I already ran ./autogen.sh. My OS is lubuntu 13.04.
Here's the command I type:
Code: Select all
./configure --enable-zippy --with-gtk
, here's the output:
Code: Select all
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 make supports nested variables... yes
checking whether make supports nested variables... (cached) 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 gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for library containing strerror... none required
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
./configure: line 5430: gt_INTL_MACOSX: command not found
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for remsh... no
checking for rsh... rsh
checking for makeinfo... makeinfo
checking for nroff... nroff -man
checking for awk... /usr/bin/awk
checking for perl... /usr/bin/perl
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking return type of signal handlers... void
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for _getpty... no
checking for grantpt... yes
checking for setitimer... yes
checking for usleep... yes
checking for gettimeofday... yes
checking for random... yes
checking for gethostname... yes
checking for setlocale... yes
checking for getpseudotty in -lseq... no
checking whether compiler understands -Wall -Wno-parentheses... yes
checking for pkg-config... pkg-config
./configure: line 7251: syntax error near unexpected token `CAIRO,'
./configure: line 7251: `PKG_CHECK_MODULES(CAIRO,  cairo >= 1.2.0 librsvg-2.0 >= 2.14.0 )'

I've already downloaded and installed the packages cairo and librsvg (the latest dev versions) but the message is still the same and I'm unable to compile xboard for that reason.
Any idea is welcome.

P.S.:I know I already posted almost the exact same problem more than a year ago and its solution, but this time downloading the libraries didn't work.
velocidrom
 
Posts: 44
Joined: 25 Sep 2012, 01:20

Re: Again, lib "problems" when typing ./configure

Postby H.G.Muller » 22 Jan 2014, 07:47

The error message doesn't sound like it complains about a missing library. It sounds more like there is something wrong in the configure script itself. Unfortunately I know next to nothing about the configure process; I will have to ask Arun. I can check if I have this problem too. I don't generate a new ./configure too often, as usually the old one is still around. I am not sure which source file is used by ./autogen.sh to generate ./configure, but I guess there must have been a change in there that broke it.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Again, lib "problems" when typing ./configure

Postby velocidrom » 22 Jan 2014, 14:27

H.G.Muller wrote:The error message doesn't sound like it complains about a missing library. It sounds more like there is something wrong in the configure script itself. Unfortunately I know next to nothing about the configure process; I will have to ask Arun. I can check if I have this problem too. I don't generate a new ./configure too often, as usually the old one is still around. I am not sure which source file is used by ./autogen.sh to generate ./configure, but I guess there must have been a change in there that broke it.

Well thank you very much H.G.M.
I'll be waiting for any news.
velocidrom
 
Posts: 44
Joined: 25 Sep 2012, 01:20

Re: Again, lib "problems" when typing ./configure

Postby H.G.Muller » 22 Jan 2014, 22:09

I tested on my Linux system, building from a virgin directory after downloading from git, but I don't have any problems then. The line mentioned in your error message doesn't seem to occur in my ./configure at all. Can you post a few lines from this file here, around line 7251, so that Arun can see the context of the error when he looks here?
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Again, lib "problems" when typing ./configure

Postby arun » 23 Jan 2014, 07:02

Hi

looks to me as if your pkg-config program is missing some files to configure cairo correctly. Try installing a cairo-devel package for your distribution. This might solve the problem. You are probably looking for files like /usr/lib64/pkgconfig/cairo.pc which on my distro (opensuse 13.1) belong to cairo-devel.rpm, so perhaps it's similar on your distro... If that doesn't help, feel free to contact me offline (arun@nubati.net).

Arun
arun
 
Posts: 6
Joined: 16 May 2011, 17:59

Re: Again, lib "problems" when typing ./configure

Postby arun » 23 Jan 2014, 07:03

Also just FYI: you only need autogen.sh for the git repo, the tar-files should run with just configure, make and make install.

Arun
arun
 
Posts: 6
Joined: 16 May 2011, 17:59

Re: Again, lib "problems" when typing ./configure

Postby velocidrom » 23 Jan 2014, 17:13

H.G.Muller wrote:I tested on my Linux system, building from a virgin directory after downloading from git, but I don't have any problems then. The line mentioned in your error message doesn't seem to occur in my ./configure at all. Can you post a few lines from this file here, around line 7251, so that Arun can see the context of the error when he looks here?

Sure:
Code: Select all
 test -n "$PKGCONFIG" && break
done
test -n "$PKGCONFIG" || PKGCONFIG="pkgconfig_not_found"

if test "x$PKGCONFIG" = xpkgconfig_not_found; then :
  as_fn_error $? "cannot find pkg-config! Please install it." "$LINENO" 5
fi

PKG_CHECK_MODULES(CAIRO,  cairo >= 1.2.0 librsvg-2.0 >= 2.14.0 )



FRONTEND_CFLAGS=""
FRONTEND_LIBS=""


# Check whether --with-gtk was given.
if test "${with_gtk+set}" = set; then :
  withval=$with_gtk; with_GTK=$withval
else
  with_GTK="no"
fi

arun wrote:looks to me as if your pkg-config program is missing some files to configure cairo correctly. Try installing a cairo-devel package for your distribution. This might solve the problem.
Hello Arun!
Well I already installed all the libraries with "cairo" and librsvg I could, including libcairo2-dev and librsvg2-dev (as well as many, many others).
This didn't fix the problem.
arun wrote:Also just FYI: you only need autogen.sh for the git repo, the tar-files should run with just configure, make and make install.
Yes, I am aware of this. I absolutely want the latest dev version as it has a new feature I particularly love: ShowTbHits.

Under Ubuntu I had no problem in installing this version of xboard (about 3 days ago); I only get this problem in Lubuntu and I'm trying to "move" from Ubuntu to Lubuntu. I usually let 1 or 2 bot accounts on FICS using xboard, so it really matters to me.
velocidrom
 
Posts: 44
Joined: 25 Sep 2012, 01:20

Re: Again, lib "problems" when typing ./configure

Postby velocidrom » 23 Jan 2014, 17:30

It works guys! I must be very stupid! I had to probably type a command to remove some files, because I redownloaded the xboard.tar.gz file, uncompressed it and retried the command ./configure --enable-zippy --with-gtk and it worked!
I'm a happy man now :D

Thank you for your help.
velocidrom
 
Posts: 44
Joined: 25 Sep 2012, 01:20

Re: Again, lib "problems" when typing ./configure

Postby H.G.Muller » 23 Jan 2014, 23:34

Well, the latest official development release now also contains that patch, so a "pre-autogenned" tar ball of it should be available from GNU Savannah.

Please let me know if it works properly; I never tested it with an engine that actually supported tablebases! (I have no tablebases installed on my machine at all...) I also wonder:
*) Would it be useful to separately decide what to show in the panes for the different engines; now they always show the same columns.
*) Would it be useful to have command-line options to decide which columns to show? If this is considered a property of the window it would make sense to even make such an option persistent, but if each engine could have its own setting, we could have options -firstColumns / -secondColumns that could be installed with engines to adapt the view to what the engine provides.
*) Would it be important to reformat the entire memo content as soon as a column is opened or closed? This would be hard to do, because XBoard does not remember the old engine lines at all now, it just writes them in the memos. It could of course read them back from the memos, delete the closed columns, and then write it back. But that still would not help for opening a column, because it would not know what to put there now. So it really would require to store all lines received so far for the current search, and then replay the entire sequence under the new setting, after clearing the old contents. I wondered if that would all be worth it; it seemed to me people would hardly change which columns are displayed. (And of course even less so when this setting is made persistent.)
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 16 guests