Re: lintian question
- To: firstname.lastname@example.org
- Subject: Re: lintian question
- From: Carey Evans <email@example.com>
- Date: 21 Mar 1999 15:19:34 +1200
- Message-id: <firstname.lastname@example.org>
- In-reply-to: Will Lowe's message of "Sat, 20 Mar 1999 19:46:19 -0500 (EST)"
- References: <Pine.LNX.3.95q.990320194530.14424B-100000@gondolin>
Will Lowe <harpo@UDel.Edu> writes:
> Can anybody tell me what this means, and what to do about it?
> W: rosegarden: shared-lib-without-dependency-information
If the code in Petal.so uses any C library calls, it has to say so for
Debian. (Some OSes don't support this dependency information.) The
library should be linked with whatever libraries it uses, probably by
adding `-lc' to the end of the link line.
> E: rosegarden: shlib-with-non-pic-code
ELF shared libraries could be loaded anywhere in memory, so the C code
has to be compiled so that it doesn't depend on particular addresses
for code and data. If it isn't, the code doesn't get shared between
multiple processes using it.
You need to add something like `-fPIC' to the compilation, e.g.
gcc -O2 -c -fPIC foo.c
Carey Evans http://home.clear.net.nz/pages/c.evans/
"my cats are essentially my kids. 'cept I haven't known children to put on
dark clothing and lay on a dark rug between the door and the light switch."
- Ryan Tucker