public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Csaba Raduly <rcsaba@gmail.com>
To: cygwin list <cygwin@cygwin.com>
Subject: Re: problem installing openTimer in cygwin
Date: Sun, 13 Nov 2016 19:50:00 -0000	[thread overview]
Message-ID: <CAEhDDbDhOQ4TyOENRkKLqyq3BGpWjjk=Orp37XUQFm68Giycbw@mail.gmail.com> (raw)
In-Reply-To: <CAAgSk3hq+001kGvrofLL7BF_MEjj_4HQ8hxJkL2cdvWYob47oQ@mail.gmail.com>

On Fri, Nov 11, 2016 at 3:12 PM, kunal ghosh wrote:
> Also, I went ahead modifying the utilities.h to point to
> windows/port.h, instead of port.h.

That sounds dangerous

> And some more hacks to get rid of other errors. Now 'make' gives me
> the below errors. Not sure how to resolve this
>
> src/logging.cc: In member function 'bool
> google::{anonymous}::LogFileObject::CreateLogfile(const string&)':
> src/logging.cc:895:43: error: 'symlink' was not declared in this scope
>      if (symlink(linkdest, linkpath.c_str()) != 0) {
>                                            ^
> src/logging.cc:904:45: error: 'symlink' was not declared in this scope
>        if (symlink(filename, linkpath.c_str()) != 0) {

symlink() is in unistd.h
You need to make  _DEFAULT_SOURCE or _GNU_SOURCE be defined for
symlin() to be visible on Cygwin.

It seems to me that the author of OpenTimer does not understand what
Cygwin is or what it does,
as evidenced by lines like

#if defined( WIN32) || defined(CYGWIN)

and the attempt to use Win32 instead of pthreads when compiling
Cygwin. Unfortunately (for you), I have no interest in OpenTimer, so I
can't help you any further.

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

      reply	other threads:[~2016-11-13 12:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-11  8:58 kunal ghosh
2016-11-11 11:57 ` Csaba Raduly
2016-11-11 14:06   ` kunal ghosh
2016-11-11 14:13     ` kunal ghosh
2016-11-11 16:10       ` kunal ghosh
2016-11-13 19:50         ` Csaba Raduly [this message]

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='CAEhDDbDhOQ4TyOENRkKLqyq3BGpWjjk=Orp37XUQFm68Giycbw@mail.gmail.com' \
    --to=rcsaba@gmail.com \
    --cc=cygwin@cygwin.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).