[Bug 1923361] [NEW] unable to link xdr functions with groovy and hirsute

Dominique Rousset 1923361 at bugs.launchpad.net
Sun Apr 11 15:42:17 UTC 2021


Public bug reported:

Hi,
I have a technical code that relies on XDR for it's internal data format. I cannot compile it anymore with hirsute (and groovy).

As a simpler test I tried to compile

#include <rpc/xdr.h>
int main(){
xdr_void();
}

called it testxdr.c 
gcc -o testxdr -I/usr/include/tirpc -ltirpc testxdr.c

-I and -l options are indicated by package-config.

With the include compilation is OK but the linking fails with an indefinite reference to xdr_void.
With focal, nor -I neither -l options are necessary, xdr functions are within glibc. 
With hirsute nm says that xdr_void symbol is defined in libtirpc.so and surprisingly (for me) in glibc 2.33 (should have been removed since 2.32 ?)

Any help is welcome !

D.

** Affects: libtirpc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libtirpc in Ubuntu.
https://bugs.launchpad.net/bugs/1923361

Title:
  unable to link xdr functions with groovy and hirsute

Status in libtirpc package in Ubuntu:
  New

Bug description:
  Hi,
  I have a technical code that relies on XDR for it's internal data format. I cannot compile it anymore with hirsute (and groovy).

  As a simpler test I tried to compile

  #include <rpc/xdr.h>
  int main(){
  xdr_void();
  }

  called it testxdr.c 
  gcc -o testxdr -I/usr/include/tirpc -ltirpc testxdr.c

  -I and -l options are indicated by package-config.

  With the include compilation is OK but the linking fails with an indefinite reference to xdr_void.
  With focal, nor -I neither -l options are necessary, xdr functions are within glibc. 
  With hirsute nm says that xdr_void symbol is defined in libtirpc.so and surprisingly (for me) in glibc 2.33 (should have been removed since 2.32 ?)

  Any help is welcome !

  D.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libtirpc/+bug/1923361/+subscriptions



More information about the foundations-bugs mailing list