Problems between cygwin and window's cmd about making GCC (options.h)

2006-04-19 Thread 陳宗賢
I must write a batch file to call a shell script in cygwin for making
GCC toolchains for some purposes.
After making binutils successfully, I make gcc-3.4.3 using my batch file...

My batch file:
CLS
@echo off
set MAKE_MODE=UNIX
sh ./test.sh
test.sh:
#!/bin/bash
cd /cygdrive/c/toolchains/build-gcc
sh ../gcc-3.4.3/configure --target=arm --srcdir=../gcc-3.4.3
--prefix=/usr/local  --enable-languages="c"
make
make install

It's work fine (make success) when I directly run test.sh in cygwin,
but there are some error as follow when I run my batch file to call
test.sh.

In file included from ../../gcc-3.4.3/gcc/c-opts.c:39:
options.h:25: error: redefinition of `OPT_d'
options.h:23: error: `OPT_d' previously defined here
../../gcc-3.4.3/gcc/c-opts.c: In function `c_common_init_options':
../../gcc-3.4.3/gcc/c-opts.c:191: error: `CL_C' undeclared (first use
in this function)
../../gcc-3.4.3/gcc/c-opts.c:191: error: (Each undeclared identifier
is reported only once
../../gcc-3.4.3/gcc/c-opts.c:191: error: for each function it appears in.)
../../gcc-3.4.3/gcc/c-opts.c:191: error: initializer element is not constant
../../gcc-3.4.3/gcc/c-opts.c:191: error: (near initialization for
`lang_flags[0]')
../../gcc-3.4.3/gcc/c-opts.c:191: error: `CL_ObjC' undeclared (first
use in this function)
../../gcc-3.4.3/gcc/c-opts.c:191: error: initializer element is not constant
../../gcc-3.4.3/gcc/c-opts.c:191: error: (near initialization for
`lang_flags[1]')
../../gcc-3.4.3/gcc/c-opts.c:191: error: `CL_CXX' undeclared (first
use in this function)
../../gcc-3.4.3/gcc/c-opts.c:191: error: initializer element is not constant
../../gcc-3.4.3/gcc/c-opts.c:191: error: (near initialization for
`lang_flags[2]')
../../gcc-3.4.3/gcc/c-opts.c:191: error: `CL_ObjCXX' undeclared (first
use in this function)
../../gcc-3.4.3/gcc/c-opts.c:191: error: initializer element is not constant
../../gcc-3.4.3/gcc/c-opts.c:191: error: (near initialization for
`lang_flags[3]')
make[1]: *** [c-opts.o] Error 1
make[1]: Leaving directory `/cygdrive/c/toolchains/build-gcc/gcc'
make: *** [all-gcc] Error 2

I have set my PATH=c:\cygwin\bin, but it also have error, anyone can
give a help? Thanks very much.

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



RE: Problems between cygwin and window's cmd about making GCC (options.h)

2006-04-19 Thread Dave Korn
On 19 April 2006 10:06, ??? wrote:

> I must write a batch file to call a shell script in cygwin for making
> GCC toolchains for some purposes.
> After making binutils successfully, I make gcc-3.4.3 using my batch file...
> 
> My batch file:
> CLS
> @echo off
> set MAKE_MODE=UNIX
> sh ./test.sh
> test.sh:
> #!/bin/bash
> cd /cygdrive/c/toolchains/build-gcc
> sh ../gcc-3.4.3/configure --target=arm --srcdir=../gcc-3.4.3
> --prefix=/usr/local  --enable-languages="c"
> make
> make install
> 
> It's work fine (make success) when I directly run test.sh in cygwin,
> but there are some error as follow when I run my batch file to call
> test.sh.

  Well, the main difference is between a login and a non-login shell in this
case; this affects which startup files are run.  Does adding '-l' to the 'sh'
invocation in the batch file help any?


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



RE: netcat lacks socks support?

2006-04-19 Thread Dave Korn
On 19 April 2006 06:08, peter360 wrote:

> Oh, for the first question, I run fedora core 4 at home and the netcat
> program I installed can act as a socks client.  Here is the nc -h output:

> -6  Use IPv6

  Woot!

> -X protoProxy protocol: "4", "5" (SOCKS) or
> "connect"
> -x addr[:port]  Specify proxy address and port

  Muhahahahaa!

> You can see the -X and -x options.

  Sure can!

>  Here is the version info

> Version : 1.78

  Yow!  That's about 68 versions ahead of where we're at!

> URL : http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/

> Perhaps this is specific to fedora/redhat?

  Nope, check the URL: it's an openbsd fork off the original netcat that I
never heard of before.  Cool.  I'll see if it builds for cygwin.

cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



cygwin server sends the same key fingerprint all the time

2006-04-19 Thread Soumya
Hi,

 I have cygwin 1.74 server running on Windows 2000. I connect to this server 
programmatically
(using sshtools java API that supports OpenSSH) to execute secure ftp. 
 I created public/private key pair, appended the public key (converted to 
openSSH) authorized_keys
and authorized_keys1 on server.
 Everything worked fine. I was asked "Do you want to accept this key ?" the 
first time and the
known_hosts file was written and subsequent connections went without 
interruptions.
 I am trying to use new keys and paste my public key to known_hosts on the 
client, so that even on
the first connection, the prompt wouldn't appear.
 At this time, I realised that whatever new key I append to the servers 
authorized_keys files and
whatever private key file I use on the client, the server (remote) sends in the 
SAME key
fingerprint every time. I even erased everything from authorized_keys files and 
tried connection,
I still get a key fingerprint and if I accept it, it is written to client's 
known_hosts. 

 Doesn't this mean that cygwin is not loading my new keys and that the previous 
key is stored
somewhere else which I do not know ? I restart the server every time I append a 
key ( cygrunsrv
--start sshd ).

any clue would be a great help,

thanks in advance,
Soumya.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: cygwin server sends the same key fingerprint all the time

2006-04-19 Thread Igor Peshansky
On Wed, 19 Apr 2006, Soumya wrote:

> Hi,
>
>  I have cygwin 1.74 server running on Windows 2000. I connect to this

What on Earth is "cygwin 1.74 server"?

> server programmatically (using sshtools java API that supports OpenSSH)
> to execute secure ftp.
>  I created public/private key pair, appended the public key (converted
> to openSSH) authorized_keys and authorized_keys1 on server.
>  Everything worked fine. I was asked "Do you want to accept this key ?"
> the first time and the known_hosts file was written and subsequent
> connections went without interruptions.
>  I am trying to use new keys and paste my public key to known_hosts on
> the client, so that even on the first connection, the prompt wouldn't
> appear.
>  At this time, I realised that whatever new key I append to the servers
> authorized_keys files and whatever private key file I use on the client,
> the server (remote) sends in the SAME key fingerprint every time. I even
> erased everything from authorized_keys files and tried connection, I
> still get a key fingerprint and if I accept it, it is written to
> client's known_hosts.
>
>  Doesn't this mean that cygwin is not loading my new keys and that the
> previous key is stored somewhere else which I do not know ? I restart
> the server every time I append a key ( cygrunsrv --start sshd ).

One WAG: do you actually *stop* sshd before you "restart" it?  If the sshd
service is running, "cygrunsrv --start sshd" does nothing and makes it
look like it succeeds.

But we can't really help you until you follow all the directions here:
> Problem reports:   http://cygwin.com/problems.html
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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



RE: cygwin server sends the same key fingerprint all the time

2006-04-19 Thread Dave Korn
On 19 April 2006 13:21, Soumya wrote:


>  execute secure ftp. I created public/private key pair, appended the public
> key (converted to openSSH) authorized_keys and authorized_keys1 on server.
>  Everything worked fine. I was asked "Do you want to accept this key ?" the
> first time and the known_hosts file was written and subsequent connections
>  went without interruptions. I am trying to use new keys and paste my
> public key to known_hosts on the client, so that even on the first
>  connection, the prompt wouldn't appear. At this time, I realised that
> whatever new key I append to the servers authorized_keys files and whatever
> private key file I use on the client, the server (remote) sends in the SAME
> key fingerprint every time. I even erased everything from authorized_keys
> files and tried connection, I still get a key fingerprint and if I accept
> it, it is written to client's known_hosts.  
> 
>  Doesn't this mean that cygwin is not loading my new keys and that the
> previous key is stored somewhere else which I do not know ? I restart the
> server every time I append a key ( cygrunsrv --start sshd ).


  Doesn't it actually mean that you've got mixed up between the server key and
the client key?  The server is happily accepting your new client key, as it
previously happily accepted your old one.  But you haven't changed the
*server's* key, and that's the one that's still the same as before.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



bash completion

2006-04-19 Thread Nahor

Hi,

I have the following prompt in bash (Gentoo style):
PS1='\[\033[01;[EMAIL PROTECTED] \[\033[01;34m\]\w $ \[\033[00m\]'

When I press  to get the list of possible completion on the command 
line, I have some extra characters added to the display:


  [EMAIL PROTECTED] ~ $ cd /c/
  Documents and Settings/RECYCLER/  cygwin/
  tmp/   System Volume Information/ Program Files/ 


  WINDOWS/
  [EMAIL PROTECTED] ~ $ cd /c//

or
  [EMAIL PROTECTED] ~ $ cd t
  test/ tmp/
  [EMAIL PROTECTED] ~ $ cd t t

If I remove the last escape sequence, the first example works fine but 
the second displays "tt".

If I remove the last two escape sequences, both work fine.
The default cygwin prompt works fine but if I remove the "\n" before the 
"$" sign, I get similar issues.


I think I saw a mention of a bash 3.0 bug like this more than a year ago 
but I can't google it anymore.
Also this prompt works fine in Gentoo (bash 3.1.16(1)) and in Fedora 
Core 4 (bash 3.00.16(1)) so it would point to a bug in cygwin (or Fedora 
and Gentoo have a patch to fix it).


Any suggestion?

Jehan

WinXP SP2
cygwin 1.5.19-7
bash 3.1-5


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



Re: question on cygwin

2006-04-19 Thread Igor Peshansky
On Thu, 20 Apr 2006, Yihwa Kim wrote:

> Hi Igor,
> I am Yihwa, a recent cygwin user.
> I found your email address when I was googling for the answers for my
> problem with cygwin.

Apparently, you didn't google enough, or you would also have found the
following pages:  and
.  I'm redirecting my reply to the
appropriate list.  Please make sure that your mailer respects the
Reply-To: header.

> I couldn't change user with su, and also with ssh (some said su doesn't
> work in ssh.. )..
> I constantly got error saying /bin/bash: permission denied
> although both /bin and /bin/bash is set to 755 (or 744 .. anyways.. )
>
> So I thought you might know the answer to this..
>
> Thanks in advance :)
> Bests
> -yihwa
>  Have a nice day~

