Sign in Join

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

Mailing lists / lazarus / 2009-02

Zeoslib libc error

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Matt Henley

I have lazarus installed (svn as of this morning), compiled as amd64 on linux. I just downloaded and tried to install the ZEOSDBO-6.6.4-stable.

When I try to install the package, I get this error on compilation:

Free Pascal Compiler version 2.2.2 [2009/01/17] for x86_64 Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Linux for x86-64
Compiling zplain.pas
Compiling /home/matt/Programs/Zeoslib/src/plain/ZPlainDb2.pas Compiling /home/matt/Programs/Zeoslib/src/plain/ZPlainDb2Driver.pas Compiling /home/matt/Programs/Zeoslib/src/plain/ZPlainDb2.pas Compiling /home/matt/Programs/Zeoslib/src/plain/ZPlainLoader.pas Fatal: Can't find unit libc used by ZPlainLoader
GetMsgLineFilename Filename
"/home/matt/Programs/Zeoslib/packages/lazarus/ZPlainLoader.pas" not found.
TExternalToolList.Run Exception:
/home/matt/Programs/Zeoslib/src/plain/ZPlainLoader.pas(1,1) Fatal: Can't find unit libc used by ZPlainLoader

There is an entry in the forum which mentions this ( http://zeos.firmos.at/viewtopic.php?t=1994 ) and they say that libc is not needed. Should I just comment out references to libc in the source files or is there something else I need to do? I don't want to create an unstable version of zeoslib.

Thanks
Matt

Reply by email

Marco van de Voort
to Matt Henley
Matt Henley wrote 7 lines
I have lazarus installed (svn as of this morning), compiled as amd64 on linux. I just downloaded and tried to install the ZEOSDBO-6.6.4-stable. When I try to install the package, I get this error on compilation: Fatal: Can't find unit libc used by ZPlainLoader

This is correct, this is a linux/i386 only unit. See http://wiki.freepascal.org/libc_unit

There is an entry in the forum which mentions this ( http://zeos.firmos.at/viewtopic.php?t=1994 ) and they say that libc is not needed.

Read that link better, it is not needed in SVN versions, and that change is not yet in releases.

Should I just comment out references to libc in the source files or is there something else I need to do? I don't want to create an unstable version of zeoslib.

Use a more recent (SVN) ZEOS version, or replace them with calls from the relevant FPC units. (see above wiki link to get an eye of which units qualify)

Reply by email

Matt Henley
to Marco van de Voort

As per one of the notes in the forum, I replaced the libc calls with baseunix and it compiled and installed fine. Will try to set up a database server and test tonight.

Marco van de Voort wrote 31 lines
On Sun, Feb 22, 2009 at 01:07:11PM -0600, Matt Henley wrote: > I have lazarus installed (svn as of this morning), compiled as amd64 > on linux. I just downloaded and tried to install the > ZEOSDBO-6.6.4-stable. > > When I try to install the package, I get this error on compilation: > Fatal: Can't find unit libc used by ZPlainLoader This is correct, this is a linux/i386 only unit. See http://wiki.freepascal.org/libc_unit > There is an entry in the forum which mentions this ( > http://zeos.firmos.at/viewtopic.php?t=1994 ) and they say that libc is > not needed. Read that link better, it is not needed in SVN versions, and that change is not yet in releases. > Should I just comment out references to libc in the > source files or is there something else I need to do? I don't want to > create an unstable version of zeoslib. Use a more recent (SVN) ZEOS version, or replace them with calls from the relevant FPC units. (see above wiki link to get an eye of which units qualify) _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email