I am not able to compile a shared library with GCC 3.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I am not able to compile a shared library with a GCC 3.2 on a HP-UX 11.0 (parisc 1.1) .
$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/specs
Configured with: ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure
Thread model: posix
gcc version 3.2
$ cat test.c
int myFunct()
{
       int i = 1;
       return i++;
}
$ gcc -fPIC -c test.c
$ gcc -shared -o libtest.sl test.o
/usr/ccs/bin/ld: DP relative code in file /var/tmp//ccMDztre.o - shared library must be position
   independent.  Use +z or +Z to recompile.
collect2: ld returned 1 exit status

What I am doing wrong? Thanks for your help.

Donatas

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux