Hello all
if i try compile free pascal http22 examples in ubuntu - i get this error.

Mailing lists / fpc-pascal / 2009-10
9 messages · 4 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hello all
if i try compile free pascal http22 examples in ubuntu - i get this error.
http://www.freepascal.org/faq.var#unix-ld219
Downgrade to binutils 2.18.x, or try upgrading binutils and hope that Ubuntu has backported the required fix already (no new release of binutils has been made since that bug was fixed).
Jonas
Hello Jonas,
Thank you. But, do not prompt a beginner how to do this?
I don't know.
Jonas
i backported to
aptitude show binutils
Package: binutils
State: installed
Automatically installed: no
Version: 2.18.93.20081009-0ubuntu1
Priority: optional
Section: devel
Maintainer: Ubuntu Core developers
Uncompressed Size: 8729k
Depends: libc6 (>= 2.8~20080505), zlib1g (>= 1:1.1.4) Suggests: binutils-doc (= 2.18.93.20081009-0ubuntu1) Conflicts: elf-binutils, gas, modutils (< 2.4.19-1) Provides: elf-binutils
Description: The GNU assembler, linker and binary utilities The programs in this package are used to assemble, link and manipulate binary and object files. They may be used in conjunction with a compiler and various
libraries to build programs.
ld -v
GNU ld (GNU Binutils for Ubuntu) 2.18.93.20081009
but got this error
fpc mod_hello.pp
Free Pascal Compiler version 2.2.2-8 [2009/01/08] for i386 Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Linux for i386
Compiling mod_hello.pp
Linking libmod_hello.so
mod_hello.pp(229,1) Error: Can't call the linker, switching to external linking
mod_hello.pp(229,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
help again please?
Try ld 2.18.50
And also use FPC 2.2.4, not 2.2.2.
Jonas
Hello Jonas,
ok
on fpc 2.2.4 and binutil 2.9.91 sources cimpiled and linked but if i load module in apache (on ubuntu)
i get this error
This usually comes when you compiled your Apache module with the wrong version of httpdXX directory from fpc/packages/.
There are 3 included in fpc:
httpd13
httpd20
and
httpd22
Delete the two that are not your Apache version and recompile your module (or in Lazarus -> Project -> Compiler Options -> Other unit files enter the path to the right httpdXX directory from fpc/packages/).
Hello ABorka,
Thank you. And can we somehow specify the keys when compiling a directory to use? Thanks in advance.