delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/25/14:21:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <20020825182052.36715.qmail@web21004.mail.yahoo.com>
Date: Sun, 25 Aug 2002 11:20:52 -0700 (PDT)
From: Nicholas Wourms <nwourms AT yahoo DOT com>
Subject: Re: [gcc 3.2]: undefined symbols when compiling cygwin dll.
To: cygwin AT cygwin DOT com
In-Reply-To: <20020825180950.52451.qmail@web21002.mail.yahoo.com>
MIME-Version: 1.0

--- Nicholas Wourms <nwourms AT yahoo DOT com> wrote:
> Hi,
> 
> I just wiped my cygwin install and started fresh with a new install
> based on gcc-3.2.  As usual, I installed everything.  I then
> proceeded to attempt compiling the cygwin dll (from cvs sources)
> using the following flags:
> 
> CXXFLAGS="-I/usr/include/c++/3.2" ../src/configure
> --prefix=/usr/src/cygwin-src/build/../install
> 
> Before I continue, let me state that the tree wasn't broken earlier
> today.  Also, no commits have been made on the cygdaemon-branch
> since
> then.  That being said, the build process craps out when it is
> trying
> to link all the object files for the dll.  Gcc states:
> 
>
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/libgcc.a(w32-shared-ptr.o)(.text+0x60):
> undefined reference to `_FindAtomA AT 4'
>
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/libgcc.a(w32-shared-ptr.o)(.text+0x131):
> undefined reference to `_AddAtomA AT 4'
>
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/libgcc.a(w32-shared-ptr.o)(.text+0x18e):
> undefined reference to `_GetAtomNameA AT 12'
> 
> I'm not sure if this is a bug or me missing something, but I
> thought
> I'd report it anyway.  Truth be told, I'm not terribly familiar
> with
> the gcc sources, but I'll poke around to see what turns up.  Also,
> note that I have verified that I have the proper packages necessary
> for gcc-3.2 installed.

Ok, I just remembered that those symbols are from kernel32.dll.  So,
I went back and modified the arguments passed by make to compile the
cygwin dll, appending "-lkernel32" to the end of the line.  Executing
the new command does, indeed, resolve the problem.  So I guess one
would need to modify Makefile.in to link the dll with -lkernel32
appended to the list of arguments.

Cheers,
Nicholas

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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