[Bug 1639531] Re: GCC compiles programs to shared object instead of executable, preventing GUI file managers from executing programs
The problem is not that it's impossible to work around the incorrect default. The problem is the incorrect default itself. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info in Ubuntu. https://bugs.launchpad.net/bugs/1639531 Title: GCC compiles programs to shared object instead of executable, preventing GUI file managers from executing programs To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-defaults/+bug/1639531/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1639531] Re: GCC compiles programs to shared object instead of executable, preventing GUI file managers from executing programs
This isn't a bug. Ubuntu has setup GCC with "pie" flag enabled for some unknown reason, and this causes executable output to be tagged as shared library. Use "-no-pie" with GCC when compiling. If using Qt Creator / QMake add this to your project file unix:QMAKE_LFLAGS += -no-pie All will work fine after that, and your system will see your local GCC compiled executables tagged as "executable", and Nautilus or any other file browser will be able to run it via click as usual. Source: https://stackoverflow.com/questions/45329372/ubuntu-recognizes-executable-as-shared-library-and-wont-run-it-by-clicking -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info in Ubuntu. https://bugs.launchpad.net/bugs/1639531 Title: GCC compiles programs to shared object instead of executable, preventing GUI file managers from executing programs To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-defaults/+bug/1639531/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1639531] Re: GCC compiles programs to shared object instead of executable, preventing GUI file managers from executing programs
This is serious bug and is really counter-productive in 21 century when downloading some portable archive and cannot launch software, Very troublesome. This way is one way to scare people back to Windows. affects 20.10 and 21.04 too, please raise voice people. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info in Ubuntu. https://bugs.launchpad.net/bugs/1639531 Title: GCC compiles programs to shared object instead of executable, preventing GUI file managers from executing programs To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-defaults/+bug/1639531/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1639531] Re: GCC compiles programs to shared object instead of executable, preventing GUI file managers from executing programs
20.10 bug still not fixed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info in Ubuntu. https://bugs.launchpad.net/bugs/1639531 Title: GCC compiles programs to shared object instead of executable, preventing GUI file managers from executing programs To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-defaults/+bug/1639531/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1639531] Re: GCC compiles programs to shared object instead of executable, preventing GUI file managers from executing programs
18.04 bug still not fixed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info in Ubuntu. https://bugs.launchpad.net/bugs/1639531 Title: GCC compiles programs to shared object instead of executable, preventing GUI file managers from executing programs To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-defaults/+bug/1639531/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1639531] Re: GCC compiles programs to shared object instead of executable, preventing GUI file managers from executing programs
Launchpad has imported 8 comments from the remote bug at https://bugs.freedesktop.org/show_bug.cgi?id=97226. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2016-08-06T13:12:36+00:00 David Faure wrote: /usr/bin/ls: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.0.0, BuildID[sha1]=339279bdac0d1a8c98b6bbb92afc8d8edb185d9f, stripped This file is detected as application/x-sharedlib instead of application/x-executable, by the s-m-i test suite, if I add it there. Patch for the test suite: http://www.davidfaure.fr/kde/smi.diff + downloading http://www.davidfaure.fr/kde/ls into tests/. Result: ls, 'data' test: expected application/x-executable, got application/x-sharedlib ls, 'file' test: expected application/x-executable, got application/x-sharedlib There must be a bug in the ELF magic for application/x-sharedlib and/or application/x-executable. Reply at: https://bugs.launchpad.net/ubuntu/+source/shared-mime- info/+bug/1639531/comments/0 On 2016-08-06T13:17:24+00:00 Bugzilla-x wrote: Or you could just dump the file into the staging-tests/ directory, and run "make local-test". Patch welcome, but I wonder how useful that magic (or lack of accuracy) actually is. Reply at: https://bugs.launchpad.net/ubuntu/+source/shared-mime- info/+bug/1639531/comments/1 On 2016-08-06T18:05:51+00:00 David Faure wrote: Well we need a way to find out that /bin/ls is an executable, and there's no extension, so working magic would be useful ;) However I don't know anything about the ELF file format, so I don't know what the problem actually is (and whether it offers reliable magic). Admittedly the magic for x-sharedlib is the one that's much less useful, shared libs are typically called *.so or *.so.[0-9\.]* :-) But I wouldn't dare just removing all magic from x-sharedlib... unless someone can prove that the ELF file format makes no actual difference between shared libs and executables? Reply at: https://bugs.launchpad.net/ubuntu/+source/shared-mime- info/+bug/1639531/comments/2 On 2017-01-05T01:25:47+00:00 Alan Coopersmith wrote: The ELF file format distinguishes between traditional executables and shared objects, but unfortunately PIE executables are treated as ELF shared objects Reply at: https://bugs.launchpad.net/ubuntu/+source/shared-mime- info/+bug/1639531/comments/9 On 2017-01-14T16:16:09+00:00 Yann Droneaud wrote: AFAIK, a shared object could be a PIE program if it has a (valid) interpretor header (PT_INTERP). It should be noted that glibc's ELF loader (ld-linux.so, exact name depending on architecture) is a shared object and a valid program, but doesn't have an interpretor header, but that's the only exception I aware of. IOTH, glibc's libc.so is a shared object with a valid interpretor, making it a valid program (try it !). Reporting such library as a program might be misleading for end user. Anyway, PT_INTERP header not at a fixed location in the ELF file, so it cannot be described in shared-mime-info database. (It's a pity PIE ELF files were not describe with a new ELF type or at least a flag :( Reply at: https://bugs.launchpad.net/ubuntu/+source/shared-mime- info/+bug/1639531/comments/10 On 2017-09-06T21:34:59+00:00 dkg wrote: This has been open for over a year, and is related to even older bugs in tools that depend on shared-mime-info (e.g. https://bugzilla.gnome.org/show_bug.cgi?id=737849 ). This is also an issue in libmagic, and there is more discussion about ELF over there: https://bugzilla.redhat.com/show_bug.cgi?id=1296868 It'd be great to have some sort of resolution here. Reply at: https://bugs.launchpad.net/ubuntu/+source/shared-mime- info/+bug/1639531/comments/11 On 2017-09-06T21:39:53+00:00 Bugzilla-x wrote: (In reply to Daniel Kahn Gillmor from comment #5) > It'd be great to have some sort of resolution here. That's not going to happen unless somebody has a patch. Reading comment 4, that seems unlikely. If you have applications that require this deep level of knowledge of the different formats, you'll probably want to use something more precise than the shared-mime spec. Reply at: https://bugs.launchpad.net/ubuntu/+source/shared-mime- info/+bug/1639531/comments/12
[Bug 1639531] Re: GCC compiles programs to shared object instead of executable, preventing GUI file managers from executing programs
** Changed in: shared-mime-info Status: Unknown => Confirmed ** Changed in: shared-mime-info Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info in Ubuntu. https://bugs.launchpad.net/bugs/1639531 Title: GCC compiles programs to shared object instead of executable, preventing GUI file managers from executing programs To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-defaults/+bug/1639531/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1639531] Re: GCC compiles programs to shared object instead of executable, preventing GUI file managers from executing programs
** Package changed: gcc-defaults (Ubuntu) => shared-mime-info (Ubuntu) ** Bug watch added: freedesktop.org Bugzilla #97226 https://bugs.freedesktop.org/show_bug.cgi?id=97226 ** Also affects: shared-mime-info via https://bugs.freedesktop.org/show_bug.cgi?id=97226 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info in Ubuntu. https://bugs.launchpad.net/bugs/1639531 Title: GCC compiles programs to shared object instead of executable, preventing GUI file managers from executing programs To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-defaults/+bug/1639531/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs