Van: Oliver Fladda <[EMAIL PROTECTED]> Datum: vrijdag 29 augustus 2008 11:52 vm
> I downloaded libarchive 2.4.12-1 and tried the simple test program from > the archive_write.3 documentation. > The program failed with a segment fault in function write_archive_header() > in archive_write.c:319. > As libarchive-2.5.5 does not contain the call to function strcmp() at that > line, I tried to build 2.5.5 directly, but was unable to > do so. > After that, I tried to patch and compile libarchive 2.4.12-1. > But during make, gcc fails on libarchive/archive_write_set_format.c:44 > with error "initializer element is not constant", > even with unpatched sources. > I tried to compile with the gcc switch "-std=c89" to circumvent this > error, but that did not work either. > All tries were realized with MinGW 5.1.4, gcc Version: gcc (GCC) 3.4.2 > (mingw-special) and GNU Make 3.81. > Any help on this issue is most appreciated. Could you post a small program, preferably the smallest one possible, that fails in this way? And also give the exact compilation and linking commands that you used. As to compiling libarchive-2.5.5, it seems impossible to compile it, even after extensive patching of the MS-Windows specific header files. Libarchive-2.4.12-1 should compile as it is, i.e. unpack libarchive-2.4.12-1-src.zip, and at a Cygwin bash prompt in the directory libarchive-2.4.12, type: "./config.status" (in order to recreate the .deps subdirectories) and then: "make"; see also http://gnuwin32.sourceforge.net/compile.html Kees Zeelenberg ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ GnuWin32-Users mailing list GnuWin32-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnuwin32-users