You are not logged in.

#1 2007-07-09 17:55:27

god64
Member
From: Kingdom of Bavaria
Registered: 2007-07-09
Posts: 3
Website

clanlib compilation problems on archlinux

hello,


i have some trouble compiling clanlib on archlinux. maybe its not archlinux's fault, but the ati drivers, as it happens somewhere around opengl

system info:
archlinux/386 - current version
ati drivers 8.37.6

tried with clanlib 0.8 and 0.9svn

bails out at:

g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"0.9.0\" "-DPACKAGE_STRING=\"ClanLib 0.9.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"0.9.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_STDBOOL_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_DIRENT_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_MBSTATE_T=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALARM=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKET_H=1 -DSELECT_TYPE_ARG1=int "-DSELECT_TYPE_ARG234=(fd_set *)" "-DSELECT_TYPE_ARG5=(struct timeval *)" -DRETSIGTYPE=void -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DSTRERROR_R_CHAR_P=1 -DHAVE_BZERO=1 -DHAVE_GETCWD=1 -DHAVE_GETHOSTBYADDR=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_RMDIR=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_SQRT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOUL=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DUSE_I386_ASSEMBLER=1 -DHAVE_FSTAB_H=1 -DHAVE_LIBZ=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DUSE_GETADDR=1 -I. -g -O2 -I/usr/include/freetype2 -I/usr/include/mysql -fPIC -march=i686 -pipe -I../../Sources -MT sprite_description.lo -MD -MP -MF .deps/sprite_description.Tpo -c sprite_description.cpp -fPIC -DPIC -o .libs/sprite_description.o
In file included from ../../Sources/API/Display/texture.h:41,
from ../../Sources/API/Display/sprite_description.h:39,
from sprite_description.cpp:38:
../../Sources/API/Display/../GL/opengl_wrap.h:2577: error: '<anonymous>' has incomplete type
../../Sources/API/Display/../GL/opengl_wrap.h:2577: error: invalid use of 'CLvoid'
make[2]: *** [sprite_description.lo] Error 1
make[2]: Leaving directory `/home/god/src/ext/ClanLib-0.9/Sources/Display'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/god/src/ext/ClanLib-0.9/Sources'
make: *** [all-recursive] Error 1

and yes, i know there is a archlinux clanlib package, but it does not provide statical libraries and i need them. i do not have this problem on other distribs, although i do also not run any other distribs on a computer with a ati card, to be honest.

thanx in advance

Offline

#2 2007-07-11 18:07:33

LiFo2
Member
From: France
Registered: 2007-03-29
Posts: 25
Website

Re: clanlib compilation problems on archlinux

I have the same problem here. I also miss the static libraries. No idea what the problem is ... Could someone help us ?

I can't compile my app neither. I have the following problem :

In file included from /usr/include/ClanLib-0.8/ClanLib/Display/Collision/collision_outline.h:60,
                 from /usr/include/ClanLib-0.8/ClanLib/display.h:81,
                 from cacredits.h:5,
                 from cacredits.cpp:1:
/usr/include/ClanLib-0.8/ClanLib/Display/Collision/../../GL/opengl_wrap.h:2533: erreur: '<anonymous>' has incomplete type
/usr/include/ClanLib-0.8/ClanLib/Display/Collision/../../GL/opengl_wrap.h:2533: erreur: invalid use of 'CLvoid'

Last edited by LiFo2 (2007-07-11 18:18:29)

Offline

#3 2007-07-11 18:12:18

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: clanlib compilation problems on archlinux

are you trying to build using our PKGBUILD from abs?  I'm not sure how much of a difference that'd make, but you can try.  Run abs and look in /var/abs/extra/lib/clanlib.

copy that dir somewhere into your home, then edit the PKGBUILD to remove -disable-static then run makepkg to try to build.

Last edited by Cerebral (2007-07-11 18:12:48)

Offline

#4 2007-07-11 20:58:56

LiFo2
Member
From: France
Registered: 2007-03-29
Posts: 25
Website

Re: clanlib compilation problems on archlinux

Yes, same problem with the PKGBUILD from abs :

        if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"0.8.0\" -DPACKAGE_STRING=\"ClanLib\ 0.8.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"0.8.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DUSE_I386_ASSEMBLER=1 -DHAVE_FSTAB_H=1 -DHAVE_LIBZ=1 -DHAVE_LIBSDL_GFX=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DUSE_GETADDR=1  -I. -I.     -march=i686 -mtune=generic -O2 -pipe  -I../../Sources -MT setupdisplay.lo -MD -MP -MF "$depbase.Tpo" -c -o setupdisplay.lo setupdisplay.cpp; \
        then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi
 g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"0.8.0\" "-DPACKAGE_STRING=\"ClanLib 0.8.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"0.8.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DUSE_I386_ASSEMBLER=1 -DHAVE_FSTAB_H=1 -DHAVE_LIBZ=1 -DHAVE_LIBSDL_GFX=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DUSE_GETADDR=1 -I. -I. -march=i686 -mtune=generic -O2 -pipe -I../../Sources -MT setupdisplay.lo -MD -MP -MF .deps/setupdisplay.Tpo -c setupdisplay.cpp  -fPIC -DPIC -o .libs/setupdisplay.o
In file included from ../../Sources/API/Display/Collision/collision_outline.h:60,
                 from resourcedata_collisionoutline.h:39,
                 from setupdisplay.cpp:43:
../../Sources/API/Display/Collision/../../GL/opengl_wrap.h:2533: error: '<anonymous>' has incomplete type
../../Sources/API/Display/Collision/../../GL/opengl_wrap.h:2533: error: invalid use of 'CLvoid'
make[2]: *** [setupdisplay.lo] Error 1
make[2]: Leaving directory `/var/abs/local/clanlib/src/ClanLib-0.8.0/Sources/Display'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/abs/local/clanlib/src/ClanLib-0.8.0/Sources'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed.  Aborting...

Offline

#5 2007-07-11 21:04:34

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: clanlib compilation problems on archlinux

okay - I'll try to look into this tonight, and see what I can find.

Offline

#6 2007-07-12 05:26:36

LiFo2
Member
From: France
Registered: 2007-03-29
Posts: 25
Website

Re: clanlib compilation problems on archlinux

I forgot to say that it used to work with the same version of ClanLib, what makes me think that maybe it's on the GL side that the problem comes from.

Offline

#7 2007-07-18 19:20:19

LiFo2
Member
From: France
Registered: 2007-03-29
Posts: 25
Website

Re: clanlib compilation problems on archlinux

I found more information on ClanLib forum :
http://www.rtsoft.com/forums/showthread … plete+type

It has been solved in SVN version. In /usr/include/ClanLib-0.8/ClanLib/GL/opengl_wrap.h line 2533, you should just remove CLvoid.
Replace :
        typedef CLuint (CL_GLFUNC *ptr_glCreateProgramObjectARB)(CLvoid);
by
        typedef CLuint (CL_GLFUNC *ptr_glCreateProgramObjectARB)();

and it should work.

Offline

Board footer

Powered by FluxBB