[Lazarus] How to debug DB errors.

Joost van der Sluis joost at cnoc.nl
Wed May 30 18:05:58 CEST 2018


Op 30-05-18 om 17:38 schreef Donald Ziesig via Lazarus:

> I found the fpmake.pp file in /usr/share/fpcsrc/3.0.4/packages/fcl-db. 
> Using sudo -i, I ran:
> 
> fppkg install -o -gl
> 
> It responded "Error code 301", then "Compile successful".
> 
> I ran it again:
> 
> hp-laptop fcl-db # fppkg install -o -gl
> Warning: Unexpected response status code: 301
> The FPC Package tool encountered the following error:
> Found broken packages, run "fppkg fixbroken" first
> 
> hp-laptop fcl-db # fppkg fixbroken
> Warning: Unexpected response status code: 301
> Re-install packages which are dependent on just installed packages
> The FPC Package tool encountered the following error:
> Stream read error
> 
> All google searches for error 301 showed "Moved permanently" as the 
> meaning.  Unfortunately, it doesn't show where it was looking when it 
> got the 301 error.  Any suggestions?

The URL to the central repository has changed from 'http' to 'https', so 
that's why you see the redirect. But the main repository won't help you, 
it is almost empty.

But in your case you can just ignore all this. Fppkg tries to recompile 
all packages which are depending on fcl-db. But the only change is that 
you added debug-info. So the recompile is not necessary.

Try to build your project, and see what happens.



(There is another repository you could try, search for your fppg.cfg 
(run 'fppkg listsettings') and adapt the url to the central repository 
to: http://fpc.cnoc.nl/repo/testing/mirrors.xml.

If you still miss any packages, ask me to add them.)

Regards,

Joost.


More information about the Lazarus mailing list