delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/07/12:15:34

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Thu, 7 Jun 2001 12:14:43 -0400
From: Jason Tishler <Jason DOT Tishler AT dothill DOT com>
To: Sherwood Robinson <srobinson AT fredericksburg DOT com>
Cc: cygwin AT cygwin DOT com
Subject: Re: ZPyGreSQLDA Compile
Message-ID: <20010607121443.A423@dothill.com>
Mail-Followup-To: Sherwood Robinson <srobinson AT fredericksburg DOT com>,
cygwin AT cygwin DOT com
Mime-Version: 1.0
In-Reply-To: <5.1.0.14.2.20010607114638.00bcc050@mail.fredericksburg.com>
User-Agent: Mutt/1.3.18i
Organization: Dot Hill Systems Corp.

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

Sherwood,

On Thu, Jun 07, 2001 at 11:53:48AM -0400, Sherwood Robinson wrote:
> [snip]
> gcc -shared -Wl,--enable-auto-image-base  ./pgmodule.o  -lpq -lcrypt -L/usr/lib/ python2.1/config -lpython2.1 -o ./_pgmodule.dll
> Cannot export _bss_end__: symbol not defined
> Cannot export _bss_start__: symbol not defined
> Cannot export _data_end__: symbol not defined
> Cannot export _data_start__: symbol not defined
> collect2: ld returned 1 exit status
> make: *** [_pgmodule.dll] Error 1
> 
> Anyone tell me what I am doing wrong here?

The above is caused because no symbols are being exported from
_pgmodule.dll.  The attached patch should solved this problem.  However,
I did *not* actually test it.

Note that the source that you are using for pgmodule is old.  Newer
versions already have this patch applied.

BTW, why don't you use the pre-built _pgmodule.dll that is part of the
Cygwin PostgreSQL 7.1.2 distribution?

Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: 732.264.8770 x235
Dot Hill Systems Corp.               Fax:   732.264.8798
82 Bethany Road, Suite 7             Email: Jason DOT Tishler AT dothill DOT com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

--vsXaXog9EfCkO3Y3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="pgmodule.c.patch"

--- pgmodule.c.orig	Thu Jun  7 12:05:46 2001
+++ pgmodule.c	Thu Jun  7 12:07:16 2001
@@ -2224,8 +2224,7 @@ static struct PyMethodDef pg_methods[] =
 static char pg__doc__[] = "Python interface to PostgreSQL DB"; 
 
 /* Initialization function for the module */
-void init_pg(void);		/* Python doesn't prototype this */
-void
+DL_EXPORT(void)
 init_pg(void)
 {
 	PyObject       *mod, *dict, *v;


--vsXaXog9EfCkO3Y3
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
--vsXaXog9EfCkO3Y3--

- Raw text -


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