Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-05

silly question

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

duilio foschi

I am have FPC v. 2.6.2 installed on linux/ubuntu server A.

I am sure I did some change to zeos library in server A, but I cannot remember details.

I'd like to have the same version of FPC installed on a new linux/ubuntu server B.

I found that FPC v. 3.0.2 was already installed on server B.

Using my poor skills in linux, I took the following steps:

1. deleted directory /usr/lib/fpc/3.0.2 of server B
2. copied directory /usr/lib/fpc/2.6.2 of server A into server B (used scp)

Now a few strange things happen:

a. if I try to run fpc from - say - /usr/lib/cgi-bin , I get the message Error: ppcx64 can't be executed, error message: Failed to execute "ppcx64", error code: 127

b. if I try to run fpc from /usr/lib/fpc/2.6.2, a lot of Zeos lib units are compiled EVERY TIME. This for sure was not happening before (see below).

I did something silly, right ?

Any help in order to fix the install ?

Thank you

Peppe

fpc 106693.pp
Compiling 106693.pp
Free Pascal Compiler version 2.6.2-8 [2014/01/22] for x86_64 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Linux for x86-64
Compiling 106693.pp
Compiling ./zeosdbo/component/ZConnection.pas
Compiling ./zeosdbo/component/ZAbstractConnection.pas Compiling ./zeosdbo/dbc/ZDbcDbLib.pas
Compiling ./zeosdbo/dbc/ZDbcConnection.pas
Compiling ./zeosdbo/core/ZClasses.pas
Compiling ./zeosdbo/core/ZMessages.pas
Compiling ./zeosdbo/core/ZCompatibility.pas
ZCompatibility.pas(426,33) Warning: Some fields coming after "ZAlias" weren't initialized
ZCompatibility.pas(431,28) Warning: Some fields coming before "ClientCodePage" weren't initialized
ZCompatibility.pas(457,10) Warning: Some fields coming after "WriteFormatSettings" weren't initialized
Writing Resource String Table file: ZMessages.rst
Compiling ./zeosdbo/dbc/ZDbcIntfs.pas
Compiling ./zeosdbo/core/ZCollections.pas
Compiling ./zeosdbo/core/ZTokenizer.pas
Compiling ./zeosdbo/core/ZFastCode.pas
ZFastCode.pas(2511,25) Warning: Function result variable does not seem to initialized
ZFastCode.pas(2573,18) Warning: Function result variable does not seem to initialized
ZFastCode.pas(2633,18) Warning: Function result variable does not seem to initialized
ZFastCode.pas(3191,18) Warning: Function result variable does not seem to initialized
ZFastCode.pas(3246,18) Warning: Function result variable does not seem to initialized
...

This is what happens when I try to compile a small application in server B fpc 106693.pp
Free Pascal Compiler version 2.6.2-8 [2014/01/22] for x86_64 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Linux for x86-64
Compiling 106693.pp
Linking 106693
/usr/bin/ld.bfd: warning: link.res contains output sections; did you forget -T? 43 lines compiled, 0.2 sec

Reply by email

Michael Van Canneyt
to duilio foschi
duilio foschi wrote 13 lines
I am have FPC v. 2.6.2 installed on linux/ubuntu server A. I am sure I did some change to zeos library in server A, but I cannot remember details. I'd like to have the same version of FPC installed on a new linux/ubuntu server B. I found that FPC v. 3.0.2 was already installed on server B. Using my poor skills in linux, I took the following steps: 1. deleted directory /usr/lib/fpc/3.0.2 of server B

That was not necessary.
You can perfectly have 2 versions of FPC co-existing.

Show quoted text 7 lines
2. copied directory /usr/lib/fpc/2.6.2 of server A into server B (used scp) Now a few strange things happen: a. if I try to run fpc from - say - /usr/lib/cgi-bin , I get the message Error: ppcx64 can't be executed, error message: Failed to execute "ppcx64", error code: 127

Did you correct the symlink /usr/bin/ppcx64 ? it should point to /usr/lib/fpc/2.6.2/ppcx64

Show quoted text 6 lines
b. if I try to run fpc from /usr/lib/fpc/2.6.2, a lot of Zeos lib units are compiled EVERY TIME. This for sure was not happening before (see below). I did something silly, right ?

Ill-advised, perhaps.

Any help in order to fix the install ?

The above should help you to get things compiling again.

About recompilation of zeos units; 2.6.2 may work differently to 3.0.2 regarding circular units which causes a recompile. Or the zeeos units in your search path are the old ones.

Michael.

Reply by email

duilio foschi
to Michael Van Canneyt

I got stuck with the symlinks.

The level of indirection is rather complex.

Finally I

1. reinstalled v. 2.6.2 from scratch
2. copied directory zeosdbo from server A to server B
3. copied file /etc/fpc.cfg from server A to server B

now (finally!) everything works as expected.

Thank you

Peppe

2017-05-07 17:13 GMT+02:00 Michael Van Canneyt :

Show quoted text 60 lines
On Sun, 7 May 2017, duilio foschi wrote: > I am have FPC v. 2.6.2 installed on linux/ubuntu server A. > > I am sure I did some change to zeos library in server A, but I cannot > remember details. > > I'd like to have the same version of FPC installed on a new > linux/ubuntu server B. > > I found that FPC v. 3.0.2 was already installed on server B. > > Using my poor skills in linux, I took the following steps: > > 1. deleted directory /usr/lib/fpc/3.0.2 of server B That was not necessary. You can perfectly have 2 versions of FPC co-existing. > 2. copied directory /usr/lib/fpc/2.6.2 of server A into server B (used > scp) > > Now a few strange things happen: > > a. if I try to run fpc from - say - /usr/lib/cgi-bin , I get the message > Error: ppcx64 can't be executed, error message: Failed to execute > "ppcx64", error code: 127 Did you correct the symlink /usr/bin/ppcx64 ? it should point to /usr/lib/fpc/2.6.2/ppcx64 > > b. if I try to run fpc from /usr/lib/fpc/2.6.2, a lot of Zeos lib > units are compiled EVERY TIME. This for sure was not happening before > (see below). > > I did something silly, right ? Ill-advised, perhaps. > Any help in order to fix the install ? The above should help you to get things compiling again. About recompilation of zeos units; 2.6.2 may work differently to 3.0.2 regarding circular units which causes a recompile. Or the zeeos units in your search path are the old ones. Michael. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply by email