develooper Front page | perl.perl5.porters | Postings from December 2001

Re: it won't compile on win32

Thread Previous | Thread Next
From:
Nikola Knezevic
Date:
December 30, 2001 03:25
Subject:
Re: it won't compile on win32
Message ID:
1511018555.20011230121839@tesla.rcub.bg.ac.yu
The clock just beat 14:53:04, when Nicholas said:

Nicholas> On Fri, Dec 28, 2001 at 06:15:14PM +0100, Nikola Knezevic wrote:
>> Configuration: CFG=Debug USE_PERLCRT=define USE_MULTI=define USE_ITHREADS=define USE_IMP_SYS=define
Nicholas> I think it's the IMP_SYS that's triggering the problem. But the problem was
Nicholas> caused by me. Sorry. (patch at end)

Hm, hm...
After applying the patch, this is what I get:

MACHID: K5 W95,AMD K5,Win95,4NT,VC5 SP3
Smoking patch 13915

Configuration: CFG=Debug USE_PERLCRT=define USE_MULTI=define USE_ITHREADS=define USE_IMP_SYS=define
------------------------------------------------------------------------------

Start    :      Sat Dec 29 18:43:58 2001
End      :      Sat Dec 29 18:44:50 2001
Run time :      00:00:52
Warnings and errors
...\proto.h(7) : error C2282: 'return_type' is followed by 'S_function_name' (missing ','?)
NMAKE : fatal error U1077: 'd:\DevStudio\VC\BIN\cl.exe' : return code '0x2'
 Unable to make perl in this configuration

It seems that embed.pl isn't doing his job properly on Win32. D'oh.

I don't have time to investigate this, Math is just waiting for me:))

Nicholas> Patch to embed.pl - I didn't realise that I needed an n flag.
Nicholas> You'll need to re-run embed.pl to make embed.h before re-building. This doesn't
Nicholas> happen automatically.

I re-run embed.pl and sunk into much deeper hell. (see above)
So I've checked proto.h, and saw incriminating line. Only wise solution
was to comment out this line, like this:
---- proto.h -----
/*
 * !!!!!!!   DO NOT EDIT THIS FILE   !!!!!!!
 * This file is autogenerated from data in embed.pl.  Edit that file
 * and run 'make regen_headers' to effect changes.
 */

/* STATIC return_type   S_function_name(pTHX_ arg1, arg2, ..., argN) */
#ifdef CHECK_FORMAT
 __attribute__((format(printf,pTHX_3,pTHX_4)))
#endif
;
---- proto.h end ---



But, after doing that, compiling went fine, until:

Configuration: CFG=Debug USE_PERLCRT=define USE_MULTI=define USE_ITHREADS=define USE_IMP_SYS=define
------------------------------------------------------------------------------

Start    :      Sun Dec 30 12:05:13 2001
End      :      Sun Dec 30 12:09:56 2001
Run time :      00:04:43
Warnings and errors
...\util.c(4114) : error C2065: 'ECONNABORTED' : undeclared identifier
...\util.c(4143) : error C2065: 'EAFNOSUPPORT' : undeclared identifier
NMAKE : fatal error U1077: 'd:\DevStudio\VC\BIN\cl.exe' : return code '0x2'
 Unable to make perl in this configuration


Njah, njah... I'm going back to Math, there are no problems with
compiling:)))
-- 

Nikola Knezevic [indy@hemo.net] [ http://users.hemo.net/indy ]


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About