Bug 722881 - Undefined reference to xdr_* when linking to libpvm3.a
Summary: Undefined reference to xdr_* when linking to libpvm3.a
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: pvm
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alex Lancaster
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-18 10:58 UTC by David Nečas
Modified: 2012-08-07 14:48 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-07 14:48:36 UTC
Type: ---


Attachments (Terms of Use)

Description David Nečas 2011-07-18 10:58:46 UTC
Description of problem:
Static linking to libpvm3 fails due to undefined references to xdr_int, xdr_u_int, xdr_double, xdr_float, etc.


Version-Release number of selected component (if applicable):
pvm-3.4.5-15.fc15.x86_64
glibc-static-2.14-4.x86_64


How reproducible:
Always.


Steps to Reproduce:
1. Create the following program pvmlinkfail.c:

#include <pvm3.h>
int main(void) { pvm_mytid(); return 0; }

2. Compile and link it

gcc -I/usr/share/pvm3/include -L/usr/share/pvm3/lib/LINUXX86_64 -o pvmlinkfail pvmlinkfail.c -lpvm3 -static

  
Actual results:
Linking fails with
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(lpvmgen.o): In function `pvmlogperror':
lpvmgen.c:(.text+0x3e8): warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
lpvmgen.c:(.text+0x3db): warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `dec_xdr_init':
pmsg.c:(.text+0x17e): undefined reference to `xdrmem_create'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `enc_xdr_step':
pmsg.c:(.text+0x663): undefined reference to `xdrmem_create'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `enc_xdr_dcplx':
pmsg.c:(.text+0x6b2): undefined reference to `xdr_double'
pmsg.c:(.text+0x6d1): undefined reference to `xdr_double'
pmsg.c:(.text+0x6fd): undefined reference to `xdr_double'
pmsg.c:(.text+0x718): undefined reference to `xdr_double'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `enc_xdr_cplx':
pmsg.c:(.text+0x7b1): undefined reference to `xdr_float'
pmsg.c:(.text+0x7ee): undefined reference to `xdr_float'
pmsg.c:(.text+0x804): undefined reference to `xdr_float'
pmsg.c:(.text+0x83d): undefined reference to `xdr_float'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `enc_xdr_double':
pmsg.c:(.text+0x8d8): undefined reference to `xdr_double'
pmsg.c:(.text+0x8f3): undefined reference to `xdr_double'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `enc_xdr_float':
pmsg.c:(.text+0x970): undefined reference to `xdr_float'
pmsg.c:(.text+0x9ab): undefined reference to `xdr_float'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `enc_xdr_ulong':
pmsg.c:(.text+0xa33): undefined reference to `xdr_u_long'
pmsg.c:(.text+0xa7b): undefined reference to `xdr_u_long'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `enc_xdr_long':
pmsg.c:(.text+0xb0a): undefined reference to `xdr_long'
pmsg.c:(.text+0xb56): undefined reference to `xdr_long'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `enc_xdr_int':
pmsg.c:(.text+0xbe0): undefined reference to `xdr_int'
pmsg.c:(.text+0xc1b): undefined reference to `xdr_int'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `enc_xdr_short':
pmsg.c:(.text+0x12cd): undefined reference to `xdr_short'
pmsg.c:(.text+0x1308): undefined reference to `xdr_short'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `enc_xdr_byte':
pmsg.c:(.text+0x1593): undefined reference to `xdrmem_create'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `enc_xdr_init':
pmsg.c:(.text+0x171d): undefined reference to `xdrmem_create'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `dec_xdr_step':
pmsg.c:(.text+0x1857): undefined reference to `xdrmem_create'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `dec_xdr_dcplx':
pmsg.c:(.text+0x18b3): undefined reference to `xdr_double'
pmsg.c:(.text+0x18d2): undefined reference to `xdr_double'
pmsg.c:(.text+0x18f5): undefined reference to `xdr_double'
pmsg.c:(.text+0x1910): undefined reference to `xdr_double'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `dec_xdr_cplx':
pmsg.c:(.text+0x19b2): undefined reference to `xdr_float'
pmsg.c:(.text+0x19e6): undefined reference to `xdr_float'
pmsg.c:(.text+0x19fc): undefined reference to `xdr_float'
pmsg.c:(.text+0x1a2c): undefined reference to `xdr_float'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `dec_xdr_double':
pmsg.c:(.text+0x1acc): undefined reference to `xdr_double'
pmsg.c:(.text+0x1ae7): undefined reference to `xdr_double'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `dec_xdr_float':
pmsg.c:(.text+0x1b68): undefined reference to `xdr_float'
pmsg.c:(.text+0x1b9b): undefined reference to `xdr_float'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `dec_xdr_ulong':
pmsg.c:(.text+0x1c2a): undefined reference to `xdr_u_long'
pmsg.c:(.text+0x1c5d): undefined reference to `xdr_u_long'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `dec_xdr_uint':
pmsg.c:(.text+0x1cec): undefined reference to `xdr_u_int'
pmsg.c:(.text+0x1d1f): undefined reference to `xdr_u_int'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `dec_xdr_ushort':
pmsg.c:(.text+0x1daa): undefined reference to `xdr_u_short'
pmsg.c:(.text+0x1ddd): undefined reference to `xdr_u_short'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `dec_xdr_long':
pmsg.c:(.text+0x1e6c): undefined reference to `xdr_long'
pmsg.c:(.text+0x1e9f): undefined reference to `xdr_long'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `dec_xdr_int':
pmsg.c:(.text+0x1f2e): undefined reference to `xdr_int'
pmsg.c:(.text+0x1f61): undefined reference to `xdr_int'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `dec_xdr_short':
pmsg.c:(.text+0x1fec): undefined reference to `xdr_short'
pmsg.c:(.text+0x201f): undefined reference to `xdr_short'
/usr/share/pvm3/lib/LINUXX86_64/libpvm3.a(pmsg.o): In function `dec_xdr_byte':
pmsg.c:(.text+0x21b4): undefined reference to `xdrmem_create'
collect2: ld returned 1 exit status


Expected results:
Linking succeeds.


Additional info:
This is a regression, it works in Fedora 14.

Only static linking fails; it works without -static.  It seems that static version of glibc does not provide the xdr_* symbols while the dynamic does.

Comment 1 Fedora End Of Life 2012-08-07 14:48:38 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.