Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Fixed] Re: field `_crypt_struct' has incomplete type

18 views
Skip to first unread message

Salvador Ortiz Garcia

unread,
Jul 7, 2005, 9:11:10 PM7/7/05
to perl6-c...@perl.org, Sam Vilain

Hi all,

In the ghc docs I found that "-Dsymbol=value" does not affect -D macros
passed to the C compiler when compiling via C, the mode used when
optimization is on.

So the perl5 ccflags defined must be passed using -optc.

The following change in Makefile.PL fixed it:

--- /tmp/Perl6-Pugs-6.2.7/Makefile.PL 2005-06-13 06:59:36.000000000
-0500
+++ /work/BUILD/Perl6-Pugs-6.2.7/Makefile.PL 2005-07-07
19:34:11.000000000 -0500
@@ -140,7 +140,7 @@
my $flags = "$Config{ccflags} $Config{ccdlflags}";
if ($flags =~ /\S/) {
$flags =~ s{([\\"'])}{\\$1}g;
- $ccdlflags .= qq[ -optl "$_" ]
+ $ccdlflags .= (/^-D/ ? ' -optc' : ' -optl') . qq["$_" ]
for split /\s+/, $flags;
}
}

--
Salvador Ortiz Garcia <s...@msg.com.mx>
Matías Software Group

Sam Vilain

unread,
Jul 8, 2005, 1:32:20 AM7/8/05
to Salvador Ortiz Garcia, perl6-c...@perl.org
Salvador Ortiz Garcia wrote:
> In the ghc docs I found that "-Dsymbol=value" does not affect -D macros
> passed to the C compiler when compiling via C, the mode used when
> optimization is on.
> So the perl5 ccflags defined must be passed using -optc.
[...]

> - $ccdlflags .= qq[ -optl "$_" ]
> + $ccdlflags .= (/^-D/ ? ' -optc' : ' -optl') . qq["$_" ]

Thanks, applied.

Would you like a committer invitation?

Sam.

0 new messages