Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Xfree and glibc-2.0x
@ 1997-03-04 11:54 Zarmfab Software Development
  1997-03-04 17:22 ` Richard Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: Zarmfab Software Development @ 1997-03-04 11:54 UTC (permalink / raw)


Having switched to glibc-2.01, i have the problem that i can't
compile X applications, because the X libraries are linked against the old glibc.

I tried to recompile Xfree-3.2 with glibc-2.01, and it built nearly out of the box ( one
little problem with xterm ).

The problem is, nearly all programs ( xterm and the xserver work !! ) compiled 
against the new-made X libraries terminate immediately with
error: Unresolved inheritance operation.

all i could figure out yet is this error is raised somewhere inside XtPopup()

Does anybody know how  to fix this ?

-- 
Martin Cornelius, ZARMFAB software development, University of Bremen
phone: 49-421-218-4807    FAX: 49-421-218-3889
email: fabsoft@zarm.uni-bremen.de
paper-mail: Hochschulring / Am Fallturm, 28359 BREMEN, Germany

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Xfree and glibc-2.0x
  1997-03-04 11:54 Xfree and glibc-2.0x Zarmfab Software Development
@ 1997-03-04 17:22 ` Richard Henderson
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Henderson @ 1997-03-04 17:22 UTC (permalink / raw)


> error: Unresolved inheritance operation.

Hmm.  This sounds like a problem with ld's creation of the .plt.
Do things work when you run the program with the environment 
variable LD_BIND_NOW=1?

r~

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Xfree and glibc-2.0x
@ 1997-03-04 18:43 Zarmfab Software Development
  0 siblings, 0 replies; 3+ messages in thread
From: Zarmfab Software Development @ 1997-03-04 18:43 UTC (permalink / raw)


Hello Richard, you wrote:
>Do things work when you run the program with the environment 
>variable LD_BIND_NOW=1?

i can't tell right now, because i first have to rebuild X, but maybe the following
is interesting to you:

Trying to recompile perl-5 with glibc-2.01, i encountered a problem with dlopen:

Build a shared library containing two functions, one of them referencing the address
of the other:

----- shared library libfoo.so, linked with    gcc -shared -----------
#include <stdio.h>

void fun2(void) {
        ;
}

void fun1(void) {
        printf("Address of fun2: %lX",(unsigned long)fun2);
}
---------------------------------------------------

Then build a simple program, that tries to dlopen() shared libs
and reports failures

----- program dynaload, linked with gcc -rdynamic ----------
#include <stdio.h>
#include <dlfcn.h>

int main(int argc ,char *argv[]) {
  char *errstr;
  void *handle;
  if (argc!=2) {
    puts("wrong args");
    exit (1);
  }
  handle=dlopen(argv[1],RTLD_LAZY);
  if (!handle) {
    errstr=dlerror();
    printf("Error loading %s : %s\n",argv[1],errstr);
    exit (1);
  }
  puts("Loading OK");
  return 0;
}
--------------------------------------------------------

then try >  dynaload ./libfoo.so

If dynaload was linked with -static, this works in any case. ( Loading OK).

If dynaload was linked dynamic, it only works with
export LD_BIND_NOW=1, if LD_BIND_NOW is not defined, the output is:
Error loading ./fcntl.so : ./fcntl.so: undefined symbol: fun2

btw, it looks like the -rdynamic flag to gcc has no affect.

-- 
Martin Cornelius, ZARMFAB software development, University of Bremen
phone: 49-421-218-4807    FAX: 49-421-218-3889
email: fabsoft@zarm.uni-bremen.de
paper-mail: Hochschulring / Am Fallturm, 28359 BREMEN, Germany

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-03-04 18:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-04 11:54 Xfree and glibc-2.0x Zarmfab Software Development
1997-03-04 17:22 ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1997-03-04 18:43 Zarmfab Software Development

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox