Page 2 of 2
Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
Posted: Sun Dec 25, 2016 12:58 pm
by Fred
Just wait
Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
Posted: Sun Dec 25, 2016 1:15 pm
by Keya
is this the same issue?
http://askubuntu.com/questions/863267/c ... or-windows
im just wondering if its been reported to Ubuntu yet
nice work isolating the problem anyway Fred!
Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
Posted: Sun Dec 25, 2016 3:46 pm
by Fred
Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
Posted: Sun Dec 25, 2016 4:28 pm
by StarBootics
Still Unassigned ...
Very annoying but to me.
Best regards
StarBootics
Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
Posted: Tue Jan 10, 2017 8:25 pm
by arma
There is no news yet? Still waiting?
Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
Posted: Mon Jul 24, 2017 3:03 am
by vwidmer
I am having this issue now anyone know a fix? I am on Arch linux using PB 5.60 x64 same on the LTS version
Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
Posted: Mon Jul 24, 2017 4:23 am
by vwidmer
is this something that we can use? and if so how?
Code: Select all
You should add -no-pie option to compilation command line
without :
$ gcc main.c -o main
$ file main
main:ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=46ada4e5e25fc120ca052c9beb8bfa5491fc6239, not stripped
wtih :
$ gcc main.c -o main -no-pie
$ file main
main: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=17f860c6c84fc1a5771c8744b7aaaf164c219559, not stripped
thanks
Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
Posted: Mon Jul 24, 2017 7:20 pm
by vwidmer
found this not sure if its something as well why cant make executable files any more.
https://www.reddit.com/r/archlinux/comm ... lt_in_gcc/
Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
Posted: Sat Aug 05, 2017 9:01 am
by arma
Hello everybody,
I still can not use Ubuntu 17.04...
I mean I can NOT create real executable. I just find one method, if change GCC version... But i have tons of new trouble on my Real Ubuntu System if i switch to old version of GCC, especially while update Ubuntu...
Is there any effective and real solution to create real executable way?
Thanks!
Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
Posted: Sat Aug 05, 2017 9:52 am
by Sicro
Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
Posted: Tue Oct 24, 2017 3:47 pm
by Niffo
I was not able to create an executable anymore on Linux since months too, the executable was seen as a shared library (Debian-9, PB 5.61 x64, PB 5.45 x64)
does the trick but is it a long therm solution ? Is not it purebasic to add that automatically? How are the newcomers doing?
Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
Posted: Tue Oct 24, 2017 4:44 pm
by Saboteur
I had that problem in Ubuntu 17.04, but I changed recently to Zorin 12 and purebasic is working well. I think Zorin is based in Ubuntu, but perhaps the problem is fixed.
Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
Posted: Tue Nov 07, 2017 11:37 am
by deeproot
Small update on this issue - especially for anyone new or returning to Linux :
Problem is still relevant to Purebasic 5.46 LTS Beta 1, as well as 5.61, when compiling under Manjaro version 17.x (latest with all updates applied). Executables are flagged as Shared Library and cannot be directly launched from the file manager (Thunar). I'm guessing it would also be the case for the latest Arch Linux.
Workaround above fixes it, so annoying but easy to resolve!