make: cannot find -lrsvg-2

Discussions about the WinBoard protocol. Here you can also report bugs and request new features.

Moderators: hgm, Andres Valverde

make: cannot find -lrsvg-2

Postby x-board » 05 Aug 2015, 14:58

Hello,

I get the following output when trying to compile xboard-4.8.0.

bash-4.1# make
make all-recursive
make[1]: Entering directory `/initrd/mnt/dev_ro2/ProgramFiles/xboard-4.8.0'
Making all in po
make[2]: Entering directory `/initrd/mnt/dev_ro2/ProgramFiles/xboard-4.8.0/po'
make[2]: Leaving directory `/initrd/mnt/dev_ro2/ProgramFiles/xboard-4.8.0/po'
make[2]: Entering directory `/initrd/mnt/dev_ro2/ProgramFiles/xboard-4.8.0'
CC backend.o
CC book.o
CC childio.o
CC gamelist.o
CC ngamelist.o
CC lists.o
CC moves.o
CC parser.o
CC pgntags.o
CC uci.o
CC board.o
CC draw.o
CC dialogs.o
CC engineoutput.o
CC nengineoutput.o
CC evalgraph.o
CC nevalgraph.o
CC history.o
CC nhistory.o
CC menus.o
CC usounds.o
CC usystem.o
CC xaw/xboard.o
CC xaw/xengineoutput.o
CC xaw/xgamelist.o
CC xaw/xhistory.o
CC xaw/xoptions.o
CCLD xboard
/usr/lib/gcc/i486-slackware-linux/4.4.4/../../../../i486-slackware-linux/bin/ld: cannot find -lrsvg-2
collect2: ld returned 1 exit status
make[2]: *** [xboard] Error 1
make[2]: Leaving directory `/initrd/mnt/dev_ro2/ProgramFiles/xboard-4.8.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/initrd/mnt/dev_ro2/ProgramFiles/xboard-4.8.0'
make: *** [all] Error 2
x-board
 
Posts: 9
Joined: 05 Aug 2015, 13:42

Re: make: cannot find -lrsvg-2

Postby H.G.Muller » 05 Aug 2015, 15:18

That probably means you don't have the rsvg library (librsvg?) installed, or have it installed in a place where gcc cannot find it.

It is a bit strange that ./configure did not flag this. What Linux distro are you using?
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: make: cannot find -lrsvg-2

Postby x-board » 05 Aug 2015, 17:25

I'm using Lighthouse Pup 5.03G and Devx-LHP_503.sfs C/C++ compiling environment.
x-board
 
Posts: 9
Joined: 05 Aug 2015, 13:42

Re: make: cannot find -lrsvg-2

Postby H.G.Muller » 05 Aug 2015, 19:53

Can you post the output you get during ./configure ?
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: make: cannot find -lrsvg-2

Postby x-board » 06 Aug 2015, 16:20

bash-4.1# ./configure
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
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... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
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... no
checking for makeinfo... makeinfo
checking for nroff... nroff -man
checking for awk... /bin/awk
checking for perl... /usr/bin/perl
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
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
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for CAIRO... yes
checking for xdg-mime... /usr/bin/xdg-mime
checking for xdg-desktop-menu... /usr/bin/xdg-desktop-menu
checking for xdg-icon-resource... /usr/bin/xdg-icon-resource
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking X11/Intrinsic.h usability... yes
checking X11/Intrinsic.h presence... yes
checking for X11/Intrinsic.h... yes
checking X11/Xaw/Dialog.h usability... yes
checking X11/Xaw/Dialog.h presence... yes
checking for X11/Xaw/Dialog.h... yes
checking whether ptys or pipes should be used... pipes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cmail
config.status: creating po/Makefile.in
config.status: creating osxapp/Info.plist
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing test-stamp-h commands
config.status: executing chmod-cmail commands

Configurations summary:

prefix: /usr/local
datarootdir: ${prefix}/share
datadir: ${datarootdir}
gamedatadir: $(datadir)/games/xboard
desktopdir: $(datadir)/applications
mimedir: $(datadir)/mime/packages
iconsdir: $(datadir)/icons/hicolor/48x48/apps
svgiconsdir: $(datadir)/icons/hicolor/scalable/apps
infodir: ${datarootdir}/info (info files will go here)
sysconfdir: ${prefix}/etc (xboard.conf will go here)

update mimedb: yes

NLS support: yes

GTK: no
Xaw3d: no
Xaw: yes

ptys: pipes
zippy: no
sigint: yes
<root> /mnt/sdc1/ProgramFiles/xboard-4.8.0
x-board
 
Posts: 9
Joined: 05 Aug 2015, 13:42

Re: make: cannot find -lrsvg-2

Postby H.G.Muller » 06 Aug 2015, 18:58

It seems that ./configure does not check for the rsvg plotting library. (Only for CAIRO.) This explains why the ./configure could succeed while you apparently don't have that library installed. This is to be considered a bug in the configure process. I will notify Arun Persaud of this, as he is the one that knows about such things. (My Linux knowledge is only scanty.)

Fixing this would not help you, though: it would only mean that you get an error message during configure that the library is missing (although hopefully a more informative one), rather than during compiling. (As you never getto do the latter, as no makefile will be produced.)

The only solution to your problem is to instal the rsvg library. On my Ubuntu I have the packages librsvg2-2 and librsvg2-dev installed.

BTW, note that it is better to build the GTK version, through adding the --with-gtk option to ./configure. (Both need librsvg, though.)
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: make: cannot find -lrsvg-2

Postby x-board » 07 Aug 2015, 17:06

Thanks. I don't have much experience compiling on Linux.

I couldn't find the lrsvg-2. Is any librsvg2-2 and librsvg2-dev good for it? My computer doesn't have internet, so I can download only on public Windows computers. Sorry if this is not really an xboard problem.

If there is some other Linux where xboard compiles right after installing the operating system (and perhaps the compiling environment), without Linux internet connection, I could try that. Of course it would be nicer not to have separate operating systems for each program :)
x-board
 
Posts: 9
Joined: 05 Aug 2015, 13:42

Re: make: cannot find -lrsvg-2

Postby H.G.Muller » 07 Aug 2015, 19:56

I am also not a very experienced Linux user, but I thought that the basic installs never contain enough to compile anything. On Ubuntu not even the C compiler (gcc) is standard. To compile you will need the compiler (obviously), but also a large number of development support for libraries, depending on which libraries the program in question uses. The -lrsvg-2 against which gcc complains is a special case of -lXXX, specifying that the compiler should include routines in the library libXXX.a. So you would need the library librsvg-2.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: make: cannot find -lrsvg-2

Postby x-board » 10 Aug 2015, 17:04

I found and installed librsvg-2.40.9-i486-1.txz but still get errors, not found, undefinded reference etc.

Maybe it's a wrong library.

Is this the right place to solve the problem or should I go to some Linux forum?
x-board
 
Posts: 9
Joined: 05 Aug 2015, 13:42

Re: make: cannot find -lrsvg-2

Postby F. Bluemers » 10 Aug 2015, 17:24

x-board wrote:I found and installed librsvg-2.40.9-i486-1.txz but still get errors, not found, undefinded reference etc.

Maybe it's a wrong library.

Is this the right place to solve the problem or should I go to some Linux forum?


It might be confusing but as you are compiling you are "developing" so to say.
You need to install an xxxx-dev package library like for instance "librsvg2-dev"
Best
Fonzy
F. Bluemers
 
Posts: 175
Joined: 04 Sep 2008, 16:56
Location: Netherlands

Re: make: cannot find -lrsvg-2

Postby x-board » 12 Aug 2015, 15:48

I couldn't find a librsvg2-dev for slackware (I don't know if it needs to be slackware).

Tried to join Puppy linux forum but couldn't, no confirmation and cannot log in.

I compiled Stockfish 6 without installing anything extra in addition to the compiling environment sfs file, and with no errors.

Perhaps I'm just out of luck with the problem. Thanks anyway.
x-board
 
Posts: 9
Joined: 05 Aug 2015, 13:42

Re: make: cannot find -lrsvg-2

Postby F. Bluemers » 12 Aug 2015, 18:04

x-board wrote:I couldn't find a librsvg2-dev for slackware (I don't know if it needs to be slackware).

Tried to join Puppy linux forum but couldn't, no confirmation and cannot log in.

I compiled Stockfish 6 without installing anything extra in addition to the compiling environment sfs file, and with no errors.

Perhaps I'm just out of luck with the problem. Thanks anyway.


I know next to nothing of slackware but isn't this it? : http://ftp.slackware.com/pub/cygwin/x86 ... vg2-devel/

anyway if that won't work:
If you just need a gtk xboard version:
I believe Jim Abblet build gtk versions on his chess distribution (probably not as recent as 4.8 )
http://jimablett.net63.net/chess_755/chess-distros.html
Best
Fonzy
F. Bluemers
 
Posts: 175
Joined: 04 Sep 2008, 16:56
Location: Netherlands

Re: make: cannot find -lrsvg-2

Postby x-board » 13 Aug 2015, 16:40

Thanks!

I don't even know if Lighthouse Pup is slackware, but it is able to recognize and install slackware txz files.

Lighthouse Pup a 32-bit system, so is your link with "x86_64" ok? The address has cygwin subdirectory, isn't that for Windows software?

I cannot access the other site, it is blocked and categorized as malware site.

"URL: jimablett.net63.net/chess_755/chess-distros.html
Category: malware-sites"

It seems that I'm unable to register at the Puppy Linux Forum, which would probably be the right place for these questions.
x-board
 
Posts: 9
Joined: 05 Aug 2015, 13:42

Re: make: cannot find -lrsvg-2

Postby F. Bluemers » 13 Aug 2015, 17:26

x-board wrote:Thanks!

I don't even know if Lighthouse Pup is slackware, but it is able to recognize and install slackware txz files.

Lighthouse Pup a 32-bit system, so is your link with "x86_64" ok? The address has cygwin subdirectory, isn't that for Windows software?

I cannot access the other site, it is blocked and categorized as malware site.

"URL: jimablett.net63.net/chess_755/chess-distros.html
Category: malware-sites"

It seems that I'm unable to register at the Puppy Linux Forum, which would probably be the right place for these questions.

ah yes,cygwin is probably not usefull at all. :(
F. Bluemers
 
Posts: 175
Joined: 04 Sep 2008, 16:56
Location: Netherlands

Re: make: cannot find -lrsvg-2

Postby F. Bluemers » 13 Aug 2015, 17:50

Can you find it using "ppm" ?
It should be in the package that comes with puppy 5
http://www.diddywahdiddy.net/Puppy500/L ... p_Packages
...
librsvg2-2 2.26.2
librsvg2-bin 2.26.2
librsvg2-common 2.26.2
librsvg2-dev 2.26.2
...


http://www.linuceum.com/Desktop/installAppsFromPPM.php
F. Bluemers
 
Posts: 175
Joined: 04 Sep 2008, 16:56
Location: Netherlands

Re: make: cannot find -lrsvg-2

Postby x-board » 17 Aug 2015, 17:50

Thanks for your help.

I found what seems to be(?) the official page for suitable packages, but the links don't work.

http://www.smokey01.com/bruceb/ibiblio_quirky.html

Quirky is set in the ppm, so I guess it should work, if the files were there. Bad luck.
x-board
 
Posts: 9
Joined: 05 Aug 2015, 13:42

Re: make: cannot find -lrsvg-2

Postby F. Bluemers » 17 Aug 2015, 21:33

x-board wrote:Thanks for your help.

I found what seems to be(?) the official page for suitable packages, but the links don't work.

http://www.smokey01.com/bruceb/ibiblio_quirky.html

Quirky is set in the ppm, so I guess it should work, if the files were there. Bad luck.


I managed to find these:
http://puppylinux.ca/vintage/pet_packag ... 3-pup2.pet
http://ftp.nluug.nl/ibiblio/distributio ... 3-pup4.pet
http://puppylinux.ca/vintage/pet_packag ... 3-pup4.pet

Maybe the last one might work.The ftp sight is _very_ slow and the first is for an even older puppy version.
edit: Actually those links are librsvg-dev files not even librsvg2-dev :evil:
Otherwise you will just have to enter some puppy forum or email someone working on it.
There are enough rpm's,just not for puppy (http://rpmfind.net/linux/rpm2html/searc ... tem=&arch=)
Best
Fonzy
F. Bluemers
 
Posts: 175
Joined: 04 Sep 2008, 16:56
Location: Netherlands

Re: make: cannot find -lrsvg-2

Postby x-board » 18 Aug 2015, 14:29

I tried to register to a couple of forums and email their managers, but didn't have any success or even replies.

I wonder if this forum is a proper place to ask someone which linux without internet connection works for developing x-board? The description of "Winboard and related Topics" seems to fit that problem.
x-board
 
Posts: 9
Joined: 05 Aug 2015, 13:42


Return to WinBoard development and bugfixing

Who is online

Users browsing this forum: No registered users and 7 guests