Author Topic: Problem with Perl5 when compiling openssl-0.9.8zd  (Read 3294 times)

R.M. Klippstein

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 205
    • View Profile
Problem with Perl5 when compiling openssl-0.9.8zd
« on: January 28, 2015, 12:50:37 am »
I've got emx, gcc, perl5, and GNU make all installed in c:/usr. openssl-0.9.8zd is in c: and extracted In openssl-0.9.8zd . In that directory I changed to the os2 directory and ran os2-emx to create the OSE-EMX.mak file. It throws the error SYS1804: The system cannot find the file PERL2147 (which is located in c:/usr/bin.)
  I've tried different combinations of "set PERLLIB_PREFIX=/perl5/lib;c:/path/to/perl5/lib" but nothing seemed to correct the error. I'm STUCK!   Anybody got any ideas as to what I'm probably forgetting or doing wrong?

thanks
klipp



Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 7
  • -Receive: 87
  • Posts: 1098
    • View Profile
Re: Problem with Perl5 when compiling openssl-0.9.8zd
« Reply #1 on: January 28, 2015, 01:11:35 am »
Where was Perl originally configured as its drive? The error should show (or grep the tree) . Usually the EMX versions of perl were compiled with a prefix like x:/perl or x:/perl5 and yo would install into c:/perl or c:/perl5 and set the PATH and BEGINLIBPATH to have the Perl binary and dlls findable and then something like PERLLIB_PREFIX=x:/Perl/lib c:/Perl/lib perhaps for you x:/Perl/lib c:/usr/lib
You are using an EMX built perl? Not sure if it matters for building OpenSSL
« Last Edit: January 28, 2015, 01:14:10 am by Dave Yeo »

R.M. Klippstein

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 205
    • View Profile
Re: Problem with Perl5 when compiling openssl-0.9.8zd
« Reply #2 on: January 28, 2015, 02:08:53 am »
Hi Dave, no luck yet! I've extracted PERL-5.14.2-os2-20120105  and copied the resulting perl5 folder to c:/
I also copied the 4 folders (bin,lib,man & usr) included in the perl5 folder into c:/usr. This might be a mistake but I'm thinking I should be able to get to perl5/lib by using one or both of these routes.
  Attached is a comand prompt listing of the error.

Thanks for the help   klipp

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 7
  • -Receive: 87
  • Posts: 1098
    • View Profile
Re: Problem with Perl5 when compiling openssl-0.9.8zd
« Reply #3 on: January 28, 2015, 02:21:50 am »
What a strange file format. Unzipping I find one png that is just fuzzy lines. Usual for screen shots is a png
Pauls builds are usually in L: For building Mozilla (17 and earlier) I use set PERLLIB_PREFIX=L:/Perl/lib g:\perl\lib note just a blank line between the two arguments.

R.M. Klippstein

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 205
    • View Profile
Re: Problem with Perl5 when compiling openssl-0.9.8zd
« Reply #4 on: January 28, 2015, 02:59:04 am »
Still not getting anywhere, guess tomorrow I'll try going back to perl-5.8.0, see if that works.

klipp

Ian Manners

  • Global Moderator
  • Full Member
  • *****
  • Thank You
  • -Given: 30
  • -Receive: 17
  • Posts: 239
  • I am the computer, it is me.
    • View Profile
    • OS/2 Site
Re: Problem with Perl5 when compiling openssl-0.9.8zd
« Reply #5 on: January 29, 2015, 06:10:25 am »
Check in any other files in the Perl directory for the correct path.
I normally just do a couple of search and replaces on the file contents.

ie, top of the contents in file c2ph,

#!L:/Perl/bin/perl
    eval 'exec L:/Perl/bin/perl -S $0 ${1+"$@"}'
   if $running_under_some_shell;
#

There was also another file from memory that you had to edit to change drive (and directory) references,
this might nolonger be correct but it rings a bell, I think its the main file that "SET PERLLIB_PREFIX=L:/Perl/lib;C:\perl\lib"
is suppost to fix but from experience I found something worked better by actually changing file contents
instead of relying on the SET PERLLIB_PREFIX statement.

I'm still using Perl v5.8.0
Cheers
Ian B Manners

R.M. Klippstein

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 205
    • View Profile
Re: Problem with Perl5 when compiling openssl-0.9.8zd
« Reply #6 on: January 30, 2015, 12:46:38 am »
Well, Some progress, But No Cigar! Thanks for the help Dave & Ian. I've installed 5.8.0 and it Kinda works!
Seems it can't find the core of Perl library (which I do have installed!)
I'm using:
SET PERL_SH_DIR=C:/Perl/bin

set PERLLIB_PREFIX=L:/Perl/lib; C:/Perl/lib;

here is tetperl.cmd

This is perl, v5.8.0 built for os2_emx

Copyright 1987-2002, Larry Wall


OS/2 port Copyright (c) 1990, 1991, Raymond Chen, Kai Uwe Rommel
Version 5 port Copyright (c) 1994-2002, Andreas Kaiser, Ilya Zakharevich

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

====================================
We checked that Perl can be loaded.  Apparently, your PATH and LIBPATH
are set to reasonable values.  From now on the tests are coded in Perl.
Press <ENTER>:
====================================
The next step is to check that you installed shell in a location perl can
find, so that you can start external programs.
I could find your shell, its version is '@(#)PD KSH v5.2.7 96/06/04'
Press <ENTER>:
====================================
Ouph, the most frequent problem is behind...  Now testing Perl library search.
Cannot find the core of Perl library.  If you have it installed:
Consider getting help via
     view perl PERLLIB_PREFIX
or in whatever way you like the Perl documentation accessed, say, via
  perldoc perlos2
man, acrobat, netscape, lynx, GNU info, TeX, reading REAME.os2, reading
POD files, and so on.
Skipping further tests now...
Tests finished. Press <ENTER>:

Thanks for any additional ideas,  klipp

Andreas Schnellbacher

  • Full Member
  • ***
  • Thank You
  • -Given: 1
  • -Receive: 14
  • Posts: 236
    • View Profile
Re: Problem with Perl5 when compiling openssl-0.9.8zd
« Reply #7 on: January 30, 2015, 03:50:51 pm »
Get your PERLLIB_PREFIX env var right and try again. (Check for slashes and backslashes.)

Ian Manners

  • Global Moderator
  • Full Member
  • *****
  • Thank You
  • -Given: 30
  • -Receive: 17
  • Posts: 239
  • I am the computer, it is me.
    • View Profile
    • OS/2 Site
Re: Problem with Perl5 when compiling openssl-0.9.8zd
« Reply #8 on: January 30, 2015, 06:41:24 pm »
SET PERL_LIBBATH=L:/Perl/lib;C:\perl\lib
SET PERLLIB_PREFIX=L:/Perl/lib;C:\perl\lib

note / and \

I also have the following in my config.sys but you should find out if you need them or not.

SET PERL_BADFREE=0
SET PERL_BADLANG=0
SET INFOPATH=C:\PERL\BOOK

and obviously your sh bin is different to mine, which is  SET PERL_SH_DIR=c:\bin
« Last Edit: January 30, 2015, 06:47:10 pm by Ian Manners »
Cheers
Ian B Manners

R.M. Klippstein

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 205
    • View Profile
Re: Problem with Perl5 when compiling openssl-0.9.8zd
« Reply #9 on: January 30, 2015, 10:26:47 pm »
THANK YOU Ian! That got everything working! Its a shame you're information wasn't included in either the 5.8.0 or Perl5 readme's.

klipp