Subject: pkg/8437: Clanlib problems
To: None <>
From: None <>
List: netbsd-bugs
Date: 09/18/1999 13:12:44
>Number:         8437
>Category:       pkg
>Synopsis:       Clanlib&GGI problem, installation problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 18 12:20:00 1999
>Originator:     Wiz
>Release:        NetBSD-1.4.1/i386 release
System: NetBSD 1.4.1 NetBSD 1.4.1 (HIRO) #0: Tue Sep 14 19:22:33 CEST 1999 i386

When libggi from the packaging system is installed, compilation
of ClanLib fails.

Also, Clanlib installed to /usr/local, instead of my /usr/pkg
or /usr/X11R6 (where I think the packaging system believed it would

games/pacman also didn't work. The first problem was that
/usr/local/include was not in the compiler options, because
ClanLib shouldn't be there; when I added the directory to the
CFLAGS and LDFLAGS, it also didn't work:

Building datafile pacman.scr

ClanLib - 'We can even do sprites...' - Linux version.

ClanLib: No global CL_ClanApplication instance!!!
gmake: *** [pacman.dat] Error 255
*** Error code 2


clanstring.h also seems to have a problem:
/usr/local/include/ClanLib/Common/clanstring.h: In method `char * CL_String::float_to_string(const char *, float)':
In file included from /usr/local/include/ClanLib/clanlib.h:30,
                 from objects.cpp:19:
/usr/local/include/ClanLib/Common/clanstring.h:148: warning: implicit declaration of function `int fcvt(...)'
/usr/local/include/ClanLib/Common/clanstring.h:148: warning: initialization to `const char *' from `int' lacks a cast

cd /usr/pkgsrc/graphics/libggi
make install
cd ../clanlib/

with the fix below, `make install' doesn't do what it should.
Add the configure-option --disable-ggi (or make it compile).

Don't know about the other problems.