This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [ITP] znc 1.6.0
- From: Alexey Sokolov <alexey+cygwin at asokolov dot org>
- To: cygwin-apps at cygwin dot com
- Date: Wed, 22 Jul 2015 22:39:57 +0100
- Subject: Re: [ITP] znc 1.6.0
- Authentication-results: sourceware.org; auth=none
- References: <87d1zogku1 dot fsf at Rainer dot invalid> <55ABEC90 dot 3040106 at asokolov dot org> <55ABECDD dot 9040805 at asokolov dot org> <87zj2sezel dot fsf at Rainer dot invalid> <55AC0089 dot 2090304 at asokolov dot org> <20150720074442 dot GJ3864 at calimero dot vinschen dot de> <55AD44E9 dot 8070207 at asokolov dot org> <20150721071221 dot GZ3864 at calimero dot vinschen dot de> <55AED4D4 dot 1040403 at tiscali dot co dot uk> <55AED687 dot 8070607 at asokolov dot org> <20150722080707 dot GG3864 at calimero dot vinschen dot de>
22.07.2015 09:07, Corinna Vinschen:
> On Jul 22 00:32, Alexey Sokolov wrote:
>>> I've had a busy day and I'm a little tired, so I'm probably about to
>>> make a fool of myself on a public mailing list. Never mind :-) Three
>>> points on the znc package:
>>>
>>> - Unless I've missed something, all this talk of DLL naming is a
>>> little academic at the moment, as there is no 'dll.a' file to actually
>>> link against.
>>
>> GCC links against .dll (or .so) fine.
>
> Without the (non-versioned) .dll.a file in /usr/lib, using -lznc will
> fail. This should be part of the -devel package.
$ g++ -O2 -std=c++11 -U__STRICT_ANSI__ -D_FORTIFY_SOURCE=2 -include
znc/zncconfig.h -L/bin -lznc-1.6 -shared -o alias.so alias.cpp
This is roughly what znc-buildmod does when one runs "znc-buildmod
alias.cpp", it's provided in the -devel package. And it works.
(I've omitted several long flags from that command line, which are
irrelevant for this discussion)
The current packaged version uses '-L"/bin"' with quotes instead, I need
to fix this.
>>> - Has anyone tried building this in Cygwin? I tried rebuilding the
>>> 1.6.0-2 release, and couldn't get it to compile without hacking the
>>> 'Makefile.in' files. Even if you generate a 'dll.a', the linker
>>> arguments are in the wrong order. This doesn't matter in Linux, but it
>>> /does/ matter in Cygwin. Does this only build if cross-compiled out of
>>> Fedora?
>>
>> I'm using https://github.com/znc/znc-cygwin to build it on Cygwin.
>>
>>> - Forgive me for being pedantic, but who gave this a GTG? I couldn't
>>> find one on this thread, and yet the package is up on the mirrors.
>>
>> I thought if the package exists in popular distros, no GTG needed?
>
> Uhm, no. The *votes* are not required, the GTG is.
>
Oops. Sorry then!