Bug 110277

Summary: libpvm3.a uses sys_errlist and sys_nerr
Product: [Fedora] Fedora Reporter: Nils O. Selåsdal <nos>
Component: pvmAssignee: Lon Hohberger <lhh>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: low Docs Contact:
Priority: medium    
Version: 1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-12-09 18:26:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Nils O. Selåsdal 2003-11-17 20:10:01 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Gecko/20031030 Galeon/1.3.10

Description of problem:
I thing the compiler output speaks for itself:

gcc -O2 -march=i686 -fomit-frame-pointer -o
/home/noselasd/pvm3/bin/LINUXI386/slave_prime slave_prime.c -Wall -lpvm3 \
        -I/usr/share/pvm3/include -L/usr/share/pvm3/lib/LINUXI386 -lm
slave_prime.c: In function `calcprimes':
slave_prime.c:40: warning: dereferencing type-punned pointer will
break strict-aliasing rules
slave_prime.c: In function `main':
slave_prime.c:58: warning: passing arg 1 of `pvm_upkbyte' from
incompatible pointer type
/usr/share/pvm3/lib/LINUXI386/libpvm3.a(lpvmgen.o)(.text+0x292): In
function `pvmlogperror':
: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r'
/usr/share/pvm3/lib/LINUXI386/libpvm3.a(lpvmgen.o)(.text+0x289): In
function `pvmlogperror':

Though the release-notes suggests otherwise:
* Added use of new strerror() function in place of direct use of
  sys_errlist/sys_nerr, for systems that don't grok that.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Compile a program that uses libpvm3

Actual Results:  See above.

Expected Results:  libpvm3.a should use strerror_r/strerror instead of
Ditto for sys_nerr�

Additional info:

Comment 2 Nils O. Selåsdal 2003-11-19 13:27:06 UTC
Nice. Seems ok now.