Mail Archives: cygwin/2002/08/25/14:21:04
--- 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 -