Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

fireartist (6128)

fireartist
  (email not shown publicly)
http://www.fireartist.com/

Journal of fireartist (6128)

Monday October 17, 2005
04:23 AM

problem solved: par, mingw win32, compilation failure

[ #27203 ]

Compilation of PAR 0.89 fails with this error message:

>dmake
gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_
SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX  -I"C:\usr\local\perl\lib\CORE" s
tatic.c
In file included from c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/
fcntl.h:20,
                 from mktmpdir.h:3,
                 from mktmpdir.c:1,
                 from static.c:8:
c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/io.h:162: 39: macro "mk
dir" requires 2 arguments, but only 1 given
dmake:  Error code 129, while making 'static.o'
dmake:  Error code 255, while making 'subdirs'

Solution: Near the top of the PAR file "myldr/static.c" change this:

#ifdef WIN32
# include <process.h>
# define mkdir(file, mode) _mkdir(file)
#endif

to this (just add the io.h line):

#ifdef WIN32
# include <io.h>
# include <process.h>
# define mkdir(file, mode) _mkdir(file)
#endif

keywords: PAR, mingw, perl, windows, win32, mkdir, compilation failure

Reference: http://www.mail-archive.com/par@perl.org/msg01904.html

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.