From: Petr Vandrovec <vandrove@vc.cvut.cz>
To: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>
Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>,
Giuliano Pochini <pochini@shiny.it>,
alex@alexfisher.me.uk,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
"Jeff V. Merkey" <jmerkey@utah-nac.org>,
Michael Buesch <mbuesch@freenet.de>
Subject: Re: Would I be violating the GPL?
Date: Fri, 18 Nov 2005 22:55:54 +0100 [thread overview]
Message-ID: <437E4DEA.9070502@vc.cvut.cz> (raw)
In-Reply-To: <20051118151932.GH9488@csclub.uwaterloo.ca>
Lennart Sorensen wrote:
> On Thu, Nov 17, 2005 at 10:23:21PM +0100, Jan Engelhardt wrote:
>
>>Building for VMware Workstation 5.0.0.
>
>
> Well I only looked at 4.5.2
>
>
>>Using 2.6.x kernel build system.
>>make -C /lib/modules/2.6.13-AS20/build/include/.. SUBDIRS=$PWD
>>SRCROOT=$PWD/. modules
...
>> CC [M] /usr/lib/vmware/modules/source/vmmon-only/common/task.o
>>cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
>>Ada/C/ObjC but not for C++
>>cc1plus: warning: command line option
>>"-Werror-implicit-function-declaration" is valid for C/ObjC but not for C++
>>cc1plus: warning: command line option "-Wdeclaration-after-statement" is
>>valid for C/ObjC but not for C++
>>cc1plus: warning: command line option "-Wno-pointer-sign" is valid for
>>C/ObjC but not for C++
>>cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
>>Ada/C/ObjC but not for C++
>>cc1plus: warning: command line option "-ffreestanding" is valid for C/ObjC
>>but not for C++
>>include/asm/bitops.h: In function ???int find_first_bit(const long unsigned
>>int*,
>>unsigned int)???:
>>include/asm/bitops.h:334: warning: comparison between signed and unsigned
>>integer expressions
>>[...]
>
>
> Whyever is anything calling cc1plus when the file appear to all be .c?
It is vmmon from my vmware-any-any-updates, not from VMware itself. I use
templates from C++ to compile same C code against different structures
(different ABI), so you can use same vmmon module for all VMware's products.
Using templates instead of including same sources with random #define before
looked fine at that time when kernel did not use these additional options and/or
c++ did not complain about them.
Now it seems that I should return back to compiling same sources with different
#defines as it seems impossible to get rid of these warnings without declaring
own rules... (and with g++ 4.0 it now even emits incorrect warnings about using
uninitialized struct members, which is another reason to get rid of c++ compiler
for me).
So if I would be making decision now and not five years ago, I would not pick
c++ templates to do the job.
Petr Vandrovec
next prev parent reply other threads:[~2005-11-18 21:55 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-01 17:49 Alexander Fisher
2005-11-01 16:43 ` Jeff V. Merkey
2005-11-01 19:15 ` Alistair John Strachan
2005-11-16 15:26 ` David Schwartz
2005-11-16 16:39 ` Jeffrey V. Merkey
2005-11-01 20:32 ` Rob Landley
2005-11-01 20:46 ` Arjan van de Ven
2005-11-01 19:00 ` Michael Buesch
2005-11-01 17:44 ` Jeff V. Merkey
2005-11-01 19:12 ` Michael Buesch
2005-11-01 20:46 ` Alexander Fisher
2005-11-01 21:06 ` linux-os (Dick Johnson)
2005-11-02 9:49 ` Giuliano Pochini
2005-11-02 14:54 ` Alex Lyashkov
2005-11-02 15:29 ` Nix
2005-11-02 15:42 ` Alex Lyashkov
2005-11-02 16:16 ` linux-os (Dick Johnson)
2005-11-02 17:26 ` Nix
2005-11-02 15:55 ` Giuliano Pochini
2005-11-10 19:02 ` Jan Engelhardt
2005-11-10 19:12 ` Lennart Sorensen
2005-11-17 21:23 ` Jan Engelhardt
2005-11-18 15:19 ` Lennart Sorensen
2005-11-18 15:25 ` Jan Engelhardt
2005-11-18 21:55 ` Petr Vandrovec [this message]
2005-11-01 22:04 ` Rob Landley
2005-11-01 19:58 ` Lee Revell
2005-11-01 20:30 ` Jeff V. Merkey
2005-11-01 20:57 ` Alexander Fisher
2005-11-02 16:12 ` Stuart MacDonald
2005-11-03 12:44 ` Alan Cox
2005-11-02 22:21 linux
2005-11-02 22:47 ` linux-os (Dick Johnson)
2005-11-03 3:50 ` Rob Landley
2005-11-04 0:57 ` Horst von Brand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=437E4DEA.9070502@vc.cvut.cz \
--to=vandrove@vc.cvut.cz \
--cc=alex@alexfisher.me.uk \
--cc=jengelh@linux01.gwdg.de \
--cc=jmerkey@utah-nac.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lsorense@csclub.uwaterloo.ca \
--cc=mbuesch@freenet.de \
--cc=pochini@shiny.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®