Subject: Re: pkg/28564 devel/eclipse: does not start, "cannot enable executable stack"
To: None <jschauma@netbsd.org, gnats-admin@netbsd.org,>
From: Antoine Reilles <Antoine.Reilles@loria.fr>
List: pkgsrc-bugs
Date: 06/02/2005 18:26:02
The following reply was made to PR pkg/28564; it has been noted by GNATS.

From: Antoine Reilles <Antoine.Reilles@loria.fr>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/28564 devel/eclipse: does not start, "cannot enable executable stack"
Date: Thu, 2 Jun 2005 20:22:13 +0200

 Hi,
 
 I ran today in exactly the same problem, with -current and an almost up-to-date pkgsrc.
 
 I found out that /usr/pkg/emul/linux/usr/bin/ldd was not happy with the eclipse binary.
 After installing emul/suse91_openmotif, it was better:
 
 $ /usr/pkg/emul/linux/usr/bin/ldd /usr/pkg/eclipse/eclipse    /usr/pkgsrc/emulators/suse91_openmotif
         libXm.so.2 => /usr/X11R6/lib/libXm.so.2 (0xbda30000)
         libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0xbd9dc000)
         libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xbd8e0000)
         libc.so.6 => /lib/libc.so.6 (0xbd7cb000)
         libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0xbd7c2000)
         libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0xbd7aa000)
         libXp.so.6 => /usr/X11R6/lib/libXp.so.6 (0xbd7a2000)
         libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xbd792000)
         libdl.so.2 => /lib/libdl.so.2 (0xbd78f000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xbdbec000)
 
 This time, libXm.so.2 is found, but i still can't run eclipse, i get again:
 
 ./eclipse: error while loading shared libraries: libXm.so.2: cannot enable executable stack as shared object requires: Permission denied
 
 but:
 objdump -p /usr/pkg/emul/linux/usr/X11R6/lib/libXm.so.2
 says:
    STACK off    0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**2
          filesz 0x00000000 memsz 0x00000000 flags rw-
 which looks good, as all libXm.so.2 dependancies
 
 So i have no real solution, but one point is that the suse91_openmotif package will be needed
 
 regards,
 antoine