NetBSD Problem Report #28564

From www@netbsd.org  Mon Dec  6 17:01:13 2004
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 077EE251F08; Mon,  6 Dec 2004 17:01:13 +0000 (UTC)
Message-Id: <20041206170113.077EE251F08@narn.netbsd.org>
Date: Mon,  6 Dec 2004 17:01:13 +0000 (UTC)
From: ove@elektro-eel.org
Reply-To: ove@elektro-eel.org
To: gnats-bugs@netbsd.org
Subject: devel/eclipse: does not start, "cannot enable executable stack"
X-Send-Pr-Version: www-1.0

>Number:         28564
>Category:       pkg
>Synopsis:       devel/eclipse: does not start, "cannot enable executable stack"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jschauma
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 06 17:03:00 +0000 2004
>Last-Modified:  Fri Jun 03 11:46:01 +0000 2005
>Originator:     Ove Soerensen
>Release:        
>Organization:
>Environment:
NetBSD elysium.localnet 2.99.10 NetBSD 2.99.10 (ELYSIUM01) #11: Sat Nov 20 14:29:30 CET 2004  donloco@elysium.localnet:/usr/src/sys/arch/i386/compile/ELYSIUM01 i386
>Description:
devel/eclipse does not start. the error-message displayed is:
./eclipse: error while loading shared libraries: libXm.so.2: cannot enable
executable stack as shared object requires: Permission denied

the system is a 2 week old netbsd-current box (i386), the pkgsrc-tree is just
a few days old

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->jschauma
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Sat, 19 Mar 2005 02:48:02 +0000
Responsible-Changed-Why:
Over to maintainer.


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



From: Antoine Reilles <Antoine.Reilles@loria.fr>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/28564 eclipse does not run
Date: Thu, 2 Jun 2005 20:42:56 +0200

 I just found that 
 /usr/pkg/emul/linux/usr/bin/ldd /usr/pkg/eclipse/eclipse   

 gives the good libraries (once suse91_openmotif installed),
 while 
 /usr/pkg/emul/linux/usr/bin/ldd ./eclipse   
 says:
 ./eclipse: error while loading shared libraries: libXm.so.2: cannot enable executable stack as shared object requires: Permission denied

 using the patch
 --- eclipse.orig        2005-06-02 20:39:53.000000000 +0200
 +++ eclipse     2005-06-02 20:40:32.000000000 +0200
 @@ -14,4 +14,4 @@
  data=${data:-${HOME}}
  configuration=${configuration:-${HOME}/.eclipse}

 -(cd ${ECLIPSE_DIR} && ./eclipse -data ${data} -configuration ${configuration} $@)
 +${ECLIPSE_DIR}/eclipse -data ${data} -configuration ${configuration} $@

 for the /usr/pkgsrc/devel/eclipse/files/eclipse file looks like a good
 workaround under netbsd, since it prevent eclipse to use the eclipse provided
 libXm.so.2, which looks faulty, but use the one installed by suse91_openmotif

 However, this may break the linux part of the package

 regards,
 antoine

From: Antoine Reilles <Antoine.Reilles@loria.fr>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/28564 devel/eclipse: does not start, a patch
Date: Fri, 3 Jun 2005 13:42:15 +0200

 --AqsLC8rIMeq19msA
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 Here the patch i used to get eclipse working ond -current.

 I did not understand the reason of what the files/eclipse script do with -data
 and -config, the default behavior when launching eclipse looks much better (it
 starts by proposing a default workspace (${HOME}/workspace), and it is possible
 to tell eclipse to start in you prefered workspace by default. The script
 disables this feature.

 I feel it whould be better to let the files/eclipse script just be:

 #!/bin/sh
 #
 # $NetBSD: eclipse,v 1.2 2005/01/19 20:44:11 jschauma Exp $
 #
 # start the eclipse IDE

 ECLIPSE_DIR=/usr/pkg/eclipse

 ${ECLIPSE_DIR}/eclipse $@

 or maybe use the alternative framework for it (well, looks useless, but who knows...)

 regards,
 antoine

 --AqsLC8rIMeq19msA
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="eclipse.diff"

 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/devel/eclipse/Makefile,v
 retrieving revision 1.13
 diff -u -r1.13 Makefile
 --- Makefile	19 Jan 2005 20:44:11 -0000	1.13
 +++ Makefile	3 Jun 2005 11:39:25 -0000
 @@ -38,6 +38,7 @@
  do-build:
  	cd ${WRKDIR} && ${MAKE_ENV} ${SH} build -os linux -ws motif -arch x86
  .else
 +BUILD_DEPENDS+=	suse_openmotif>=9.1:../../emulators/suse_openmotif
  NO_BUILD=	#defined
  PAXDIR=		${WRKSRC}
  CHECK_SHLIBS=	NO
 Index: files/eclipse
 ===================================================================
 RCS file: /cvsroot/pkgsrc/devel/eclipse/files/eclipse,v
 retrieving revision 1.2
 diff -u -r1.2 eclipse
 --- files/eclipse	19 Jan 2005 20:44:11 -0000	1.2
 +++ files/eclipse	3 Jun 2005 11:39:25 -0000
 @@ -14,4 +14,4 @@
  data=${data:-${HOME}}
  configuration=${configuration:-${HOME}/.eclipse}

 -(cd ${ECLIPSE_DIR} && ./eclipse -data ${data} -configuration ${configuration} $@)
 +${ECLIPSE_DIR}/eclipse -data ${data} -configuration ${configuration} $@

 --AqsLC8rIMeq19msA--

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.