[fpc-pascal] shared library on arm-linux (raspberry pi)

Fabio Luis Girardi fluisgirardi at gmail.com
Thu Jun 26 04:52:31 CEST 2014


What's the current status of dynlibs unit for Linux ARM?

I'm doing a project and a shared library, both on a raspberry pi with FPC
2.6.4. I built the shared library successfully, but when I try build a
empty program only with dynlibs unit on uses, the program won't compile.
The output is:

pi at raspberrypi ~/ffcfilas/libcustomization.wizard $ fpc program1.fpr
Free Pascal Compiler version 2.6.4 [2014/03/21] for arm
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Linux for ARMEL
Compiling program1.fpr
Assembling program1
Linking program1
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In function
`_haltproc_eabi':
(.text+0x88): undefined reference to `_fini'
/usr/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In function
`_haltproc_eabi':
(.text+0x90): undefined reference to `_init'
program1.fpr(16) Error: Error while linking
program1.fpr(16) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcarm returned an error exitcode (normal if you did not
specify a source file to be compile

The program program1.fpr is:

program program1;

uses dynlibs;

procedure test;
begin

end;

begin
  test;
end.

My FPC come from
http://sourceforge.net/projects/freepascal/files/Linux/2.6.4/fpc-2.6.4.arm-linux.tar

On a Linux 64, the program and the shared library compiles and works fine.

So, programs and shared libraries works fine on RPi or I'm doing something
wrong?





-- 
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140625/e748010b/attachment.html>


More information about the fpc-pascal mailing list