Skip to content

Conversation

@rofl0r
Copy link

@rofl0r rofl0r commented May 25, 2014

No description provided.

rofl0r added 4 commits May 25, 2014 00:13
the header was copied from an old glibc version for some reason
which conflicts with the modern posix conformant version in
the libc include dir.

In file included from TestEmu.cpp:35:0:
../getopt.h:115:20: error: declaration of C function 'int getopt()' conflicts with
In file included from /usr/include/zconf.h:452:0,
                 from /usr/include/zlib.h:34,
                 from ../unzip.h:68,
                 from ../System.h:23,
                 from ../GBA.h:23,
                 from TestEmu.cpp:28:
/usr/include/unistd.h:124:5: error: previous declaration 'int getopt(int, char* const*, const char*)' here
with the update to png 1.4 some structs were made private and new
accessor functions added.

../Util.cpp: In function 'bool utilWritePNGFile(const char*, int, int, u8*)':
../Util.cpp:90:20: error: invalid use of incomplete type 'png_struct {aka struct png_struct_def}'
In file included from ../Util.cpp:25:0:
/include/libpng15/png.h:869:16: error: forward declaration of 'png_struct {aka struct png_struct_def}'
../Util.cpp: In function 'gzFile_s* utilGzOpen(const char*, const char*)':
../Util.cpp:995:73: error: invalid conversion from 'int (*)(void*, void*, unsigned int)'
to 'int (*)(gzFile, voidp, unsigned int) {aka int (*)(gzFile_s*, void*, unsigned int)}' [-fpermissive]
the profiling code does not compile currently, and uses some glibc
specific profiling infrastructure that's not 64bit safe.

prof.cpp: In function 'void profCleanup()':
prof.cpp:274:44: error: cast from 'char*' to 'u32 {aka unsigned int}' loses precision [-fpermissive]
prof.cpp:305:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant