Post Reply 
 
Thread Rating:
  • 5 Votes - 3.2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
svn HEAD (rev 1090) does not compile on Linux
Author Message
Aquous Offline
Junior Member
**

Posts: 5
Joined: May 2010
Reputation: 0
Post: #1
svn HEAD (rev 1090) does not compile on Linux
... or at least, on my amd64 Gentoo Linux:

Code:
[ 15%] Building CXX object CMakeFiles/fex.dir/fex/fex/Data_Reader.cpp.o
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp: In member function ‘virtual const char* Gzip_File_Reader::read_v(void*, int)’:
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:735:35: error: invalid conversion from ‘void*’ to ‘gzFile_s*’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:735:35: error:   initializing argument 1 of ‘int gzread(gzFile_s*, void*, unsigned int)’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:739:35: error: invalid conversion from ‘void*’ to ‘gzFile_s*’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:739:35: error:   initializing argument 1 of ‘const char* convert_gz_error(gzFile_s*)’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp: In member function ‘virtual const char* Gzip_File_Reader::seek_v(int)’:
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:749:27: error: invalid conversion from ‘void*’ to ‘gzFile_s*’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:749:27: error:   initializing argument 1 of ‘off_t gzseek(gzFile_s*, off_t, int)’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:750:34: error: invalid conversion from ‘void*’ to ‘gzFile_s*’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:750:34: error:   initializing argument 1 of ‘const char* convert_gz_error(gzFile_s*)’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp: In member function ‘void Gzip_File_Reader::close()’:
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:759:23: error: invalid conversion from ‘void*’ to ‘gzFile_s*’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:759:23: error:   initializing argument 1 of ‘int gzclose(gzFile_s*)’
make[2]: *** [CMakeFiles/fex.dir/fex/fex/Data_Reader.cpp.o] Error 1

I'm not a programmer so I don't even know if it's the code or my system that's broken. So I'm asking you guys. Angel
03-24-2012 08:59 PM
Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade
*******

Posts: 1,491
Joined: Mar 2008
Reputation: 16
Post: #2
RE: svn HEAD (rev 1090) does not compile on Linux
for compile related issues its better to post on the project tracker, that way bgk will recieve a notification of the new issue.

anyhow hes been directed here.

(This post was last modified: 03-24-2012 09:22 PM by Squall Leonhart.)
03-24-2012 09:15 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Aquous Offline
Junior Member
**

Posts: 5
Joined: May 2010
Reputation: 0
Post: #3
RE: svn HEAD (rev 1090) does not compile on Linux
ok, thanks. Will do in the future Smile
03-25-2012 05:59 PM
Find all posts by this user Quote this message in a reply
bgK Offline
VBA-M Contributor
*****

Posts: 101
Joined: Apr 2008
Reputation: 1
Post: #4
RE: svn HEAD (rev 1090) does not compile on Linux
Should be fixed in r1091.
03-25-2012 06:10 PM
Find all posts by this user Quote this message in a reply
Aquous Offline
Junior Member
**

Posts: 5
Joined: May 2010
Reputation: 0
Post: #5
RE: svn HEAD (rev 1090) does not compile on Linux
Yes, this problem is fixed Smile
However, the build now fails at another stage:
Code:
[ 33%] Building C object CMakeFiles/vbamcore.dir/src/common/memgzio.c.o
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:88:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:89:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:90:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:91:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:92:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:93:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:94:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:374:13: warning: conflicting types for 'check_header'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:374:13: error: static declaration of 'check_header' follows non-static declaration
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:324:2: note: previous implicit declaration of 'check_header' was here
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:427:12: error: static declaration of 'destroy' follows non-static declaration
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:274:33: note: previous implicit declaration of 'destroy' was here
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:651:14: error: conflicting types for 'getLong'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:526:10: note: previous implicit declaration of 'getLong' was here
make[2]: *** [CMakeFiles/vbamcore.dir/src/common/memgzio.c.o] Error 1
(adding "-k" to MAKEOPTS doesn't show any more failures, so this might very well be the last one)
03-26-2012 01:35 AM
Find all posts by this user Quote this message in a reply
Aquous Offline
Junior Member
**

Posts: 5
Joined: May 2010
Reputation: 0
Post: #6
RE: svn HEAD (rev 1090) does not compile on Linux
For future reference, this second problem was a Gentoo specific problem (https://bugs.gentoo.org/show_bug.cgi?id=383179). A workaround is to set CPPFLAGS="-DOF=_Z_OF".
03-29-2012 12:26 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: