It is currently Wed Jun 20, 2018 10:30 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
PostPosted: Sun Dec 25, 2016 12:58 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13304
Location: France
Just wait :)


Top
 Profile  
Reply with quote  
 Post subject: Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
PostPosted: Sun Dec 25, 2016 1:15 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 04, 2015 7:10 am
Posts: 1673
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!

_________________
Thankyou to all the coders who generously helped & encouraged me in the nearly 2yrs when i was welcome here,
it was a tremendous privilege. I learned a lot. I wish you and your families all the best and success for the future.


Top
 Profile  
Reply with quote  
 Post subject: Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
PostPosted: Sun Dec 25, 2016 3:46 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13304
Location: France
Yes: https://bugs.launchpad.net/ubuntu/+sour ... ug/1639531


Top
 Profile  
Reply with quote  
 Post subject: Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
PostPosted: Sun Dec 25, 2016 4:28 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 07, 2013 11:35 am
Posts: 330
Location: Canada
Still Unassigned ...

Very annoying but to me.

Best regards
StarBootics

_________________
The Stone Age did not end due to a shortage of stones !


Top
 Profile  
Reply with quote  
 Post subject: Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
PostPosted: Tue Jan 10, 2017 8:25 pm 
Offline
User
User

Joined: Sun Jul 24, 2016 11:54 pm
Posts: 33
There is no news yet? Still waiting?


Top
 Profile  
Reply with quote  
 Post subject: Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
PostPosted: Mon Jul 24, 2017 3:03 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Jan 20, 2014 6:32 pm
Posts: 153
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

_________________
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA


Top
 Profile  
Reply with quote  
 Post subject: Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
PostPosted: Mon Jul 24, 2017 4:23 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Jan 20, 2014 6:32 pm
Posts: 153
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

_________________
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA


Top
 Profile  
Reply with quote  
 Post subject: Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
PostPosted: Mon Jul 24, 2017 7:20 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jan 20, 2014 6:32 pm
Posts: 153
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/

_________________
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA


Top
 Profile  
Reply with quote  
 Post subject: Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
PostPosted: Sat Aug 05, 2017 9:01 am 
Offline
User
User

Joined: Sun Jul 24, 2016 11:54 pm
Posts: 33
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!


Top
 Profile  
Reply with quote  
 Post subject: Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
PostPosted: Sat Aug 05, 2017 9:52 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jun 25, 2014 5:25 pm
Posts: 220
Location: Germany
vwidmer has published a workaround here:
http://www.purebasic.fr/english/viewtopic.php?p=509675#p509675

_________________
Image

PureBasic-CodeArchiv-Rebirth: Git-Repository / Download -- Any help is welcome!

Manjaro Xfce x64 (Main system) :: WindowsXP/Xubuntu x86 (VirtualBox) :: PureBasic (Linux: x86/x64, Windows: x86) :: All are up to date


Top
 Profile  
Reply with quote  
 Post subject: Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
PostPosted: Tue Oct 24, 2017 3:47 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Jan 31, 2006 9:43 am
Posts: 475
Location: France
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?

_________________
Niffo


Top
 Profile  
Reply with quote  
 Post subject: Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
PostPosted: Tue Oct 24, 2017 4:44 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Apr 25, 2003 7:09 pm
Posts: 234
Location: (Madrid) Spain
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.

_________________
[:: PB Registered ::]

Win8.1 Intel Quad 2.4GHz 4GB RAM Nvidia GTX 750Ti


Top
 Profile  
Reply with quote  
 Post subject: Re: PB5.44 - PB 5.51B1 - Compiled program flagged as Shared
PostPosted: Tue Nov 07, 2017 11:37 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Dec 17, 2009 12:00 pm
Posts: 155
Location: Llangadog, Wales, UK
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!

_________________
www.deeproot.co.uk


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye