Skip to content
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

Missing crypt() function on QNX 6.2.1 #6805

Closed
p5pRT opened this issue Oct 1, 2003 · 9 comments
Closed

Missing crypt() function on QNX 6.2.1 #6805

p5pRT opened this issue Oct 1, 2003 · 9 comments

Comments

@p5pRT
Copy link

p5pRT commented Oct 1, 2003

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

Searchable as RT24079$

@p5pRT
Copy link
Author

p5pRT commented Oct 1, 2003

From abhustoft@arxi.no

Hi,
The perl 5.6.1 binaries for QNX 6.2 do not have the crypt() function enabled.
I downloaded source for 5.8.1 and ran the Configure script. It did not find
the crypt() function. The script looks for functions in libc.so, but the
crypt() function on QNX 6.2.1 is in libc.a. I made brute force test by using
the following change in the Configure script. That is, I turned on the test
which compiles a try.c program. This created a perl with the crypt()
function.

Alf Bjorn Hustoft
ARX Innovation AS
http​://www.arxi.no

Inline Patch
--- Configure   Thu Sep 18 11:21:48 2003
+++ Configure.abh       Wed Oct  1 10:44:18 2003
@@ -7369,9 +7369,12 @@
 yes)
        tval=false;
        if $test "$runnm" = true; then
+echo $contains;
+echo  $tlook;
+echo  $tf ;
                if $contains $tlook $tf >/dev/null 2>&1; then
                        tval=true;
-               elif $test "$mistrustnm" = compile -o "$mistrustnm" = run; 
then \+ else   echo "void \*\(\*\(p\(\)\)\)$tdc \{ extern void \*$1$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; \}; \#

@p5pRT
Copy link
Author

p5pRT commented Oct 2, 2003

From @Tux

On Wed 01 Oct 2003 11​:35, Alf Bjorn Hustoft (via RT) <perlbug-followup@​perl.org> wrote​:

# New Ticket Created by Alf Bjorn Hustoft
# Please include the string​: [perl #24079]
# in the subject line of all future correspondence about this issue.
# <URL​: http​://rt.perl.org/rt2/Ticket/Display.html?id=24079 >

Hi,
The perl 5.6.1 binaries for QNX 6.2 do not have the crypt() function enabled.
I downloaded source for 5.8.1 and ran the Configure script. It did not find
the crypt() function. The script looks for functions in libc.so, but the
crypt() function on QNX 6.2.1 is in libc.a. I made brute force test by using
the following change in the Configure script. That is, I turned on the test
which compiles a try.c program. This created a perl with the crypt()
function.

Any chance this change can be moved to hints/qnx.sh ?? (and still do what you
want)

Alf Bjorn Hustoft
ARX Innovation AS
http​://www.arxi.no

--- Configure Thu Sep 18 11​:21​:48 2003
+++ Configure.abh Wed Oct 1 10​:44​:18 2003
@​@​ -7369,9 +7369,12 @​@​
yes)
tval=false;
if $test "$runnm" = true; then
+echo $contains;
+echo $tlook;
+echo $tf ;
if $contains $tlook $tf >/dev/null 2>&1; then
tval=true;
- elif $test "$mistrustnm" = compile -o "$mistrustnm" = run;
then
+ else
echo "void *(*(p()))$tdc { extern void *$1$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; };
#

--
H.Merijn Brand Amsterdam Perl Mongers (http​://amsterdam.pm.org/)
using perl-5.6.1, 5.8.0, & 5.9.x, and 806 on HP-UX 10.20 & 11.00, 11i,
  AIX 4.3, SuSE 8.2, and Win2k. http​://www.cmve.net/~merijn/
http​://archives.develooper.com/daily-build@​perl.org/ perl-qa@​perl.org
send smoke reports to​: smokers-reports@​perl.org, QA​: http​://qa.perl.org

@p5pRT
Copy link
Author

p5pRT commented Oct 2, 2003

From allen@huarp.harvard.edu

Alf Bjorn Hustoft wrote​:

# New Ticket Created by Alf Bjorn Hustoft
# Please include the string​: [perl #24079]
# in the subject line of all future correspondence about this issue.
# <URL​: http​://rt.perl.org/rt2/Ticket/Display.html?id=24079 >

Hi,
The perl 5.6.1 binaries for QNX 6.2 do not have the crypt() function enabled.
I downloaded source for 5.8.1 and ran the Configure script. It did not find
the crypt() function. The script looks for functions in libc.so, but the
crypt() function on QNX 6.2.1 is in libc.a. I made brute force test by using
the following change in the Configure script. That is, I turned on the test
which compiles a try.c program. This created a perl with the crypt()
function.

Wouldn't telling configure not to use nm do the trick without any
modification to Configure?

-Norton Allen

@p5pRT
Copy link
Author

p5pRT commented Oct 3, 2003

From abhustoft@arxi.no

On Thursday 02 October 2003 15​:24, you wrote​:

Alf Bjorn Hustoft wrote​:

# New Ticket Created by Alf Bjorn Hustoft
# Please include the string​: [perl #24079]
# in the subject line of all future correspondence about this issue.
# <URL​: http​://rt.perl.org/rt2/Ticket/Display.html?id=24079 >

Hi,
The perl 5.6.1 binaries for QNX 6.2 do not have the crypt() function
enabled. I downloaded source for 5.8.1 and ran the Configure script. It
did not find the crypt() function. The script looks for functions in
libc.so, but the crypt() function on QNX 6.2.1 is in libc.a. I made brute
force test by using the following change in the Configure script. That
is, I turned on the test which compiles a try.c program. This created a
perl with the crypt() function.

Wouldn't telling configure not to use nm do the trick without any
modification to Configure?

-Norton Allen

I re-compiled with the command​: sh Configure -de -D mistrustnm=compile
This had the same effect as my hack to the Configure script. The crypt()
function was found. "make test" reported​:

Failed 1 test script out of 760, 99.87% okay.
### Since not all tests were successful, you may want to run some of
### them individually and examine any diagnostic messages they produce.
### See the INSTALL document's section on "make test".
### You have a good chance to get more information by running
### ./perl harness

Ran ./perl harness, which reported​:

Failed Test Stat Wstat Total Fail Failed List of Failed


op/groups.t 2 1 50.00% 1
(24 subtests UNEXPECTEDLY SUCCEEDED), 56 tests and 487 subtests skipped.
Failed 1/820 test scripts, 99.88% okay. 1/76967 subtests failed, 100.00% okay.

End result looks OK. I am not quite sure about the "50.00%" bit.
I guess the "-D mistrustnm=compile" could go into hints/qnx.sh. Or, one might
try adding libc.a in the list of libraries that nm searches.

Alf Bjorn Hustoft

@p5pRT
Copy link
Author

p5pRT commented Dec 3, 2007

From kraai@ftbfs.org

The attached patch overrides the check for crypt, so that it's used even
though it's not detected.

@p5pRT
Copy link
Author

p5pRT commented Dec 3, 2007

From kraai@ftbfs.org

crypt

@p5pRT
Copy link
Author

p5pRT commented Dec 3, 2007

From [Unknown Contact. See original ticket]

The attached patch overrides the check for crypt, so that it's used even
though it's not detected.

@p5pRT
Copy link
Author

p5pRT commented Dec 3, 2007

From @rgs

On 03/12/2007, Matt Kraai via RT <perlbug-comment@​perl.org> wrote​:

The attached patch overrides the check for crypt, so that it's used even
though it's not detected.

Thanks, applied as #32563.

@p5pRT
Copy link
Author

p5pRT commented Jun 21, 2008

p5p@spam.wizbit.be - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant