PureBasic Forum
http://forums.purebasic.com/english/

PB5.44 - PB 5.51B1 - Compiled program flagged as Shared lib
http://forums.purebasic.com/english/viewtopic.php?f=15&t=66990
Page 2 of 2

Author:  Fred [ Sun Dec 25, 2016 12:58 pm ]
Post subject:  Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared

Just wait :)

Author:  Keya [ Sun Dec 25, 2016 1:15 pm ]
Post subject:  Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared

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!

Author:  Fred [ Sun Dec 25, 2016 3:46 pm ]
Post subject:  Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared

Yes: https://bugs.launchpad.net/ubuntu/+sour ... ug/1639531

Author:  StarBootics [ Sun Dec 25, 2016 4:28 pm ]
Post subject:  Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared

Still Unassigned ...

Very annoying but to me.

Best regards
StarBootics

Author:  arma [ Tue Jan 10, 2017 8:25 pm ]
Post subject:  Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared

There is no news yet? Still waiting?

Author:  vwidmer [ Mon Jul 24, 2017 3:03 am ]
Post subject:  Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared

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

Author:  vwidmer [ Mon Jul 24, 2017 4:23 am ]
Post subject:  Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared

is this something that we can use? and if so how?

Code:
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

Author:  vwidmer [ Mon Jul 24, 2017 7:20 pm ]
Post subject:  Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared

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/

Author:  arma [ Sat Aug 05, 2017 9:01 am ]
Post subject:  Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared

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!

Author:  Sicro [ Sat Aug 05, 2017 9:52 am ]
Post subject:  Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared

vwidmer has published a workaround here:
http://www.purebasic.fr/english/viewtopic.php?p=509675#p509675

Author:  Niffo [ Tue Oct 24, 2017 3:47 pm ]
Post subject:  Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared

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)

Code:
ImportC "-no-pie" : EndImport

does the trick but is it a long therm solution ? Is not it purebasic to add that automatically? How are the newcomers doing?

Author:  Saboteur [ Tue Oct 24, 2017 4:44 pm ]
Post subject:  Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared

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.

Author:  deeproot [ Tue Nov 07, 2017 11:37 am ]
Post subject:  Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared

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!

Page 2 of 2 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/