Notice the if surrounding it, it's called macros. Those lines mean that the include will only be compiled when ZZIP_HAVE_STRING_H is defined, which doesn't seem the case. Check if you're following their build instructions properly, or even if they have some error. My bet is that your build setup is missing stuff in include paths.

Like I said before 'mmaped.c' is not relevant anymore at the moment since I reverted to 'strcasecmp'.

Concerning the build reqs, the only dependency for it is the zlib library which i've added to MinGW's include and lib dirs and from the config log zlib was successfully detected by the autotools utility so there really shouldn't be any case of missing files/dependecies. I really don't know what can be wrong in 'stat.c' since the "#include <string.h>" line there doesn't have any '#if' block around it.

If anyone wants to check 'stat.c', you can find it here.



P.S.:  Maybe someone here is kind enough can give it a try and built it ( I need zziplib-0.13.49 exactly) on Windows using gcc-4.8.1 and upload the binaries for me. :P



2013/9/15 Renato Silva <br.renatosilva@gmail.com>

Notice the if surrounding it, it's called macros. Those lines mean that the include will only be compiled when ZZIP_HAVE_STRING_H is defined, which doesn't seem the case. Check if you're following their build instructions properly, or even if they have some error. My bet is that your build setup is missing stuff in include paths.

Em 14/09/2013 22:04, "Cristi Dinescu" <crdinescu@gmail.com> escreveu:

Cristi, if you're following build instructions correctly, then they may have a problem, although my bet is that you're missing something. It's better trying to fix the real cause instead of workaround it, it may just keep snowballing. So have you noted the macro below? For some reason your setup is not finding string.h, it seems. Possibly some include path mess?

#if   defined ZZIP_HAVE_STRING_H
#include <string.h>
#elif defined ZZIP_HAVE_STRINGS_H
#include <strings.h>
#endif

Well I followed your advice and I changed stricmp back to 'strcasecmp' so 'mapped.c' related errors are not a concern at the moment. So now, why can't gcc find 'strcasecmp' in 'stat.c' when there's an obvious include line there for string.h where it is defined?

2013/9/15 Renato Silva <br.renatosilva@gmail.com>

Cristi, if you're following build instructions correctly, then they may have a problem, although my bet is that you're missing something. It's better trying to fix the real cause instead of workaround it, it may just keep snowballing. So have you noted the macro below? For some reason your setup is not finding string.h, it seems. Possibly some include path mess?

#if   defined ZZIP_HAVE_STRING_H
#include <string.h>
#elif defined ZZIP_HAVE_STRINGS_H
#include <strings.h>
#endif


>
> strcasecmp is an inline function defined in string.h.  I'm guessing
> that stat.c didn't include string.h, so you are getting this error.
> Including a header where a function is defined or declared is pretty
> basic.

The <string.h> is included but anyways I replaced 'strcasecmp' with 'stricmp' which is supposed to do be case insensitive as well. Now I get another error which I can't even a error message for it, please see img , Also if anyone wants to inspect the file and help me figure out the issue please check it here .

Thanks again!

 

strcasecmp is an inline function defined in string.h.  I'm guessing
that stat.c didn't include string.h, so you are getting this error.
Including a header where a function is defined or declared is pretty
basic.

The <string.h> is included but anyways I replaced 'strcasecmp' with 'stricmp' which is supposed to do be case insensitive as well. Now I get another error which I can't even a error message for it, please see img , Also if anyone wants to inspect the file and help me figure out the issue please check it here .

Thanks again!


 


2013/9/14 Eli Zaretskii <eliz@gnu.org>
> Date: Sat, 14 Sep 2013 22:30:32 +0300
> From: Cristi Dinescu <crdinescu@gmail.com>
>
> I'm trying to compile zziplib using MinGW and MSYS on Windows and I get
> some errors, screenshot here<http://img198.imageshack.us/img198/5708/ri8m.png>
>  .
>
> Any ideas?

strcasecmp is an inline function defined in string.h.  I'm guessing
that stat.c didn't include string.h, so you are getting this error.
Including a header where a function is defined or declared is pretty
basic.

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe