Front page | perl.perl5.porters |
Postings from April 2007
Re: g++ on FreeBSD
Thread Previous
|
Thread Next
From:
H.Merijn Brand
Date:
April 12, 2007 07:32
Subject:
Re: g++ on FreeBSD
Message ID:
20070412163110.14d20c11@pc09
On Tue, 10 Apr 2007 19:35:26 +0100, Nicholas Clark <nick@ccl4.org> wrote:
> Change 30897 by nicholas@nicholas-saigo on 2007/04/10 18:30:04
>
> Make the don't-use-nm symbol table probes work under C++.
>
> Affected files ...
>
> ... //depot/perl/Configure#644 edit
>
> Differences ...
>
> ==== //depot/perl/Configure#644 (xtext) ====
>
> @@ -7582,18 +7582,21 @@
> esac;
> case "$tx" in
> yes)
> + case "$d_cplusplus" in
> + $define) extern_C=\"C\";;
> + esac;
> tval=false;
> if $test "$runnm" = true; then
> if $contains $tlook $tf >/dev/null 2>&1; then
> tval=true;
> elif $test "$mistrustnm" = compile -o "$mistrustnm" = run; then
> - echo "void *(*(p()))$tdc { extern void *$1$tdc; return &$1; } int main() { if(p()) return(0); else return(1); }"> try.c;
> + echo "extern $extern_C void *$1$tdc; void *(*(p()))$tdc { return &$1; } int main() { if(p()) return(0); else return(1); }"> try.c;
> $cc -o try $optimize $ccflags $ldflags try.c >/dev/null 2>&1 $libs && tval=true;
> $test "$mistrustnm" = run -a -x try && { $run ./try$_exe >/dev/null 2>&1 || tval=false; };
> $rm -f try$_exe try.c core core.* try.core;
> fi;
> else
> - echo "void *(*(p()))$tdc { extern void *$1$tdc; return &$1; } int main() { if(p()) return(0); else return(1); }"> try.c;
> + echo "extern $extern_C void *$1$tdc; void *(*(p()))$tdc { return &$1; } int main() { if(p()) return(0); else return(1); }"> try.c;
> $cc -o try $optimize $ccflags $ldflags try.c $libs >/dev/null 2>&1 && tval=true;
> $rm -f try$_exe try.c;
> fi;
>
Urgh. That is not a funny change:
Looking for dependency cycles...
Cycle found for:
(#1) Csym
(#1) Inlibc
(#1) d_cplusplus
Cycle involves:
(d_cplusplus) d_cplusplus: Inlibc
(?) Csym: d_cplusplus
(?) Inlibc: Csym
Done.
--
H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.9.x on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.0 & 10.2, AIX 4.3 & 5.2, and Cygwin. http://qa.perl.org
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org
http://www.goldmark.org/jeff/stupid-disclaimers/
Thread Previous
|
Thread Next