crtbeginT.o needs to be recompiled with -fPIC
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-4.4 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
gcc-5 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gcc-4.4
I'm trying to compile a very simple C library to examine how JNI functions. The code in question comes from http://
When running the command:
gcc -o libnativelib.so -shared -Wl,-soname,
gcc says:
/usr/bin/ld: /usr/lib/
/usr/lib/
collect2: ld returned 1 exit status
It looks like crtbeginT.o needs to be recompiled with -fPIC.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gcc-4.4-base 4.4.3-4ubuntu5
ProcVersionSign
Uname: Linux 2.6.32-24-server x86_64
Architecture: amd64
Date: Thu Sep 16 12:27:58 2010
Dependencies:
InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: gcc-4.4
Attaching nativelib.c.