delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/24/21:52:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Mon, 24 Jan 2005 18:52:12 -0800
From: Yitzchak Scott-Thoennes <sthoenna AT efn DOT org>
To: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Cc: courier-users AT lists DOT sourceforge DOT net, cygwin AT cygwin DOT com,
Perl Porters <perl5-porters AT perl DOT org>
Subject: Re: Courier-0.47, linker error: perlfilter.c: undefined reference to `_boot_'
Message-ID: <20050125025212.GA3836@efn.org>
Mail-Followup-To: Yitzchak Scott-Thoennes <sthoenna AT efn DOT org>, "Gerrit P. Haase" <gp AT familiehaase DOT de>, courier-users AT lists DOT sourceforge DOT net, cygwin AT cygwin DOT com, Perl Porters <perl5-porters AT perl DOT org>
References: <41F57C7A DOT 1040009 AT familiehaase DOT de>
Mime-Version: 1.0
In-Reply-To: <41F57C7A.1040009@familiehaase.de>
User-Agent: Mutt/1.4.1i
Organization: bs"d
X-IsSubscribed: yes

On Mon, Jan 24, 2005 at 11:53:46PM +0100, Gerrit P. Haase wrote:
> Hi there,
> 
> getting this error when building courier with perl-5.8.6 on Cygwin which 
> works before upgrading to perl-5.8.6 (was perl-5.8.5 without Win32CORE
> static extension):
> 
> make[6]: Entering directory 
> `/k/ftproot/pub/courier/courier-0.47/.build/courier/filters/perlfilter'
> Compiling 
> /k/ftproot/pub/courier/courier-0.47/courier/filters/perlfilter/perlfilter.c
> ccache gcc 
> -I/k/ftproot/pub/courier/courier-0.47/courier/filters/perlfilter/.. -I.. 
> -I/k/ftproot/pub/courier/courier-0.47/courier/filters/perlfilter/../.. 
> -I../.. 
> -I/k/ftproot/pub/courier/courier-0.47/courier/filters/perlfilter/../../.. 
> -I ../../.. -g0 -O3  -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe 
> -I/usr/local/include  -I/usr/lib/perl5/5.8/cygwin/CORE   -Wl,-s -o 
> perlfilter.exe  perlfilter.o ../libfilter/libfilter.a 
> ../../../waitlib/libwaitlib.a ../../libs/libcommon.a 
> ../../libs/libcourier.a  -s  -s -L/usr/local/lib 
> /usr/lib/perl5/5.8/cygwin/auto/DynaLoader/DynaLoader.a 
> /usr/lib/perl5/5.8/cygwin/auto/Win32CORE/Win32CORE.a 
> -L/usr/lib/perl5/5.8/cygwin/CORE -lperl -lcrypt -lgdbm_compat
> perlfilter.o(.text+0x36):perlfilter.c: undefined reference to `_boot_'
> 
> 
> It seems that the xsinit.c file was generated wrong:
> 
> ========= xsinit.c =========
> #include <EXTERN.h>
> #include <perl.h>
> 
> EXTERN_C void xs_init (pTHX);
> 
> EXTERN_C void boot_DynaLoader (pTHX_ CV* cv);
> EXTERN_C void boot_ (pTHX_ CV* cv);
> EXTERN_C void boot_Win32CORE (pTHX_ CV* cv);
> 
> EXTERN_C void
> xs_init(pTHX)
> {
> 	char *file = __FILE__;
> 	dXSUB_SYS;
> 
> 	/* DynaLoader is a special case */
> 	newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file);
> 	newXS("::bootstrap", boot_, file);
> 	newXS("Win32CORE::bootstrap", boot_Win32CORE, file);
> }
> ========= xsinit.c =========
> 
> From Makefile.am:
> xsinit.c: config.status
> 	@PERL@ -MExtUtils::Embed -e xsinit -- -o xsinit.c -std
> 
> This is expanded in the Makefile to:
> xsinit.c: config.status
> 	/usr/bin/perl -MExtUtils::Embed -e xsinit -- -o xsinit.c -std
> 
> 
> Maybe it is related to the inclusion of Win32CORE, however it is
> dubious that there is bootstrap code for an anonym module anyway.
> 
> Is there s.th. wrong in my Cygwin perl build, where should I look at
> first to find the reason for this problem, any hint appreciated.

Hmm. Does it still happen if you try against a perl5.8.6 without the
Win32CORE staticly linked?

--
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