I don't think I can parse the above.  Without more information, like
what's requested in , I don't think
anyone can even attempt to help you.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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



Re: Cygwin, gawk, and serial ports.

2006-04-19 Thread Igor Peshansky
Matthew,

.  I'm redirecting this to the proper
list, and setting Reply-To: accordingly -- please make sure your mailer
respects it.

On Wed, 19 Apr 2006, Matthew Karas wrote:

> Hello,
>
>   I've been trying to get awk to write to the serial port under cygwin.
>
>   #script
>   BEGIN{
>
>  PRINT " hello world " > "/dev/com1";
> }
>   #end script
>
>   this doesn't work in awk but
>
>   "cat file.txt > /dev/com1"
>
>   works fine.
>
>   Can you help me out?
>
>   Thanks,
> Matthew Karas

WJFFM.  You'll have to be more specific about the nature of your problem.

In particular, you should provide all of the information requested in the
Cygwin problem reporting guidelines at .
When you do, please make sure to *attach* the output of "cygcheck -svr",
not include it inline.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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



Re: Cygwin, gawk, and serial ports.

2006-04-19 Thread Igor Peshansky
On Wed, 19 Apr 2006, Igor Peshansky wrote:

> On Wed, 19 Apr 2006, Matthew Karas wrote:
>
> > Hello,
> >
> >   I've been trying to get awk to write to the serial port under cygwin.
> >
> >   #script
> >   BEGIN{
> >
> >  PRINT " hello world " > "/dev/com1";
> > }
> >   #end script
> >
> >   this doesn't work in awk but
> [snip]
>
> WJFFM.  You'll have to be more specific about the nature of your problem.

