delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/14/09:33:50

X-Spam-Check-By: sourceware.org
Message-ID: <20060714133332.79216.qmail@web53004.mail.yahoo.com>
Date: Fri, 14 Jul 2006 06:33:32 -0700 (PDT)
From: Gary Zablackis <gzabl AT yahoo DOT com>
Subject: Re: DLL loading problem with binutils-20060709-1
To: Bill Metzenthen <BMetzenthen AT cochlear DOT com DOT au>, cygwin AT cygwin DOT com
In-Reply-To: <OF01F89EE0.5B14EF64-ONCA2571AB.001889FB-CA2571AB.001A62F8@cochlear.com.au>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--- Bill Metzenthen <BMetzenthen AT cochlear DOT com DOT au>
wrote:

> 
> 
> I have been developing a mixed python / C++ program
> which uses SWIG to
> handle the interface.  This worked fine until I
> updated binutils to
> 20060709-1.  Then when the python script tried to
> load the DLL generated
> with the help of SWIG, the following error message
> appeared:
> Traceback (most recent call last):
>   File "main.py", line 13, in ?
>     from py_extend import *
>   File "/c/usr/projects/py_extend.py", line 5, in ?
>     import _py_extend
> ImportError: Permission denied
> 
> All file permissions looked o.k.  Restoring binutils
> to 20050610-1 fixed
> the problem.
> 
> Is the new binutils broken?  Is there a new ld
> option I should be using?
> Or perhaps I was getting away with bad behaviour
> before and the new
> binutils is punishing me?  I have been generating
> the DLL simply with "g++
> -shared $(OBJECTS) -o _py_extend.dll".
> 

I am getting the same problem with a program that uses
matplotlib as a subsystem. If I build with the new
binutils installed, I get the same permission problem
as above. If I build with the older version, there is
no problem. I believe, but cannot verify at the moment
that everything runs fine under the new binutils, it
just does not work if the newer binutils is installed
when I compile matplotlib.
I will attempt over the weekend to get a simpler
testcase built.

Gary Zablackis

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019