Recent

Author Topic: Linking error, but what does it mean?  (Read 4520 times)

Elphi

  • Full Member
  • ***
  • Posts: 132
Linking error, but what does it mean?
« on: September 20, 2007, 05:47:02 pm »
I get the following error messages:
Code: [Select]

ydafbudf.lpr(34,1) Fatal: There were 1 errors compiling module, stopping
ydafbudf.lpr(34,1) Error: Error while linking
/mnt/y/y-invent/trunk/common/ylib.o: could not read symbols: Bad value
/usr/bin/ld: /mnt/y/y-invent/trunk/common/ylib.o: relocation R_X86_64_32S against `TC_SYSUTILS_DEFAULTFORMATSETTINGS' can not be used when making a shared object; recompile with -fPIC


What does it mean? Where can I set -fPIC?

BTW, is it a bug that the order of messages is reversed when 'copying selected messages to clipboard'?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2582
RE: Linking error, but what does it mean?
« Reply #1 on: September 20, 2007, 05:55:38 pm »
what compiler options are you using (or better what are you trying ?)
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Elphi

  • Full Member
  • ***
  • Posts: 132
Linking error, but what does it mean?
« Reply #2 on: September 20, 2007, 06:20:34 pm »
Installed FPC 2.2.0 for x86_64 Linux and Lazarus 0.9.23 beta for x86_64 Linux on CentOS 5. I want to build a 64 bits so (containing UDFs for use with Firebird). I didn't change default Lazarus/FPC settings (yet).

Almindor

  • Sr. Member
  • ****
  • Posts: 412
    • http://www.astarot.tk
Linking error, but what does it mean?
« Reply #3 on: September 21, 2007, 11:30:12 am »
You're making a library/.so somehow? That's not exactly supported on unix. You can make them by using ppumove tho.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Linking error, but what does it mean?
« Reply #4 on: September 21, 2007, 11:49:33 am »
Quote from: "Almindor2"
You're making a library/.so somehow? That's not exactly supported on unix. You can make them by using ppumove tho.


Building libraries (.so) is supported under Unix. Otherwise it would be impossible to build apache modules.

I would just obey the warning and put -fPIC on the Compiler Options dialog. There one can find a space for "Other options" or something similar.

Elphi

  • Full Member
  • ***
  • Posts: 132
Linking error, but what does it mean?
« Reply #5 on: September 21, 2007, 10:45:21 pm »
That worked, thanks; my first succesful build on linux!

 

TinyPortal © 2005-2018