Forum

× General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.

Question Get rid of dependencies from libraries

  • Yaroslav Romanchenko
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 months 1 day ago #12764 by Yaroslav Romanchenko
Get rid of dependencies from libraries was created by Yaroslav Romanchenko
Hi, guys

I have following problem.
My CGI application compiles well :) But, all further things not very well on all versions of CT next to 5.5.
When I compile it to i386-linux target on CT 5.6 and higher it didn't work on Debian server ("500 Internal Server Error" occurs). Compiled on CT 5.5 it works well!

I think that it's because of dependencies from linux libraries! Because, on CT 5.5 it compiles well with empty -Fl setting, on CT 5.6 and higher doesn't. Only -Fl=$(CTDir)\binLibraries\$(TargetCPU)-$(TargetOS) helps!
Comparing corresponding map files confirms that there is no linux specific dependencies on CT 5.5, but, a lot of them on on CT 5.6 and higher.

The question is, how to get rid of such dependencies??? How to detect which units in uses sections leads to that dependencies?

Corresponding map files are attached.

Sorry for late reaction (so many versions follow after CT 5.5...) ;)

Best Regards

File Attachment:

File Name: CMSmaps.zip
File Size:730 KB
Attachments:

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
2 months 1 day ago - 2 months 1 day ago #12765 by Sternas Stefanos
Replied by Sternas Stefanos on topic Get rid of dependencies from libraries
Thanks Sir
Please some questions:
-you cross-build your CGI application for i386-linux target?
-from what Host OS ?
-your test Debian Server OS version ?

CodeTyphon Architect and Programmer
Last edit: 2 months 1 day ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • Yaroslav Romanchenko
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 months 1 day ago #12766 by Yaroslav Romanchenko
Replied by Yaroslav Romanchenko on topic Get rid of dependencies from libraries
Good day Sir

- Yes, I cross-compile my CGI application for i386-linux target.
- Host OS is Win 7 x64. I use latest Typhon32 (v. 6.6, but tried also almost all from 5.6 and higher).
- Do not know exactly, which version of Debian, but, hosting provider tells that they update OS every half year. One definitely known, that Debian x64

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
2 months 21 hours ago - 2 months 20 hours ago #12767 by Sternas Stefanos
Replied by Sternas Stefanos on topic Get rid of dependencies from libraries
If your app target is i386-linux and
test PC is Debian x64 (x86_64-linux)
you must cross-build your app for x86_64-linux

Debian x86_64-linux can run i386-linux app
only if you make some changes to OS packages,
and this it's NOT possible at "hosting provider" level.

CodeTyphon Architect and Programmer
Last edit: 2 months 20 hours ago by Sternas Stefanos.
The following user(s) said Thank You: Yaroslav Romanchenko

Please Log in or Create an account to join the conversation.

  • Yaroslav Romanchenko
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 months 17 hours ago - 2 months 16 hours ago #12769 by Yaroslav Romanchenko
Replied by Yaroslav Romanchenko on topic Get rid of dependencies from libraries
OMG, I didn't mind that it's MUST to build 64-bit apps for 64-bit Linux. And 32-bit apps previously did work (built with CT 5.5).

Thank you, Sir Sternas
Now it works! It's just wonderfull! :woohoo:
Last edit: 2 months 16 hours ago by Yaroslav Romanchenko.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
2 months 12 hours ago #12770 by Sternas Stefanos
Replied by Sternas Stefanos on topic Get rid of dependencies from libraries
Thanks Sir
have fun

CodeTyphon Architect and Programmer
The following user(s) said Thank You: Yaroslav Romanchenko

Please Log in or Create an account to join the conversation.