public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna.vinschen@cityweb.de>
To: "Dr. Volker Zell" <vzell@de.oracle.com>, gnu-win32@cygnus.com
Subject: Re: bash, tcsh and perl
Date: Sun, 31 Jan 1999 23:52:00 -0000	[thread overview]
Message-ID: <36A26CE3.8C78BAC7@cityweb.de> (raw)
In-Reply-To: <6438-Sun17Jan1999203043+0100-vzell@de.oracle.com>

Dr. Volker Zell wrote:
> 
> Hi Corinna
> 
> When doing a make with your latest cron, cron-2.9.2.src.tar.gz
> I get the following error:
> 
> ----
> 
> gcc -DPWBUFSIZ=512 -DPWBUFPOS=256 -DPWKEYWORD="\"\107\056\114\273\146\231\033\266\""   -c cron.cc -o cron.o
> In file included from cron.cc:31:
> CString.h:23: String: No such file or directory
> make: *** [cron.o] Error 1

Make has to compile with g++ instead of gcc. This works in my environment!
If you don't get it to work, try:

	CXXFLAGS=-I/usr/include/g++ $(PWBUFSIZ) $(PWBUFPOS) $(PWKEYWORD)
		   ^ according to your standard include path.

And please, don't publish your -DPW... values! You're risking your system security.

> -------------------------------
> 
> When doing a make with your passwd-1.0.tar.gz
> I get the following error:
> 
> ---
> 
> gcc -s -o passwd.exe passwd.o -lnetapi32
> passwd.o(.text+0x3d6):passwd.c: undefined reference to `NetUserChangePassword'
> collect2: ld returned 1 exit status
> make: *** [passwd.exe] Error 1
> 
> Any hints ?

Sorry, I forgot, that this function is defined first in a later snapshot,
winsup-19981230, I think. You only have to declare

	DWORD STDCALL NetUserChangePassword (LPWSTR, LPWSTR, LPWSTR, LPWSTR);

at the start of passwd.c, but behind 

	#include <winsup.h>

Regards,
Corinna
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

  parent reply	other threads:[~1999-01-31 23:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-31 23:52 Jun Ohya
1999-01-31 23:52 ` Corinna Vinschen
     [not found]   ` <6438-Sun17Jan1999203043+0100-vzell@de.oracle.com>
1999-01-31 23:52     ` Corinna Vinschen [this message]
1999-01-31 23:52       ` Mumit Khan
1999-01-31 23:52 Jun Ohya
     [not found] <006201be4466$8f064ba0$6fa9a8c0@turner.isdn.itn.is>
1999-01-31 23:52 ` Corinna Vinschen
1999-02-03  8:51   ` Igor Schein
1999-02-04  2:48     ` Corinna Vinschen
1999-02-28 23:02       ` Corinna Vinschen
1999-02-28 23:02     ` Igor Schein
1999-02-08  6:39 Christopher Murray
1999-02-28 23:02 ` Christopher Murray

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=36A26CE3.8C78BAC7@cityweb.de \
    --to=corinna.vinschen@cityweb.de \
    --cc=gnu-win32@cygnus.com \
    --cc=vzell@de.oracle.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).