I take that back.  It works for me if I use lowercase "print", which is an
awk command.  The uppercase "PRINT" is interpreted as an (empty) awk
variable, and awk interprets a constant expression in statement context
just like C does -- i.e., it ignores it.  This is not Cygwin-specific;
you'll get the same results on Linux.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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



ssh and a particular client

2006-04-19 Thread J. David Boyd

I'm having trouble using cygwin and ssh, connecting to a particular client of 
ours.

I can connect okay using ssh clients from remote machines, including my linux
box at home, and PUTTY connects okay from a dos shell also, but, when I
connect with ssh under cygwin, I see this:


Last unsuccessful login: Wed Apr 19 15:40:46 GRNLNDST 2006 on ssh from 
b$"$ð=ôð(  p
Last login: Wed Apr 19 15:55:05 GRNLNDST 2006 on ssh from ("
ð=
And the terminal just hangs.

When I've captured this to an output file, I see:

Last unsuccessful login: Wed Apr 19 13:35:33 GRNLNDST 2006 on ssh from 
b$"$ð=ôð(—  pp
Last login: Wed Apr 19 15:33:13 GRNLNDST 2006 on ssh from ˆ("„ð=˜

So, it almost seems as if the ^Q is the problem.  Except that ^Q means start
transmission, not stop, and no key presses get me out of being stuck, except
for ^D to exit the session.

Any ideas of where I should start looking?

TIA,

Dave in Largo, FL


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



Re: ssh and a particular client

2006-04-19 Thread Brett Serkez


> So, it almost seems as if the ^Q is the problem.  Except that ^Q means start
> transmission, not stop, and no key presses get me out of being stuck, except
> for ^D to exit the session.
>
> Any ideas of where I should start looking?

Try adding -v's to your ssh command line for more details.  You can
add multiple -v switches to increase verbosity.

Are you using -X ot -Y?

Brett

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



1.5.19-4 a bad build?

2006-04-19 Thread Shawn Walker
I just upgraded to 1.5.19-4 from what I had installed back in 2004.  I 
selected to install everything.  During the post-install, I got several 
error popups regarding the following dll missing:


cygminires.dll
cygXft-2.dll
cygopt-0.dll
cygintl-2.dll

Also, there is no /usr/bin/make!  I'm not sure what else is missing though.

I have attached my cygcheck output.  Found out "zip" is missing too.

What is the last known good build?

Thanks,
Shawn


cygcheck.txt.bz2
Description: Binary data
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

1.5.19-4 a bad build?

2006-04-19 Thread Shawn Walker

I just upgraded to 1.5.19-4 from what I had installed back in 2004.  I
selected to install everything.  During the post-install, I got several
error popups regarding the following dll missing:

cygminires.dll
cygXft-2.dll
cygopt-0.dll
cygintl-2.dll

Also, there is no /usr/bin/make!  I'm not sure what else is missing though.

I have attached my cygcheck output.  Found out "zip" is missing too.

What is the last known good build?

Thanks,
Shawn



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

1.5.19-4 a bad build?

2006-04-19 Thread Shawn Walker

I just upgraded to 1.5.19-4 from what I had installed back in 2004.  I
selected to install everything.  During the post-install, I got several
error popups regarding the following dll missing:

cygminires.dll
cygXft-2.dll
cygopt-0.dll
cygintl-2.dll

Also, there is no /usr/bin/make!  I'm not sure what else is missing though.

I tried to attach my cygcheck output, but it's being blocked.  Found out 
"zip" is missing too.


What is the last known good build?

Thanks,
Shawn



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



Re: 1.5.19-4 a bad build?

2006-04-19 Thread Eric Blake
> I just upgraded to 1.5.19-4 from what I had installed back in 2004.  I
> selected to install everything.  During the post-install, I got several
> error popups regarding the following dll missing:

No need to post 3 times - we heard you the first.

> 
> cygminires.dll
> cygXft-2.dll
> cygopt-0.dll
> cygintl-2.dll

My guess is that you had a cygwin program still running when you did
the upgrade, leading to postinstall script failure.  Normally, setup.exe
does the right thing if you upgrade when no cygwin process is
running.  But the fix is simple - stop all cygwin processes, rerun
setup.exe, and let it once again determine dependencies it needs
to install.

> 
> Also, there is no /usr/bin/make!  I'm not sure what else is missing though.
> 
> I have attached my cygcheck output.  Found out "zip" is missing too.

We ask for cygcheck output as an uncompressed text attachment
for a reason - so that we can read it without having to save it off
to a file and unzipping it.  (translation, I didn't bother to read your
cygcheck output, because it was not easily accessible, so I probably
missed out on some clues that might have made my response more
to the point on how to fix your particular problem).

> 
> What is the last known good build?

1.5.19-4.  Honestly, it works, or it wouldn't have remained the
current version for several months now.

-- 
Eric Blake

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



[NON-WHINE] RE: mkstemp vs. text mode

2006-04-19 Thread Gary R. Van Sickle
> From: Gary R. Van Sickle
> 
> > From: Gary R. Van Sickle
> > 
> > > From: Christopher Faylor
> > [snip]
> > > Yes, I think it makes sense to open temp files in binary
> > but I'll bet
> > > that someone is relying on textmode behavior.
> > 
> > I'll see that bet and raise you; I'll bet this results in massive 
> > problems.
> > 

Welp, looks like I (probably) lose that hand (happily).  Using:

CYGWIN_NT-5.1 DFW5RB41 1.5.20s(0.155/4/2) 20060418 12:31:05 i686 Cygwin

with a /tmp mounted as text mode works fine for a configure, build, and
install of wxWindows.  The configure does most of the temp file
machinations, with about 2000 add, modify, and remove events in the /tmp
directory, as reported by a program I have for monitoring such things.

-- 
Gary R. Van Sickle


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



getline error with make

2006-04-19 Thread Br. Nirmalachaitanya

Dear Cygwin mailing list,

When trying to 'make' FontForge on Cygwin, we get the following error.

gimagereadxpm.c:128: error: conflicting types for 'getline'
/usr/include/sys/stdio.h.31: error: previous declaration of 'getline' 
was here

gimagereadxpm.c:128: error: conflicting types for 'getline'
/usr/include/sys/stdio.h.31: error: previous declaration of 'getline' 
was here

gimagereadxpm.c:84: warning: 'LookupXColorName' defined but not used
make[1]: *** [gimagereadxpm.o] Error 1
make[1]: Leaving directory '/home/User1/fontforge_cvs/gdraw'
make: *** [libgdraw] Error 2


Is this considered to be FontForge's problem by Cygwin people, because 
of the addition of getline or something like that, recently added to 
Cygwin? FontForge people consider it to be Cygwin's problem--they 
believe there is a problem with stdio.h.


Hope there might be some solution to this problem, from one or both 
sides. . .


Thanks and regards,
Br. Nirmalachaitanya

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



RE: [NON-WHINE] RE: mkstemp vs. text mode

2006-04-19 Thread Gary R. Van Sickle
More non-negative news: The Cygwin/X Server creates its own subdirectory and
a bunch of files in /tmp and still appears to work fine.

-- 
Gary R. Van Sickle
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Gary R. 
> Van Sickle
> Sent: Wednesday, April 19, 2006 8:56 PM
> To: cygwin-patches@cygwin.com
> Cc: cygwin@cygwin.com
> Subject: [NON-WHINE] RE: mkstemp vs. text mode
> 
> > From: Gary R. Van Sickle
> > 
> > > From: Gary R. Van Sickle
> > > 
> > > > From: Christopher Faylor
> > > [snip]
> > > > Yes, I think it makes sense to open temp files in binary
> > > but I'll bet
> > > > that someone is relying on textmode behavior.
> > > 
> > > I'll see that bet and raise you; I'll bet this results in massive 
> > > problems.
> > > 
> 
> Welp, looks like I (probably) lose that hand (happily).  Using:
> 
> CYGWIN_NT-5.1 DFW5RB41 1.5.20s(0.155/4/2) 20060418 12:31:05 
> i686 Cygwin
> 
> with a /tmp mounted as text mode works fine for a configure, 
> build, and install of wxWindows.  The configure does most of 
> the temp file machinations, with about 2000 add, modify, and 
> remove events in the /tmp directory, as reported by a program 
> I have for monitoring such things.
> 
> --
> Gary R. Van Sickle
> 


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



Re: getline error with make

2006-04-19 Thread Eric Blake
> 
> When trying to 'make' FontForge on Cygwin, we get the following error.
> 
> gimagereadxpm.c:128: error: conflicting types for 'getline'
> /usr/include/sys/stdio.h.31: error: previous declaration of 'getline' 
> was here

This has already been brought up on this list:
http://www.cygwin.com/ml/cygwin/2006-01/msg01217.html

> Hope there might be some solution to this problem, from one or both 
> sides. . .

Both.  Cygwin CVS has already guarded the declaration with
_GNU_SOURCE, so it is not exposed in a strict compilation
environment.  And FontForge should realize that the Austin
group is considering including the GNU definition of readline
as a mandatory function in the next version of POSIX, so any
application that wants to use their own version needs to
be aware that a standardized version will likely also exist
soon.

-- 
Eric Blake

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



Re: 1.5.19-4 a bad build?

2006-04-19 Thread Shawn Walker
Sorry, I didn't mean to post three times.  The error message I got from the 
mail server seems that my message wasn't being delivered.


I was able to get a 1.5.19-4 succesfully, what the issue was kernel.org didn't 
have all the packages for some reason.  I did another install from a *.anl.gov 
that a friend told me to use and I was able to get a successful download and 
install.


So, no, there wasn't any cygwin processes running.

Shawn

Eric Blake wrote:

I just upgraded to 1.5.19-4 from what I had installed back in 2004.  I
selected to install everything.  During the post-install, I got several
error popups regarding the following dll missing:


No need to post 3 times - we heard you the first.


cygminires.dll
cygXft-2.dll
cygopt-0.dll
cygintl-2.dll


My guess is that you had a cygwin program still running when you did
the upgrade, leading to postinstall script failure.  Normally, setup.exe
does the right thing if you upgrade when no cygwin process is
running.  But the fix is simple - stop all cygwin processes, rerun
setup.exe, and let it once again determine dependencies it needs
to install.


Also, there is no /usr/bin/make!  I'm not sure what else is missing though.

I have attached my cygcheck output.  Found out "zip" is missing too.


We ask for cygcheck output as an uncompressed text attachment
for a reason - so that we can read it without having to save it off
to a file and unzipping it.  (translation, I didn't bother to read your
cygcheck output, because it was not easily accessible, so I probably
missed out on some clues that might have made my response more
to the point on how to fix your particular problem).


What is the last known good build?


1.5.19-4.  Honestly, it works, or it wouldn't have remained the
current version for several months now.





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