New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
h2ph produces bad compiler defs file #1151
Comments
From helm@fionn.es.netCreated by helm@es.netThis error produced by the syslog packages: Warning: Use of "defined" without parens is ambiguous at /usr/local/lib/perl5/site_perl/5.005/sun4-solaris-thread/_h2ph_pre.ph line 2. seems to come from this file: # This file was created by h2ph version 1 unless (defined &__STDC__) { sub __STDC__() { 1 } } unless (defined &__sun) { sub __sun() { 1 } } unless (defined &__unix) { sub __unix() { 1 } } unless (defined &sparc) { sub sparc() { 1 } } unless (defined &sun) { sub sun() { 1 } } unless (defined &unix) { sub unix() { 1 } } That first line looks bogus. I assume this is extracted from Sun WorkShop Compiler C Version 4.200 I commented out this strange initial defined line & scripts seem to work ok. Perl Info
|
From [Unknown Contact. See original ticket]On Mon, Feb 07, 2000 at 04:49:45PM -0800, Michael Helm wrote:
Thanks for the bug report. Would you mind trying the latest development Peace, |
From [Unknown Contact. See original ticket]I took a little extract from the h2ph script: #!/usr/local/bin/perl use Config; my (%define) = _extract_cc_defines(); sub _extract_cc_defines # Split compiler pre-definitions into `key=value' pairs: print STDERR "$_: $1 -> $2\n"; return %define; Result: : -> my $allsymbols = join " ", @Config{ccsymbols, cppsymbols, cppccsymbols}; |
From [Unknown Contact. See original ticket]On Tue, Feb 08, 2000 at 12:04:33AM -0800, Michael Helm wrote:
Thanks, got it, patch to follow. Peace, |
Migrated from rt.perl.org#2114 (status was 'resolved')
Searchable as RT2114$
The text was updated successfully, but these errors were encountered: