Howdy. I grabbed the latest revision (6472) of the code from SVN and went to compile, and received the following error:
physfs_vfs.c:368: error: initialization from incompatible pointer type
OS is FC10; I did install sqlite myself, since FC10 only provides 3.5.9 via yum. I kinda wondered if, when I was compiling, I was referencing some older version of sqlite3.h hidden somewhere on my system, but a find didn't yield any answers. The only sqlite3.h file I was able to locate on my system is in /usr/include, and is version 3.6.7
gcc version is 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)
Would appreciate any insight anyone could provide!
UPDATE: Setting the value on that line to be NULL instead of a reference to the xDlSym function and declaring the xDlSym function as WZ_DECL_UNUSED seemed to work around this problem; I was able to compile the code successfully, and the game seems to run. However, I'm not sure exactly how dangerous this solution is. . .
Issues compiling r6472 (physfs_vfs.c:368)
-
cubic1271
- New user
- Posts: 2
- Joined: 22 Dec 2008, 04:21
-
Per
- Warzone 2100 Team Member

- Posts: 3780
- Joined: 03 Aug 2006, 19:39
Re: Issues compiling r6472 (physfs_vfs.c:368)
Why did you install sqlite yourself? I run Fedora 10 here with latest Warzone trunk and have no problem with the Fedora-supplied version of sqlite.
-
cubic1271
- New user
- Posts: 2
- Joined: 22 Dec 2008, 04:21
Re: Issues compiling r6472 (physfs_vfs.c:368)
Could just be missing something, but:
$ yum info sqlite-devel
Available Packages
Name : sqlite-devel
Arch : i386
Version : 3.5.9
Release : 2.fc10
Size : 84 k
Repo : fedora
...
is what I show in yum. When I tried installing and using this package to build WZ, configure failed because the build demands sqlite version >=3.6.0.
Which repositories / version of sqlite are you using?
$ yum info sqlite-devel
Available Packages
Name : sqlite-devel
Arch : i386
Version : 3.5.9
Release : 2.fc10
Size : 84 k
Repo : fedora
...
is what I show in yum. When I tried installing and using this package to build WZ, configure failed because the build demands sqlite version >=3.6.0.
Which repositories / version of sqlite are you using?