This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fail to compile last perl source under cygwin 2.9.0


Hello,

I tried to build perl-5.26.0 with GCC 7.2.0 (build from source with cygwin's GCC 5.4.0) and failed with the following error:

pp.c: In function 'Perl_pp_crypt':
pp.c:3743:43: error: invalid application of 'sizeof' to incomplete type 'struct crypt_data'
    (struct crypt_data *)safemalloc(sizeof(struct crypt_data));
                                           ^~~~~~

Currently i cannot figure out whether this is crypt's or perl's fault. Any help appreciated.

When i was under cygwin 2.8.2, everything was ok.
If, under 2.9.0, i force "#undef HAS_CRYPT_R" in config.h, everything is ok.
I cannot say if it works with GCC 5.4.0, but i'm pretty sure that it doesn't.

Regards,

Denis Excoffier.
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]