Recent

Author Topic: fpweb (cgi Program)  (Read 570 times)

cpalx

  • Hero Member
  • *****
  • Posts: 753
fpweb (cgi Program)
« on: November 26, 2022, 05:23:54 pm »
Hello

I have a very rarely problem

I have an Api made in lazarus  (2.2.4 and fpc 3.2.2)

it is working perfectly in Ubuntu Server (18.04 and 20.04)

recently I updated my desktop PC to Ubuntu 22.04, with the same lazarus version. I compiled my progrsm (API) and compiles ok and works ok in my Ubunutu 22.04 PC. but it doesnt work in my Ubuntu Servers (18.04,20.04). the same code I compile in Ubuntu 20.04 and works in all Ubuntu Servers Versions.

All PCs are 64 bits compiled

Here you have the links

http://db.infinitus.pe/cgi-bin/ApiRest_Ubuntu2004/ApiVersion

http://db.infinitus.pe/cgi-bin/ApiRest_Ubuntu2204/ApiVersion
 

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: fpweb (cgi Program)
« Reply #1 on: November 26, 2022, 05:36:39 pm »
Maybe it has to do with linked libraries version's

cpalx

  • Hero Member
  • *****
  • Posts: 753
Re: fpweb (cgi Program)
« Reply #2 on: November 26, 2022, 05:50:01 pm »
i dont think so,
it compiles ok (so I have the binary that does not need any other library)

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: fpweb (cgi Program)
« Reply #3 on: November 27, 2022, 09:54:00 pm »
recently I updated my desktop PC to Ubuntu 22.04, with the same lazarus version. I compiled my progrsm (API) and compiles ok and works ok in my Ubunutu 22.04 PC. but it doesnt work in my Ubuntu Servers (18.04,20.04). the same code I compile in Ubuntu 20.04 and works in all Ubuntu Servers Versions.

There was a change in the C library between 20.04 and 22.04 that is versioned. That means you can not run an application compiled on Ubuntu 22.04 on a 20.04. You must compile it there (this is true no matter if it's Pascal or C as long as it links against the C library).

Edit: see also this thread.
« Last Edit: November 27, 2022, 09:56:40 pm by PascalDragon »

cpalx

  • Hero Member
  • *****
  • Posts: 753
Re: fpweb (cgi Program)
« Reply #4 on: November 28, 2022, 11:39:11 pm »
thanks.


 

TinyPortal © 2005-2018