[fpc-pascal] Changes in fcl-web

Joost van der Sluis joost at cnoc.nl
Sun Oct 31 22:15:28 CET 2010


On Sun, 2010-10-31 at 12:37 -0300, Julio C. Taborda wrote:

> 
> I just tried to install webdesign package and I get the following error:
> Using latest version of fpc 2.5.1 from svn.


> ~$ fppkg install webdesign -v
> [webdesign] Dependency on package rtl <none>, installed 2.5.1-1, available -  (OK)
> [webdesign] Dependency on package fcl-base <none>, installed 2.5.1-1, available -  (OK)
> [webdesign] Dependency on package fcl-xml <none>, installed 2.5.1-1, available -  (OK)
> [webdesign] Dependency on package fcl-web <none>, installed 2.5.1-1, available -  (OK)
> [webdesign] Dependency on package lnet <none>, installed 0.6.4-2446, available 0.6.4-2446  (OK)
> [webdesign] CurrentDir: "/home/jctaborda/.fppkg/build/webdesign"
> [webdesign] Unzipping "/home/jctaborda/.fppkg/archives/webdesign-0.9.0-1.zip"
> [webdesign] CurrentDir: "/home/jctaborda/.fppkg/build/webdesign"
> [webdesign] Executing: "/usr/bin/fpc -n -Fu/usr/lib/fpc/2.5.1/units/i386-linux/hash/ -Fu/usr/lib/fpc/2.5.1/units/i386-linux/paszlib/ -Fu/usr/lib/fpc/2.5.1/units/i386-linux/fcl-process/ -Fu/usr/lib/fpc/2.5.1/units/i386-linux/fpmkunit/ -Fu/usr/lib/fpc/2.5.1/units/i386-linux/rtl/ -FUbuild_fpmake_4CCD62701A56 -vi -O2 -XXs fpmake.pp"
> Target OS: Linux for i386
> Compiling fpmake.pp
> Linking fpmake
> /usr/bin/ld: warning: link.res contains output sections; did you forget -T?
> 41 lines compiled, 0.8 sec 
> [webdesign] CurrentDir: "/home/jctaborda/.fppkg/build/webdesign"
> [webdesign] Executing: "fpmake build --nofpccfg --verbose --compiler=/usr/bin/fpc --cpu=i386 --os=linux --prefix=/home/jctaborda/.fppkg/ --localunitdir=/home/jctaborda/.fppkg/lib/fpc/2.5.1/units/i386-linux/ --globalunitdir=/usr/lib/fpc/2.5.1/units/i386-linux/"
>   Compiling package webdesign
>   Creating output dir "units/i386-linux"
>     Compiling target fphtmlcomp
>       Executing command "/usr/bin/fpc -n -Tlinux -FUunits/i386-linux -Fu/usr/lib/fpc/2.5.1/units/i386-linux/rtl -Fu/usr/lib/fpc/2.5.1/units/i386-linux/fcl-base -Fu/usr/lib/fpc/2.5.1/units/i386-linux/fcl-xml -Fu/usr/lib/fpc/2.5.1/units/i386-linux/fcl-web -Sm fphtmlcomp.pp"
> Fatal: Can't find unit db used by fphtml
> Fatal: Compilation aborted
> Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
> The installer encountered the following error:
> External command "/usr/bin/fpc" failed with exit code 1
> The FPC Package tool encountered the following error:
> [webdesign] Execution of FPMake build failed

Oh, yes, that's true. There's a bug in fpcmake which generates invalid
dependency-files. That leads to problems with a mixed fpmake/fpcmake
setup.

You can solve this by installing fcl-web using fppkg also (instead of
using the normal 'make install'. Make the packages/fcl-web directory the
current directory on a command prompt and do 'fppkg install'. 

Tomorrow I'll change the webdesign package. (Problem is that it depends
on fcl-web, which depends on fcl-db. So the fcl-db unit-path has to be
included. But because the dependency from fcl-web on fcl-db isn't
detected, this isn't done. I'll add a direct dependency on fcl-db to the
fcl-web package to solve this temporary)

Joost.




More information about the fpc-pascal mailing list