<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">Bo Berglund via Lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank" rel="noreferrer">lazarus@lists.lazarus-ide.org</a>> schrieb am Sa., 27. Okt. 2018, 13:58:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, 27 Oct 2018 13:39:12 +0200, Sven Barth via Lazarus<br>
<<a href="mailto:lazarus@lists.lazarus-ide.org" rel="noreferrer noreferrer" target="_blank">lazarus@lists.lazarus-ide.org</a>> wrote:<br>
<br>
>Binaries usually have aligned sections so removing or adding just a <br>
>small bit (like the dependency on gdk in your case introduced by the <br>
>LCL) does not necessarily mean a change in size.<br>
><br>
>You could also try "objdump -x /path/to/your/binary" and look at was is <br>
>listed as NEEDED in the Dynamic Section. You'd then need to find out <br>
>what dependencies you don't want to have and then figure out which units <br>
>led to their inclusion. Maybe it's just a stray unit that pulls in some <br>
>GUI dependencies.<br>
><br>
<br>
I tried to upgrade, dist-upgrade the server to remove the logon<br>
greeting about available updates then rebooted.<br>
No difference.<br>
<br>
Then I tried by installing xfce4 desktop, thinking that this would<br>
deposit the X11 stuff into the system. But it did not solve the<br>
problem even though the start error message now changed to:<br>
<br>
(LicMgr:19268): Gtk-WARNING **: cannot open display:<br>
<br>
So clearly there was a problem somewhere here concerning X11 and it is<br>
gone, but replaced with this display stuff...<br>
<br>
I *really* need to get this program running without any GUI references<br>
since it is supposed to be run by cron every 10 minutes to process<br>
website generated request emails...<br>
And the server itself is never accessed except via the command line<br>
over the network. I am currently some 8400 km away from the physical<br>
location of the server....<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">As others already wrote you should not try to fulfill twee dependency on t he server, but to remove it from your binary. For this you need to find out what unit pulls in that dependency and get rid of that. You can maybe use the Unit Dependencies window for that (see <a href="http://wiki.freepascal.org/IDE_Window:_Unit_dependencies" target="_blank" rel="noreferrer">http://wiki.freepascal.org/IDE_Window:_Unit_dependencies</a> ). </div><div dir="auto"><br></div><div dir="auto">Alternatively you could try to switch the LCLWidgetType to NoGUI as had already been suggested by Mattias as well and try whether that is sufficient. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>