[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: error while running make check (g++ 4.7.0): missing include of
From: |
Graham Percival |
Subject: |
Re: Fwd: error while running make check (g++ 4.7.0): missing include of unistd.h |
Date: |
Mon, 23 Jul 2012 19:55:51 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Sorry, our Frog Meister should be helping you with this. I've
cc'd him. If you are familiar with various linux utilities, you
could follow the instructions here
http://lilypond.org/doc/v2.15/Documentation/contributor/summary-for-experienced-developers
otherwise just wait and hope that somebody (ideally Mike) offers
to help you.
- Graham
On Mon, Jul 23, 2012 at 08:19:13PM +0200, Frédéric Bron wrote:
> Hi,
> any chance to have this patch reviewed?
> Cheers,
> Frédéric
>
> ---------- Forwarded message ----------
> From: Frédéric Bron <address@hidden>
> Date: 2012/7/11
> Subject: error while running make check (g++ 4.7.0): missing include of
> unistd.h
> To: address@hidden
>
>
> I wanted to run regression tests and compare before and after a change.
> However, I obtained the error given below after make -j8 CPU_COUNT=8 check
>
> I suspect this is because I am compiling with gcc/g++ 4.7.0 (coming
> with Fedora 17) and its release notes say:
> "Avoid polluting the global namespace and do not include <unistd.h>."
> we should then include
> #include <sys/types.h>
> #include <unistd.h>
> before using getpid and getcwd.
>
> I include a patch for this that make the make check succeed.
>
> Frédéric
>
> In file included from
> /home/fred/lilypond/flower/include/yaffut-parameters.hh:4:0,
> from /home/fred/lilypond/flower/test-file-name.cc:3:
> /home/fred/lilypond/flower/include/yaffut.hh: In member function 'int
> yaffut::Factory::Main(int, const char**)':
> /home/fred/lilypond/flower/include/yaffut.hh:211:39: warning:
> conversion to 'int' from 'size_t {aka long unsigned int}' may alter
> its value [-Wconversion]
> In file included from /home/fred/lilypond/flower/test-string.cc:8:0:
> /home/fred/lilypond/flower/include/yaffut.hh: In member function 'int
> yaffut::Factory::Main(int, const char**)':
> /home/fred/lilypond/flower/include/yaffut.hh:211:39: warning:
> conversion to 'int' from 'size_t {aka long unsigned int}' may alter
> its value [-Wconversion]
> In file included from /home/fred/lilypond/flower/test-std.cc:13:0:
> /home/fred/lilypond/flower/include/yaffut.hh: In member function 'int
> yaffut::Factory::Main(int, const char**)':
> /home/fred/lilypond/flower/include/yaffut.hh:211:39: warning:
> conversion to 'int' from 'size_t {aka long unsigned int}' may alter
> its value [-Wconversion]
> /home/fred/lilypond/flower/include/yaffut.hh: In function 'int
> main(int, const char**)':
> /home/fred/lilypond/flower/include/yaffut.hh:401:34: error: 'getpid'
> was not declared in this scope
> In file included from /home/fred/lilypond/flower/test-file-path.cc:5:0:
> /home/fred/lilypond/flower/include/yaffut.hh: In member function 'int
> yaffut::Factory::Main(int, const char**)':
> /home/fred/lilypond/flower/include/yaffut.hh:211:39: warning:
> conversion to 'int' from 'size_t {aka long unsigned int}' may alter
> its value [-Wconversion]
> /home/fred/lilypond/flower/test-file-path.cc: In constructor
> '{anonymous}::Find::Find()':
> /home/fred/lilypond/flower/test-file-path.cc:13:29: error: 'getcwd'
> was not declared in this scope
> make[1]: *** [out/test-file-path.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: *** [out/test-std.o] Error 1
> _______________________________________________
> lilypond-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-devel
- error while running make check (g++ 4.7.0): missing include of unistd.h, Frédéric Bron, 2012/07/11
- Message not available
- Fwd: error while running make check (g++ 4.7.0): missing include of unistd.h, Frédéric Bron, 2012/07/23
- Re: Fwd: error while running make check (g++ 4.7.0): missing include of unistd.h,
Graham Percival <=
- Re: Fwd: error while running make check (g++ 4.7.0): missing include of unistd.h, Frédéric Bron, 2012/07/23
- Re: Fwd: error while running make check (g++ 4.7.0): missing include of unistd.h, Graham Percival, 2012/07/23
- Re: Fwd: error while running make check (g++ 4.7.0): missing include of unistd.h, David Kastrup, 2012/07/23
- Re: Fwd: error while running make check (g++ 4.7.0): missing include of unistd.h, Frédéric Bron, 2012/07/23
- Re: Fwd: error while running make check (g++ 4.7.0): missing include of unistd.h, David Kastrup, 2012/07/23
- Re: Fwd: error while running make check (g++ 4.7.0): missing include of unistd.h, Frédéric Bron, 2012/07/23
- Re: Fwd: error while running make check (g++ 4.7.0): missing include of unistd.h, David Kastrup, 2012/07/24
Re: error while running make check (g++ 4.7.0): missing include of unistd.h, Frédéric Bron, 2012/07/30