Mark Morgan Lloyd wrote:
I'm working on compiling Lazarus for SPARC under Linux, using Debian 3.1
("Sarge"). I've now got a working copy of the FPC 2.0.4 compiler (many thanks to
the relevant FPC developers for their help :-)

I'm grinding to a halt with this:

Compiling /home/markMLl/pascal/lazarus/components/mpaslex/mpaslex.pp
Assembling mpaslex
Assembling todolist
Compiling codeexplorer.pas
Compiling codeexplopts.pas
Assembling codeexplopts
Assembling codeexplorer
Compiling buildfiledlg.pas
Assembling buildfiledlg
Compiling extractprocdlg.pas
Assembling extractprocdlg
Compiling findrenameidentifier.pas
Assembling findrenameidentifier
Compiling cleandirdlg.pas
Assembling cleandirdlg
Assembling main
Assembling lazarus
Linking ../lazarus
/usr/bin/ld: cannot find -lglib
lazarus.pp(108,42) Error: Error while linking
make[2]: *** [lazarus] Error 1
make[2]: Leaving directory `/home/markMLl/pascal/lazarus/ide'
make[1]: *** [ide] Error 2
make[1]: Leaving directory `/home/markMLl/pascal/lazarus/ide'
make: *** [ide] Error 2

Reviewing previous discussion I see suggestions that there should be a symlink
like libglib.so -> libglib-1.2.so.0.0.10, and that the directory containing this
should be referenced in fpc.cfg.

AFAIK the compiler searches /usr/lib always.


I can see that Debian has installed the libglib1.2 and libglib2.0-0 packages,
but not the corresponding development packages (presumably libglib1.2-dev and
libglib2.0-dev respectively. I can see files

/usr/lib/libglib-2.0.so.0.600.4
/usr/lib/libglib-2.0.so.0 -> libglib-2.0.so.0.600.4
/usr/lib/libglib-1.2.so.0.0.10
/usr/lib/libglib-1.2.so.0 -> libglib-1.2.so.0.0.10

In /etc/fpc.cfg I've got

-Fl/usr/lib/gcc-lib/sparc-linux/3.3.5

Looking at a Debian machine that has had libglib2.0-dev installed on it I can't
see a libglib.so symlink, so I presume that Debian wouldn't set one up for v1.2
either.

I am not a debian user, but I think that is a wrong assumption. Try installing that gtk 1.2 devel package.



Allowing that the object of the exercise is (a) to have working FPC and Lazarus
compilers and (b) not to break my development system by setting up any
inappropriate symlinks, can anybody comment on the best way of sorting out the
missing file or symlink?


If you are reluctant to install the appropriate dev packages, then you can create all the symlinks yourself.

Vincent

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to