public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Reini Urban <rurban@x-ray.at>
To: Philip@kime.org.uk, cygwin@cygwin.com
Subject: Re: Building a vendor perl module with gcc under cygwin
Date: Thu, 19 May 2011 16:51:00 -0000	[thread overview]
Message-ID: <BANLkTikAs6feHJxyssvkoECUXV1BC0AF6g@mail.gmail.com> (raw)
In-Reply-To: <BANLkTiniRAuZ=04JLVHcQ=_cydAk3kDhbA@mail.gmail.com>

"Exec format error" is the returned error string from dlopen, which
tried to load your dll.
So it looks like either your cflags or ldflags are wrong, or the lib
you are linking against cannot be loaded by cygwin's perl.

Easiest would be to link both dll's statically, your MOD.dll and the
??? lib you are linking against. Maybe both libc versions are not
compatible. e.g. msvcrt and cygwin.
Or the PE header of the 3rd dll is not matching, 64bit maybe.
-- 
Reini Urban
http://phpwiki.org/           http://murbreak.at/

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

      reply	other threads:[~2011-05-19 16:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-18 13:38 Philip Kime
2011-05-19 16:51 ` Reini Urban [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTikAs6feHJxyssvkoECUXV1BC0AF6g@mail.gmail.com \
    --to=rurban@x-ray.at \
    --cc=Philip@kime.org.uk \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).