Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2 Compilation problem

closed
nobody
None
5
2003-04-03
2003-02-23
Pierre Pronchery
No

XQF didn't compile on my system:
linux 2.4.20, glibc 2.2.5, gcc 3.2.1, glib and gtk
1.2.10, zlib 1.1.4.

Summary of the error, happening with src/q3maps.c (many
similar lines stripped):
In file included from q3maps.c:32:
zip/unzip.h:120: parse error before
"unzStringFileNameCompare"
zip/unzip.h:122: warning: type defaults to `int' in
declaration of `unzStringFileNameCompare'
zip/unzip.h:122: warning: data definition has no type
or storage class
<snip, and then warnings:>
q3maps.c: In function `findq3maps_zip':
q3maps.c:43: warning: assignment makes pointer from
integer without a cast
/usr/include/glib-1.2/glib.h: At top level:
q3maps.c:195: warning: `q3_print_maps' defined but not used

I found that ZEXPORT was not defined after zlib.h and
zconf.h, so I defined it myself to be ignored:
#ifndef ZEXPORT
#define ZEXPORT
#endif

Then I got xqf to compile, and run.
A new opportunity for me to convince my geek gamer
friends to boot linux more often ;)

Discussion

  • Associated patch

     
    Attachments
  • Ludwig Nussel
    Ludwig Nussel
    2003-03-10

    Logged In: YES
    user_id=333900

    applied, thanks.

     
  • Alex Burger
    Alex Burger
    2003-04-03

    • status: open --> closed