Subject: compiling problem
To: None <tech-pkg@netbsd.org>
From: Nathan Langford <njl@sdf.lonestar.org>
List: tech-pkg
Date: 07/01/2003 16:32:52
Hi,

I'm attempting to compile "VisualBoy Advance" (a gameboy advance emulator)
on NetBSD, & it keeps complaining about an included header file "unzip.h".
Below is the attempted build with errors & a sample from "unzip.h".  Any
ideas what's wrong here?

Thanks,
-Nathan

c++ -DPACKAGE=\"VisualBoyAdvance\" -DVERSION=\"1.5\" -DYYTEXT_POINTER=1
-DHAVE_LIBPNG=1 -DHAVE_LIBZ=1 -DSTDC_HEADERS=1 -DHAVE_MALLOC_H=1
-DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ARPA_INET_H=1
-DHAVE_NETINET_IN_H=1  -I. -I.   -I/usr/pkg/include -I/usr/X11R6/include
-O2 -I/usr/pkg/include -I/usr/X11R6/include -I/usr/pkg/include/SDL
-I/usr/pkg/include -DSDL -DPROFILING -DBKPT_SUPPORT -fno-exceptions -DMMX
-DPROFILING -DDEV_VERSION -c GB.cpp
In file included from ../System.h:22,
                 from GB.cpp:24:
../unzip.h:132: syntax error before `('
../unzip.h:145: syntax error before `('
../unzip.h:156: syntax error before `('
[...]
*** Error code 1

-----
/* example from line 132 of unzip.h */
extern int ZEXPORT  unzStringFileNameCompare OF ((const char* fileName1,
                                                const char* fileName2,
                                                int iCaseSensitivity));