delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/24/09:37:18

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <76F97D29CEDF4D97BA3004F2C2B2EF08 AT desktop2>
Subject: RE: Trying to build (perl) Inline::CPP-0.25.
Date: Tue, 24 Jul 2007 14:36:55 +0100
Message-ID: <01e301c7cdf7$b4d93b20$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <76F97D29CEDF4D97BA3004F2C2B2EF08@desktop2>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

On 24 July 2007 13:42, Sisyphus wrote:

> I've built Inline::CPP on previous Cygwin installations (on Windows 2000)
> and on "native" Win32 builds of perl , but attempts to build this module
> under Cygwin are now failing under 'make test' with the following errors:
> 
> -------------------------------------
> gcc -shared -o
>  _01basic_t_5cd2.dll -Wl,--out-implib=lib_01basic_t_5cd2.dll.a
> -Wl,--export-all-symbols 
>  -Wl,--enable-auto-import -Wl,--stack,8388608 -Wl,--enable-auto-image-base \
> -s -L/usr/local/lib _01basic_t_5cd2.o
> /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a
> _01basic_t_5cd2.o:_01basic_t_5cd2.c:(.text+0x2a5): undefined reference to
> `operator new(unsigned int)'
> _01basic_t_5cd2.o:_01basic_t_5cd2.c:(.text+0x1345): undefined reference to
> `operator delete(void*)'
> _01basic_t_5cd2.o:_01basic_t_5cd2.c:(.text+0x19cc): undefined reference to
> `std::ios_base::Init::Init()'
> _01basic_t_5cd2.o:_01basic_t_5cd2.c:(.text+0x19e8): undefined reference to
> `std::ios_base::Init::~Init()'
> Creating library file: lib_01basic_t_5cd2.dll.a
> collect2: ld returned 1 exit status
> perlld: *** system() failed to execute
> -------------------------------------
> 
> My immediate thought is that the problem arises because, as is evident from
> the above copy'n'paste, 'gcc' is being invoked instead of 'g++'.

  Almost certainly, using the wrong driver means the c++ libraries won't be
included on the linker command line.

> Is there some %Config::Config{} key that contains an inappropriate value, or
> does the bug lie within the Inline::CPP-0.25 source ?

  That I can't say.  But assuming the build uses proper dependencies in the
makefile, you should be able to workaround it by cutting and pasting that line
into your shell, replacing 'gcc' by 'g++' as you go, and once you've got past
that manually the rest of the build should run to completion.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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