Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.85k stars 527 forks source link

Not OK: perl 5.00564 on os2 2.30 #1158

Closed p5pRT closed 20 years ago

p5pRT commented 24 years ago

Migrated from rt.perl.org#2124 (status was 'resolved')

Searchable as RT2124$

p5pRT commented 24 years ago

From @ysth

Configure gets​:

Guessing which symbols your C compiler and preprocessor define... SYS0193​: D​:\perl5.5.650\UU\try.exe cannot be run in a OS/2 session. tcsetattr() found.

I will look into it further.

Perl Info ``` Site configuration information for perl 5.00564: Configured by sthoenna at Wed Feb 2 11:09:04 PST 2000. Summary of my perl5 (revision 5.0 version 5 subversion 640) configuration: Platform: osname=os2, osvers=2.30, archname=os2 uname='os2 localhost 2 2.30 i386 ' config_args='-des -D prefix=d:/perl' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usesocks=undef useperlio=undef d_sfio=undef use64bits=undef uselargefiles=define usemultiplicity=undef Compiler: cc='gcc', optimize='-O2 -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -s', gccversion=2.8.1 cppflags='-Zomf -Zmt -DDOSISH -DOS2=2 -DEMBED -I. -D_EMX_CRT_REV_=62' ccflags ='-Zomf -Zmt -DDOSISH -DOS2=2 -DEMBED -I. -D_EMX_CRT_REV_=62' stdchar='char', d_stdstdio=define, usevfork=false intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 alignbytes=4, usemymalloc=y, prototype=define Linker and Libraries: ld='gcc', ldflags ='-Zexe -Zomf -Zmt -Zcrtdll -Zstack 32000' libpth=d:/emx/lib d:/emx/lib/mt libs=-lsocket -lm -lbsd libc=d:/emx/lib/mt/c_import.lib, so=dll, useshrplib=true, libperl=libperl.lib Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-Zdll', lddlflags='-Zdll -Zomf -Zmt -Zcrtdll -s' Locally applied patches: @INC for perl 5.00564: d:/perl/lib/5.5.640/os2 d:/perl/lib/5.5.640 d:/perl/lib/site_perl/5.5.640/os2 d:/perl/lib/site_perl/5.5.640 . Environment for perl 5.00564: HOME=d:\home\sthoenna LANG=en_us LANGUAGE (unset) LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=d:\bin;C:\OS2;d:\perl\bin;C:\OS2\SYSTEM;C:\OS2\INSTALL;C:\;C:\OS2\MDOS;C:\OS2\APPS;C:\MMOS2;d:\os2apps\util;d:\DOSAPPS\UTIL;c:\sio;D:\WINDOWS;d:\pdksh;d:\emx\bin;d:\emacs\19.33\bin;d:\ispell PERL_BADLANG (unset) PERL_SH_DIR=d:\BIN SHELL (unset) ```
p5pRT commented 24 years ago

From @ysth

In article \200002090033\.QAA05849@​garcia\.efn\.org\, sthoenna@​efn.org (Yitzchak Scott-Thoennes) wrote​:

This is a build failure report for perl from sthoenna@​efn.org\, generated with the help of perlbug 1.27 running under perl 5.00564.

----------------------------------------------------------------- [Please enter your report here]

Configure gets​:

Guessing which symbols your C compiler and preprocessor define... SYS0193​: D​:\perl5.5.650\UU\try.exe cannot be run in a OS/2 session. tcsetattr() found.

I will look into it further.

Well\, Cppsym.try looks like this​:

#!d​:/bin/sh.exe cat \<\<'EOCP' > try.c #include \<stdio.h> int main() { EOCP d​:/bin/awk \ 'length($1) > 0 {   printf "#ifdef %s\n#if %s+0\nprintf(\"%s=%%ld\\n\"\, %s);\n#else\nprintf(\"%s\\n\");\n#endif\n#endif\n"\, $1\, $1\, $1\, $1\, $1   printf "#ifdef _%s\n#if _%s+0\nprintf(\"_%s=%%ld\\n\"\, _%s);\n#else\nprintf(\"_%s\\n\");\n#endif\n#endif\n"\, $1\, $1\, $1\, $1\, $1   printf "#ifdef __%s\n#if __%s+0\nprintf(\"__%s=%%ld\\n\"\, __%s);\n#else\nprintf(\"__%s\\n\");\n#endif\n#endif\n"\, $1\, $1\, $1\, $1\, $1   printf "#ifdef __%s__\n#if __%s__+0\nprintf(\"__%s__=%%ld\\n\"\, __%s__);\n#else\nprintf(\"__%s__\\n\");\n#endif\n#endif\n"\, $1\, $1\, $1\, $1\, $1 }' >> try.c echo '}' >> try.c cc="gcc" optimize="-O2 -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -s" ccflags="-Zomf -Zmt -DDOSISH -DOS2=2 -DEMBED -I. -D_EMX_CRT_REV_=62" ldflags="-Zexe -Zomf -Zmt -Zcrtdll -Zstack 32000" libs="-lsocket -lm -lbsd" exe_ext=".exe" gcc -O2 -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -s -Zomf -Zmt -DDOSISH -DOS2=2 -DEMBED -I. -D_EMX_CRT_REV_=62 -Zexe -Zomf -Zmt -Zcrtdll -Zstack 32000 -o try.exe try.c -lsocket -lm -lbsd && ./try.exe cp ./try.exe /allen/UU650

and a little testing shows​:

[D​:\perl5.5.650\UU]gcc -o test.exe -Zexe test.c D​:\EMX\BIN\ld.exe​: The output file name must not have a suffix if -Zexe is used

p5pRT commented 24 years ago

From [Unknown Contact. See original ticket]

Yitzchak Scott-Thoennes writes​:

and a little testing shows​:

[D​:\perl5.5.650\UU]gcc -o test.exe -Zexe test.c D​:\EMX\BIN\ld.exe​: The output file name must not have a suffix if -Zexe is used

Yes. Probably a wrong value for $exe_suffix (sp?)? $ld and $ldopt (sp?) are set up to have no .exe on -o argument.

Ilya

p5pRT commented 24 years ago

From @ysth

In article \200002092047\.PAA15624@&#8203;monk\.mps\.ohio\-state\.edu\, Ilya Zakharevich \ilya@&#8203;math\.ohio\-state\.edu wrote​:

Yitzchak Scott-Thoennes writes​:

and a little testing shows​:

[D​:\perl5.5.650\UU]gcc -o test.exe -Zexe test.c D​:\EMX\BIN\ld.exe​: The output file name must not have a suffix if -Zexe is used

Yes. Probably a wrong value for $exe_suffix (sp?)? $ld and $ldopt (sp?) are set up to have no .exe on -o argument.

$exe_ext.

The other places Configure compiles a try.c it just uses -o try

Inline Patch ```diff --- Configure-pre Tue Feb 8 19:56:02 2000 +++ Configure Tue Feb 8 19:56:02 2000 @@ -13780,7 +13780,7 @@ ldflags="$ldflags" libs="$libs" exe_ext="$exe_ext" -$cc $optimize $ccflags $ldflags -o try$exe_ext try.c $libs && ./try$exe_ext +$cc $optimize $ccflags $ldflags -o try try.c $libs && ./try$exe_ext EOSH chmod +x Cppsym.try $eunicefix Cppsym.try ```