This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems with xwinclip version 0.5/0.6


>>>>> "Chris" == Chris Twiner <c_twiner@hotmail.com> writes:

    Chris> Hi,
    Chris> I can send you them directly later (I'm at work now) but..

Thanks, I installed your version and all is fine now. Maybe this can be released
as xwinclip-Test07 ?

    Chris> You say it dies after the messages are displayed, do you mean that
    Chris> xwinclip then terminates?  Or do you mean it doesn't seem to do much?

It terminated with: could not get set hook func

    Chris> Also I'm still a little confused as to why you needed to change the
    Chris> build dll script anyway, what release of cygwin are you using?  Maybe
    Chris> I and the others have an older/newer version.

As I said earlier I have the latest gcc version installed.

gcc -v
Reading specs from /bin/../lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-1/configure --enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr/sbin
Thread model: posix
gcc version 3.2 20020818 (prerelease)

And your build script gives:

Build the Dll

linking hook dll DllMain as entry point
Creating library file: libxwinclip_hook.import.a
xwinclip_hook.o(.eh_frame+0x11):xwinclip_hook.cpp: undefined reference to `__gxx_personality_v0'

When I change the last line from:

gcc -Wl,--out-implib,libxwinclip_hook.import.a -shared -e _DllMain@12 -mno-cygwin -o xwinclip_hook.dll xwinclip_hook.o

to

g++ -Wl,--out-implib,libxwinclip_hook.import.a -shared -e _DllMain@12 -mno-cygwin -o xwinclip_hook.dll xwinclip_hook.o

the script works. But xwinclip with the resulting xwinclip_hook.dll terminates with
the error: could not get set hook func


I have also installed the latest gcc version 2.95.3-10 (cygwin special).
When I change your build script to use this gcc version everything compiles and links OOTB.

#!/bin/bash

echo 
echo Build the Dll
echo 

gcc-2 -c xwinclip_hook.cpp -o xwinclip_hook.o
echo linking hook dll DllMain as entry point
gcc-2 -Wl,--out-implib,libxwinclip_hook.import.a -shared -e _DllMain@12 -mno-cygwin -o xwinclip_hook.dll xwinclip_hook.o 

With this xwinclip_hook.dll everything works fine.


So the problem is gcc-3.2-1.

    Chris> Chris

Ciao
  Volker


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]