[Linux-ia64] compilation error... any input?

From: Umut Aymakoglu <umuta_at_us.ibm.com>
Date: 2003-06-05 10:33:53
Hi -
  We have Red Hat Advanced Server 2.1 Linux with glibc-2.2.4-32.3 and below
code is giving some error. Any help will be highly appreciated.

thanks,
Umut

a.c:

  int g_var=0;
a()
{
g_var = 1;
}

b.c:

b()
{
 a();
}

%cc -c -o a.o a.c
%ar r liba.a a.o
%cc -c -o b.o b.c
%cc -shared -o b.so b.o liba.a
/usr/bin/ld: a.o: @gprel relocation against dynamic symbol g_var
collect2: ld returned 1 exit status
Received on Wed Jun 04 17:34:02 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:15 EST