[ANNOUNCEMENT] Updated: tcsh-6.13.00-2

2004-06-21 Thread Corinna Vinschen
I've updated the version of tcsh to 6.13.00-2.

This is a bug fix release.  It solves a problem in tcsh's signal handling,
which e. g. had the result that SIGHUP didn't result in exiting tcsh.


To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

If you have general questions or comments, please send them to the
Cygwin mailing list at: "cygwin at cygwin dot com".  I would appreciate
it if you would use this mailing list rather than emailing me directly.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.


--
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/



makelib problem

2004-06-21 Thread Vasoczki Ferenc
Hi!

I am a newbie on this list, and with the Cygwin too, so please
be patient :)

I tried to search for make_lib in archive, but i've get no result.

i should learn to write embedded applications form wavecom modems
and i am using cygwin and gcc. i downloaded the latest cygwin from the
net.

i am using the documentation of wavecom, and i tried to do a sample program.
this is the command to make the new sample environment:

wmnew -sample open-at/Hello_World -32 -gcc

it's ok, it makes me the directory structure (./mak, ./out)
great.
the next step is to compile this code to binary.
here is my problem.

i am following the doc, and it say type this:
wmmake Hello_World -d

this is to compile, but i've got an error message:
/cygdrive/c/OpenAT/V210/TgtGen/WmGen/wmmake: line 24: make_lib: command not found

i checked, and there is no make_lib file there... it's ok.
i searched this file, and it's here:
C:\OpenAT\V210\TgtGen\SGT\v1.2.4\script_sgt\make_lib

it's seems, when i installed this cygwin after the OpenAT the environment variables 
are bad.
(correct me if i am not right)

so i tried to add this path:
PATH=/cygdrive/C/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:$PATH
export PATH

and then run again the "wmmake Hello_World -d"
i've got this error message:

Launch a full library or binary process

make: not found

before this, i've got another error message something like:
The root directory of SGT are not correct...

How can i tell to cygwin to use this directory to access make_lib, or what should i do 
with this
to work ???

Thank you

Vaso



--
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: gnucash and cygwin

2004-06-21 Thread Chris Taylor

On Mon, June 21, 2004 12:07 am, Rohan Shah said:
> I'm trying to configure gnucash for cygwin. I get the following error
> even though I have glib installed (I installed it using setup.exe 
> (GNOME2->glib version 2.2.1-2):
> 
> 
> checking for GLIB - version >= 0.99.7... no *** The glib-config script
> installed by GLIB could not be found *** If GLIB was installed in PREFIX,
> make sure PREFIX/bin is in *** your path, or set the GLIB_CONFIG
> environment variable to the *** full path to glib-config.
> configure: error: Cannot find glib. Check config.log

This is a very simple thing. It's looking for glib from gtk1, not gtk2

> 
> 
> How can I check if glib is infact installed. I know I have to change the
> path variable and stuff but have no idea how this is done. Has anyone 
> sucessfully installed gnucash on cygwin? thanks in advance,

Install the glib package from http://cygnome.sourceforge.net/install using the setup 
program, then all will be fine. :-) You may also need the gtk packages..

Chris

-- 
When the universe ends, the Restaurant will bring it back.


-- 
When the universe ends, the Restaurant will bring it back.


--
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 1.5.10: Possible bug

2004-06-21 Thread Dave Neary
Hi all,
I have come across a problem with cygwin (I think) which prevents it 
from being used to compile JNI bindings.

If I link any code to cygwin, and then try to load the resulting dll 
with System.loadLibrary, the JVM "gets stuck" and goes to 100% activity. 
Eventually, I kill it.

Previously, with 1.5.4, I had been able to do this OK, but when the 
resulting DLL was loaded in an applet (rather than directly into an 
application), I got a security exception (basically, a seg fault) in a 
call to getservbyname() (which was called with constant string arguments).

I have a simple test-case (a couple of java files, a couple of C files 
and a header, as well as an ant build-file and a html file for the 
applet) which can be used to reproduce the problem with Sun's 1.4.2 SDK. 
I haven't tested it with others.

Cheers,
Dave.
--
David Neary
Phenix Engineering
110 ave Jean Jaures, 69007 Lyon 



testcase.tgz
Description: application/compressed
--
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 1.5.10: Possible bug

2004-06-21 Thread Shaddy Baddah
- Original Message - 
From: "Dave Neary" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 21, 2004 7:04 PM
Subject: Cygwin 1.5.10: Possible bug


>
> Hi all,
>
> I have come across a problem with cygwin (I think) which prevents it
> from being used to compile JNI bindings.
>
> If I link any code to cygwin, and then try to load the resulting dll
> with System.loadLibrary, the JVM "gets stuck" and goes to 100% activity.
> Eventually, I kill it.

This may or may not be related to your problem, however, the observation may
be helpful.

In my experience with JNI dll's under cygwin, they can behave very
erratically in the following situation. If you execute the JNI dll loading
application from rxvt, or xterm, i.e. using a pseudo-terminal. Are you doing
this?

I found that when I switch the running of the application to the standard
Cygwin "console", no problems occurred at all. The problems that I used to
see running my applications out of rxvt were reproducible on every occasion,
so I am fairly certain of what I observed.

Hope this helps.

Regards,
Shaddy

--
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 1.5.10: Possible bug

2004-06-21 Thread Dave Neary
Hi Shaddy,
Shaddy Baddah wrote:
In my experience with JNI dll's under cygwin, they can behave very
erratically in the following situation. If you execute the JNI dll
loading
application from rxvt, or xterm, i.e. using a pseudo-terminal. Are you
doing
this?
No - usually I launch the java process in Eclipse, the standard cygwin 
console, or via a browser.

If I don't use cygwin and compile with --no-cygwin, there is no problem. 
I wonder whether this is related to 
http://sources.redhat.com/ml/cygwin/2003-03/msg00795.html or 
http://sources.redhat.com/ml/cygwin/2004-06/msg00274.html - the first 
one looks quite like the problems I was having with 1.5.4 and the second 
sounds like a decent description of what's hapenning now. It's not an 
easy workaround, though :)

Thanks for the fast reply.
Cheers,
Dave.
--
David Neary
Phenix Engineering
110 ave Jean Jaures, 69007 Lyon
--
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/


.bashrc

2004-06-21 Thread Vasoczki Ferenc
Hi!

I installed the cygwin again, and read the SGT settings.
It wrote, i should edit my .bashrc, but there is no .bashrc after install in 
/home/myuser 
directory, only a .bash_history ?

How can i tell to cygwin to create 1 ?

Vaso

--
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: Passing through the keyboard layout settings from Win32 to cygwin

2004-06-21 Thread Igor Pechtchanski
On Mon, 21 Jun 2004, Ariel Burbaickij wrote:

> Hello dear mailing list participants,
>
> this is basically re-post of my e-mail
> send a while ago. Noone answered the original
> question, so let us see how lucky I am this this
> time.
>
> is it somehow possible to pass through the actual
> keyboard layout settings of host machine to cygwin console?
> Here the explanation: Occasionally I need to type
> in German or Russian or some other languages, so
> I simply switch the kyeboard layout in Win2000. Is some hook
> defined or can be defined that adjusts also the
> locale settings of cygwin as soon as it happens?
>
> With Best Regards
> Ariel Burbaickij

Ariel,

There's no code in Cygwin that dynamically detects a switch in keyboard
settings.  Cygwin does inherit the keyboard settings from Windows, but
doesn't process them in any way.  I can think of a few ways to do what you
want, but all of them involve some amount of coding, and none of them do
this dynamically.  The simplest idea is to write a small program (e.g.,
"compute_locale") that queries the keyboard state and outputs the correct
locale settings, and then "eval" its output from your shell's rc file.
That way, whenever you start a new shell, it, and any programs invoked by
it, will have the correct locale settings for the current keyboard mode.

If you find a way (on MSDN?) to add a hook to the Windows keyboard layout
switch utility, have that hook send a special unused signal to (all?)
Cygwin programs, and add code to cygwin1.dll to set the locale correctly
when handling that signal.  You can probably reuse the locale computation
code from "compute_locale" above.

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: .bashrc

2004-06-21 Thread Erik Weibust
There is a default .bashrc you can use in /etc/skel

Erik

--- Vasoczki Ferenc <[EMAIL PROTECTED]> wrote:
> Hi!
> 
> I installed the cygwin again, and read the SGT
> settings.
> It wrote, i should edit my .bashrc, but there is no
> .bashrc after install in /home/myuser 
> directory, only a .bash_history ?
> 
> How can i tell to cygwin to create 1 ?
> 
> Vaso
> 
> --
> 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/
> 
> 


=
Erik Weibust
http://erik.weibust.net

--
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: makelib problem

2004-06-21 Thread Igor Pechtchanski
On Mon, 21 Jun 2004, Vasoczki Ferenc wrote:

> Hi!
>
> I am a newbie on this list, and with the Cygwin too, so please
> be patient :)
>
> I tried to search for make_lib in archive, but i've get no result.
>
> i should learn to write embedded applications form wavecom modems
> and i am using cygwin and gcc. i downloaded the latest cygwin from the
> net.
>
> i am using the documentation of wavecom, and i tried to do a sample
> program. this is the command to make the new sample environment:
>
> wmnew -sample open-at/Hello_World -32 -gcc
>
> it's ok, it makes me the directory structure (./mak, ./out)
> great.
> the next step is to compile this code to binary.
> here is my problem.
>
> i am following the doc, and it say type this:
> wmmake Hello_World -d
>
> this is to compile, but i've got an error message:
> /cygdrive/c/OpenAT/V210/TgtGen/WmGen/wmmake: line 24: make_lib: command not found
>
> i checked, and there is no make_lib file there... it's ok.
> i searched this file, and it's here:
> C:\OpenAT\V210\TgtGen\SGT\v1.2.4\script_sgt\make_lib
>
> it's seems, when i installed this cygwin after the OpenAT the
> environment variables are bad. (correct me if i am not right)
>
> so i tried to add this path:
> PATH=/cygdrive/C/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:$PATH
  ^^^
I have a feeling you simply missed the quoting in the above line.  Try

PATH="/cygdrive/C/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:$PATH"

and see if it works better.  If not, you'll have to ask on the make_lib
list, as this problem has nothing to do with Cygwin.
Igor

> export PATH
>
> and then run again the "wmmake Hello_World -d"
> i've got this error message:
>
> Launch a full library or binary process
>
> make: not found
>
> before this, i've got another error message something like:
> The root directory of SGT are not correct...
>
> How can i tell to cygwin to use this directory to access make_lib, or
> what should i do with this to work ???
>
> Thank you
> Vaso

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: makelib problem

2004-06-21 Thread Vasoczki Ferenc
Hello!

Thank you for the reply.
I searched through the SGT document, and i saw, i should insert some environment 
variable into
my .bashrc file.
Unfortunatly, after i launched the cygwin, it doesn't create a .bashrc for me :((
i don't know why...
now i am finding a way to set up a .bashrc file.
in my home directory there is only a .bash_history file...

don't you know, in which package include this file ? (somebody tell me in the 
/etc/skel/ there is a .bashrc
but i have no this dir, and there is no .bashrc on my hard drive.

or if i can create 1, that could be great.

Vaso

-Original Message-
From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]
Sent: Monday, June 21, 2004 2:54 PM
To: Vasoczki Ferenc
Cc: [EMAIL PROTECTED]
Subject: Re: makelib problem


On Mon, 21 Jun 2004, Vasoczki Ferenc wrote:

> Hi!
>
> I am a newbie on this list, and with the Cygwin too, so please
> be patient :)
>
> I tried to search for make_lib in archive, but i've get no result.
>
> i should learn to write embedded applications form wavecom modems
> and i am using cygwin and gcc. i downloaded the latest cygwin from the
> net.
>
> i am using the documentation of wavecom, and i tried to do a sample
> program. this is the command to make the new sample environment:
>
> wmnew -sample open-at/Hello_World -32 -gcc
>
> it's ok, it makes me the directory structure (./mak, ./out)
> great.
> the next step is to compile this code to binary.
> here is my problem.
>
> i am following the doc, and it say type this:
> wmmake Hello_World -d
>
> this is to compile, but i've got an error message:
> /cygdrive/c/OpenAT/V210/TgtGen/WmGen/wmmake: line 24: make_lib: command not found
>
> i checked, and there is no make_lib file there... it's ok.
> i searched this file, and it's here:
> C:\OpenAT\V210\TgtGen\SGT\v1.2.4\script_sgt\make_lib
>
> it's seems, when i installed this cygwin after the OpenAT the
> environment variables are bad. (correct me if i am not right)
>
> so i tried to add this path:
> PATH=/cygdrive/C/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:$PATH
  ^^^
I have a feeling you simply missed the quoting in the above line.  Try

PATH="/cygdrive/C/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:$PATH"

and see if it works better.  If not, you'll have to ask on the make_lib
list, as this problem has nothing to do with Cygwin.
Igor

> export PATH
>
> and then run again the "wmmake Hello_World -d"
> i've got this error message:
>
> Launch a full library or binary process
>
> make: not found
>
> before this, i've got another error message something like:
> The root directory of SGT are not correct...
>
> How can i tell to cygwin to use this directory to access make_lib, or
> what should i do with this to work ???
>
> Thank you
> Vaso

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: .bashrc

2004-06-21 Thread Igor Pechtchanski
On Mon, 21 Jun 2004, Vasoczki Ferenc wrote:

> Hi!
>
> I installed the cygwin again, and read the SGT settings.
> It wrote, i should edit my .bashrc, but there is no .bashrc after
> install in /home/myuser directory, only a .bash_history ?
>
> How can i tell to cygwin to create 1 ?
> Vaso

The latest default /etc/profile should have copied these files into your
$HOME if it didn't exist before.  Rename your home directory (e.g., to
/home/myuser-bak) and start a login bash (e.g., by double-clicking on the
Cygwin icon).  Then copy everything from /home/myuser to /home/myuser-bak;
remove /home/myuser, and rename /home/myuser-bak back to /home/myuser.
Provided you have the latest /etc/profile, this should work.  If not, and
you don't have any customizations in your /etc/profile, remove it,
re-install the "base-files" package, and then repeat the above steps.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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/



strange import error...

2004-06-21 Thread Arno Waschk
The following problem did not exists earlier (i. e. some weeks ago).
After installing and uninstalling lots of packages via setup.exe I now get  
this:

$ echo "#include " >c.cpp && g++ c.cpp
In file included from /usr/include/c++/3.3.1/bits/stl_alloc.h:89,
 from /usr/include/c++/3.3.1/bits/stl_tree.h:87,
 from /usr/include/c++/3.3.1/map:66,
 from c.cpp:1:
/usr/include/c++/3.3.1/bits/stl_threads.h: In constructor `
   std::_Refcount_Base::_Refcount_Base(unsigned int)':
/usr/include/c++/3.3.1/bits/stl_threads.h:74: error: invalid conversion  
from `
   void*' to `__pthread_mutex_t*'

I tried un- and reinstalling gcc and g++, but this does not help.
What can I do?
Thanks, Arno
--
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: makelib problem

2004-06-21 Thread Vasoczki Ferenc
Hi!

Oh, this setup CD confused me :((
So i installed the cygwin from internet, than copy out the .bashrc, then remove, 
install from CD again (from the internet the cygwin doesn't make home dir) and set the
environment variables. Here are them:
# SGT SETTINGS
export SGT_VER=v1.2.4
SGT_DIR=/cygdrive/c/OpenAT/V210/TgtGen/SGT/$SGT_VER
export SGT_SCRIPT=$SGT_DIR/script_sgt
export PATH=$SGT_SCRIPT:$PATH

great, now i have the SGT settings.
now i am making a new application:
wmnew -sample open-at/Hello_World -32 -gcc

it's run.

then continue (from the documentation) and i've got an error message:

[EMAIL PROTECTED] ~/test
$ wmmake Hello_World -d

Launch a full library or binary process

/cygdrive/C/OpenAT/V210/TgtGen/WmGen/mak/gen.mak:89: /mak/makegen.mak: No such f
ile or directory
make: *** No rule to make target `/mak/makegen.mak'.  Stop.

ok, let's see the directory structure:
in my path there is this:

PATH=/cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:/cygdrive/c/OpenAT/V21
0/TgtGen/SGT/v1.2.4/script_sgt:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINNT/sy...
 (and more)

I have this file:
C:\OpenAT\V210\TgtGen\SGT\v1.2.4\mak\makgen.mak

Anyway, what this error code means ?
I think, it's not found the makegen.mak
I have only this makegen.mak on my hard drive.

it's clear, but where should it be ???

there is a gen.mak in C:\OpenAT\V210\TgtGen\WmGen\mak\
and this include:

ifeq ($(MAKEFILE),)
include $(SGT_DIR)/mak/makegen.mak
else
include $(SGT_DIR)/mak/$(MAKEFILE)
endif

i think the first case is the important.
as you see, $SGT_DIR is setted.


[EMAIL PROTECTED] ~/test
$ echo $SGT_DIR
/cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4


sorry for these stupid question, just i sad, i don't know cygwin as well, 
and i am sad, because i can't run the hello world, the simpliest program...

Vaso


-Original Message-
From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]
Sent: Monday, June 21, 2004 2:54 PM
To: Vasoczki Ferenc
Cc: [EMAIL PROTECTED]
Subject: Re: makelib problem


On Mon, 21 Jun 2004, Vasoczki Ferenc wrote:

> Hi!
>
> I am a newbie on this list, and with the Cygwin too, so please
> be patient :)
>
> I tried to search for make_lib in archive, but i've get no result.
>
> i should learn to write embedded applications form wavecom modems
> and i am using cygwin and gcc. i downloaded the latest cygwin from the
> net.
>
> i am using the documentation of wavecom, and i tried to do a sample
> program. this is the command to make the new sample environment:
>
> wmnew -sample open-at/Hello_World -32 -gcc
>
> it's ok, it makes me the directory structure (./mak, ./out)
> great.
> the next step is to compile this code to binary.
> here is my problem.
>
> i am following the doc, and it say type this:
> wmmake Hello_World -d
>
> this is to compile, but i've got an error message:
> /cygdrive/c/OpenAT/V210/TgtGen/WmGen/wmmake: line 24: make_lib: command not found
>
> i checked, and there is no make_lib file there... it's ok.
> i searched this file, and it's here:
> C:\OpenAT\V210\TgtGen\SGT\v1.2.4\script_sgt\make_lib
>
> it's seems, when i installed this cygwin after the OpenAT the
> environment variables are bad. (correct me if i am not right)
>
> so i tried to add this path:
> PATH=/cygdrive/C/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:$PATH
  ^^^
I have a feeling you simply missed the quoting in the above line.  Try

PATH="/cygdrive/C/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:$PATH"

and see if it works better.  If not, you'll have to ask on the make_lib
list, as this problem has nothing to do with Cygwin.
Igor

> export PATH
>
> and then run again the "wmmake Hello_World -d"
> i've got this error message:
>
> Launch a full library or binary process
>
> make: not found
>
> before this, i've got another error message something like:
> The root directory of SGT are not correct...
>
> How can i tell to cygwin to use this directory to access make_lib, or
> what should i do with this to work ???
>
> Thank you
> Vaso

-- 
http://cs.nyu.edu/~pechtcha/

c++ std::locale does not work

2004-06-21 Thread Patrick Graebel
This stdc++ object...
std::locale loc("djj%%4343");
...does construct well. But it should not. It should throw an exception 
like described in Stroustrup.

The arguments "de_DE", "fr" or "deutsch" do not have any effect. Is this 
part of cygwin's stdc++ lib not implemented, yet?

-Patrick
--
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: gnucash and cygwin

2004-06-21 Thread Derek Atkins
[EMAIL PROTECTED] (Linas Vepstas) writes:

> On Sun, Jun 20, 2004 at 07:07:29PM -0400, Rohan Shah was heard to remark:
>> I'm trying to configure gnucash for cygwin. I get the following error 
>> even though I have glib installed (I installed it using setup.exe 
>> (GNOME2->glib version 2.2.1-2):
>> 
>> checking for GLIB - version >= 0.99.7... no
>
> its looking for glib.pc (in my case its at /usr/lib/pkgconfig/glib.pc)

Actually, it's looking for glib-1.2, and you've got glib-2...

GnuCash (1.8) is a gnome-1.4 application, not a gnome-2 application...
So you need a full gnome-1.4 development environment to build it.

You're probably better off waiting for the g2 port to complete.

-derek
-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   [EMAIL PROTECTED]PGP key available

--
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/



wmmake problem

2004-06-21 Thread Vasoczki Ferenc
Ok, i see through what happend:
if i am wroting the full path except using the $SGT_DIR variable, then it do it:

#include $(SGT_DIR)/mak/makegen.mak
include /cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4/mak/makegen.mak
^-

and as i wrote, i setted the $SGT_DIR:

[EMAIL PROTECTED] ~/test
$ echo $SGT_DIR
/cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4
^

why doesn't it found ?
i wouldn't like to overwrite all of my .mak file with these full path... this is why 
are the
environment variables, aren't they ???

Vaso

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Vasoczki Ferenc
Sent: Monday, June 21, 2004 4:07 PM
To: [EMAIL PROTECTED]
Subject: RE: makelib problem


Hi!

Oh, this setup CD confused me :((
So i installed the cygwin from internet, than copy out the .bashrc, then remove, 
install from CD again (from the internet the cygwin doesn't make home dir) and set the
environment variables. Here are them:
# SGT SETTINGS
export SGT_VER=v1.2.4
SGT_DIR=/cygdrive/c/OpenAT/V210/TgtGen/SGT/$SGT_VER
export SGT_SCRIPT=$SGT_DIR/script_sgt
export PATH=$SGT_SCRIPT:$PATH

great, now i have the SGT settings.
now i am making a new application:
wmnew -sample open-at/Hello_World -32 -gcc

it's run.

then continue (from the documentation) and i've got an error message:

[EMAIL PROTECTED] ~/test
$ wmmake Hello_World -d

Launch a full library or binary process

/cygdrive/C/OpenAT/V210/TgtGen/WmGen/mak/gen.mak:89: /mak/makegen.mak: No such f
ile or directory
make: *** No rule to make target `/mak/makegen.mak'.  Stop.

ok, let's see the directory structure:
in my path there is this:

PATH=/cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:/cygdrive/c/OpenAT/V21
0/TgtGen/SGT/v1.2.4/script_sgt:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINNT/sy...
 (and more)

I have this file:
C:\OpenAT\V210\TgtGen\SGT\v1.2.4\mak\makgen.mak

Anyway, what this error code means ?
I think, it's not found the makegen.mak
I have only this makegen.mak on my hard drive.

it's clear, but where should it be ???

there is a gen.mak in C:\OpenAT\V210\TgtGen\WmGen\mak\
and this include:

ifeq ($(MAKEFILE),)
include $(SGT_DIR)/mak/makegen.mak
else
include $(SGT_DIR)/mak/$(MAKEFILE)
endif

i think the first case is the important.
as you see, $SGT_DIR is setted.


[EMAIL PROTECTED] ~/test
$ echo $SGT_DIR
/cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4


sorry for these stupid question, just i sad, i don't know cygwin as well, 
and i am sad, because i can't run the hello world, the simpliest program...

Vaso


-Original Message-
From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]
Sent: Monday, June 21, 2004 2:54 PM
To: Vasoczki Ferenc
Cc: [EMAIL PROTECTED]
Subject: Re: makelib problem


On Mon, 21 Jun 2004, Vasoczki Ferenc wrote:

> Hi!
>
> I am a newbie on this list, and with the Cygwin too, so please
> be patient :)
>
> I tried to search for make_lib in archive, but i've get no result.
>
> i should learn to write embedded applications form wavecom modems
> and i am using cygwin and gcc. i downloaded the latest cygwin from the
> net.
>
> i am using the documentation of wavecom, and i tried to do a sample
> program. this is the command to make the new sample environment:
>
> wmnew -sample open-at/Hello_World -32 -gcc
>
> it's ok, it makes me the directory structure (./mak, ./out)
> great.
> the next step is to compile this code to binary.
> here is my problem.
>
> i am following the doc, and it say type this:
> wmmake Hello_World -d
>
> this is to compile, but i've got an error message:
> /cygdrive/c/OpenAT/V210/TgtGen/WmGen/wmmake: line 24: make_lib: command not found
>
> i checked, and there is no make_lib file there... it's ok.
> i searched this file, and it's here:
> C:\OpenAT\V210\TgtGen\SGT\v1.2.4\script_sgt\make_lib
>
> it's seems, when i installed this cygwin after the OpenAT the
> environment variables are bad. (correct me if i am not right)
>
> so i tried to add this path:
> PATH=/cygdrive/C/OpenAT/V210

Re: wmmake problem

2004-06-21 Thread Igor Pechtchanski
Once again, you're asking in the wrong place.  SGT, or whatever package
you're trying to compile, doesn't look like an official Cygwin package.
You should ask wherever you got the package from.  This is off-topic for
the Cygwin list.
Igor
P.S. Oh, and .

On Mon, 21 Jun 2004, Vasoczki Ferenc wrote:

> Ok, i see through what happend:
> if i am wroting the full path except using the $SGT_DIR variable, then
> it do it:
>
> #include $(SGT_DIR)/mak/makegen.mak
> include /cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4/mak/makegen.mak
> ^-
>
> and as i wrote, i setted the $SGT_DIR:
>
> [EMAIL PROTECTED] ~/test
> $ echo $SGT_DIR
> /cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4
> ^
>
> why doesn't it found ?
> i wouldn't like to overwrite all of my .mak file with these full path...
> this is why are the environment variables, aren't they ???
>
> Vaso
>
> -Original Message-
> From: Vasoczki Ferenc
> Sent: Monday, June 21, 2004 4:07 PM
> To: cygwincygwincom
> Subject: RE: makelib problem
>
>
> Hi!
>
> Oh, this setup CD confused me :((
> So i installed the cygwin from internet, than copy out the .bashrc, then
> remove, install from CD again (from the internet the cygwin doesn't make
> home dir) and set the environment variables. Here are them:
> # SGT SETTINGS
> export SGT_VER=v1.2.4
> SGT_DIR=/cygdrive/c/OpenAT/V210/TgtGen/SGT/$SGT_VER
> export SGT_SCRIPT=$SGT_DIR/script_sgt
> export PATH=$SGT_SCRIPT:$PATH
>
> great, now i have the SGT settings.
> now i am making a new application:
> wmnew -sample open-at/Hello_World -32 -gcc
>
> it's run.
>
> then continue (from the documentation) and i've got an error message:
> 
> [EMAIL PROTECTED] ~/test
> $ wmmake Hello_World -d
>
> Launch a full library or binary process
>
> /cygdrive/C/OpenAT/V210/TgtGen/WmGen/mak/gen.mak:89: /mak/makegen.mak: No such file 
> or directory
> make: *** No rule to make target `/mak/makegen.mak'.  Stop.
> 
> ok, let's see the directory structure:
> in my path there is this:
>
> PATH=/cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:/cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINNT/sy...
>  (and more)
> 
> I have this file:
> C:\OpenAT\V210\TgtGen\SGT\v1.2.4\mak\makgen.mak
> 
> Anyway, what this error code means ?
> I think, it's not found the makegen.mak
> I have only this makegen.mak on my hard drive.
>
> it's clear, but where should it be ???
>
> there is a gen.mak in C:\OpenAT\V210\TgtGen\WmGen\mak\
> and this include:
> 
> ifeq ($(MAKEFILE),)
> include $(SGT_DIR)/mak/makegen.mak
> else
> include $(SGT_DIR)/mak/$(MAKEFILE)
> endif
> 
> i think the first case is the important.
> as you see, $SGT_DIR is setted.
>
> 
> [EMAIL PROTECTED] ~/test
> $ echo $SGT_DIR
> /cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4
> 
>
> sorry for these stupid question, just i sad, i don't know cygwin as well,
> and i am sad, because i can't run the hello world, the simpliest program...
>
> Vaso
>
>
> -Original Message-
> From: Igor Pechtchanski
> Sent: Monday, June 21, 2004 2:54 PM
> To: Vasoczki Ferenc
> Cc: cygwincygwincom
> Subject: Re: makelib problem
>
>
> On Mon, 21 Jun 2004, Vasoczki Ferenc wrote:
>
> > Hi!
> >
> > I am a newbie on this list, and with the Cygwin too, so please
> > be patient :)
> >
> > I tried to search for make_lib in archive, but i've get no result.
> >
> > i should learn to write embedded applications form wavecom modems
> > and i am using cygwin and gcc. i downloaded the latest cygwin from the
> > net.
> >
> > i am using the documentation of wavecom, and i tried to do a sample
> > program. this is the command to make the new sample environment:
> >
> > wmnew -sample open-at/Hello_World -32 -gcc
> >
> > it's ok, it makes me the directory structure (./mak, ./out)
> > great.
> > the next step is to compile this code to binary.
> > here is my problem.
> >
> > i am following the doc, and it say type this:
> > wmmake Hello_Wo

Compiling DLLs to be used from native Win32 application

2004-06-21 Thread 3APA3A
Dear [EMAIL PROTECTED],

 I  saw  this  problem  was raised for few times on list, but do not see
 final   solution.   I  want  to  create  native  Windows  frontend  to
 cygwin-based dynamic library.

 What I did:

 1. I did DLL, it works fine with cygwin application.
 2. If I try to use it from native application it hangs on LoadLibrary.
 3.  I  did  DllMain function with impure_ptr initialization and finally
 compiled  as  described in FAQ.
 4.  Now  DLL loads and simple functions (for example  strcpy()/ctrcat()
 based)  work  OK,  but any "syscall" from DLL to cygwin
 function (for example printf()) causes NULL pointer reference.

 Is subj possible? May be some additional initialization is required?


-- 
http://www.security.nnov.ru
 /\_/\
{ , . } |\
+--oQQo->{ ^ }<-+ \
|  ZARAZA  U  3APA3A   } You know my name - look up my number (The Beatles)
+-o66o--+ /
|/


--
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: wmmake problem

2004-06-21 Thread Vasoczki Ferenc
1st of all, sorry.
But i think, a makefile syntax, and the cygwin environment variable is not an SGT 
related problem
Forget the SGT.

I made a variable in .bashrc :
mydir=/var/www
export mydir

and in a makefile there is a reference:
include $(mydir)/myproject/something/a.mak

echo $mydir
$ /var/www/

and when i am compile, the system sad, cannot find /myproject/something/a.mak
because the system don't know the value of the $mydir environment variable.

so ?

Vaso

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Igor Pechtchanski
Sent: Monday, June 21, 2004 4:48 PM
To: Vasoczki Ferenc
Cc: [EMAIL PROTECTED]
Subject: Re: wmmake problem


Once again, you're asking in the wrong place.  SGT, or whatever package
you're trying to compile, doesn't look like an official Cygwin package.
You should ask wherever you got the package from.  This is off-topic for
the Cygwin list.
Igor
P.S. Oh, and .

On Mon, 21 Jun 2004, Vasoczki Ferenc wrote:

> Ok, i see through what happend:
> if i am wroting the full path except using the $SGT_DIR variable, then
> it do it:
>
> #include $(SGT_DIR)/mak/makegen.mak
> include /cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4/mak/makegen.mak
> ^-
>
> and as i wrote, i setted the $SGT_DIR:
>
> [EMAIL PROTECTED] ~/test
> $ echo $SGT_DIR
> /cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4
> ^
>
> why doesn't it found ?
> i wouldn't like to overwrite all of my .mak file with these full path...
> this is why are the environment variables, aren't they ???
>
> Vaso
>
> -Original Message-
> From: Vasoczki Ferenc
> Sent: Monday, June 21, 2004 4:07 PM
> To: cygwincygwincom
> Subject: RE: makelib problem
>
>
> Hi!
>
> Oh, this setup CD confused me :((
> So i installed the cygwin from internet, than copy out the .bashrc, then
> remove, install from CD again (from the internet the cygwin doesn't make
> home dir) and set the environment variables. Here are them:
> # SGT SETTINGS
> export SGT_VER=v1.2.4
> SGT_DIR=/cygdrive/c/OpenAT/V210/TgtGen/SGT/$SGT_VER
> export SGT_SCRIPT=$SGT_DIR/script_sgt
> export PATH=$SGT_SCRIPT:$PATH
>
> great, now i have the SGT settings.
> now i am making a new application:
> wmnew -sample open-at/Hello_World -32 -gcc
>
> it's run.
>
> then continue (from the documentation) and i've got an error message:
> 
> [EMAIL PROTECTED] ~/test
> $ wmmake Hello_World -d
>
> Launch a full library or binary process
>
> /cygdrive/C/OpenAT/V210/TgtGen/WmGen/mak/gen.mak:89: /mak/makegen.mak: No such file 
> or directory
> make: *** No rule to make target `/mak/makegen.mak'.  Stop.
> 
> ok, let's see the directory structure:
> in my path there is this:
>
> PATH=/cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:/cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINNT/sy...
>  (and more)
> 
> I have this file:
> C:\OpenAT\V210\TgtGen\SGT\v1.2.4\mak\makgen.mak
> 
> Anyway, what this error code means ?
> I think, it's not found the makegen.mak
> I have only this makegen.mak on my hard drive.
>
> it's clear, but where should it be ???
>
> there is a gen.mak in C:\OpenAT\V210\TgtGen\WmGen\mak\
> and this include:
> 
> ifeq ($(MAKEFILE),)
> include $(SGT_DIR)/mak/makegen.mak
> else
> include $(SGT_DIR)/mak/$(MAKEFILE)
> endif
> 
> i think the first case is the important.
> as you see, $SGT_DIR is setted.
>
> 
> [EMAIL PROTECTED] ~/test
> $ echo $SGT_DIR
> /cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4
> 
>
> sorry for these stupid question, just i sad, i don't know cygwin as well,
> and i am sad, because i can't run the hello world, the simpliest program...
>
> Vaso
>
>
> -Original Message-
> From: Igor Pechtchanski
> Sent: Monday, June 21, 2004 2:54 PM
> To: Vasoczki Ferenc
> Cc: cygwincygwincom
> Subject: Re: makelib problem
>
>
> On Mon, 21 Jun 2004, Vasoczki Ferenc wrote:
>
> > Hi!
> >
> > I am a newbie on this list, and with the Cygwin too, so

Re: make doesn't inherit shell vars? (Was RE: wmmake problem)

2004-06-21 Thread Igor Pechtchanski
On Mon, 21 Jun 2004, Vasoczki Ferenc wrote:

> 1st of all, sorry.
> But i think, a makefile syntax, and the cygwin environment variable is
> not an SGT related problem
> Forget the SGT.
>
> I made a variable in .bashrc :
> mydir=/var/www
> export mydir
>
> and in a makefile there is a reference:
> include $(mydir)/myproject/something/a.mak
>
> echo $mydir
> $ /var/www/
>
> and when i am compile, the system sad, cannot find
> /myproject/something/a.mak because the system don't know the value of
> the $mydir environment variable.
>
> so ?
>
> Vaso
>
> -Original Message-
> [snip]

Again, .

Secondly, this is still not Cygwin-related -- it's a general bash
situation.  Please read the bash man page, especially the INVOCATION
section ('PAGER="less -isRrp ^INVOCATION" man bash').  Hint: note the
difference between .bashrc and .bash_profile.

FYI, the following works:

$ pwd
/tmp/maketest
$ cat blah.mak
include $(mydir)/maketest/bar.mk
$ cat bar.mk
all:;   echo "Got target"
$ export mydir=/tmp
$ make -f blah.mak
echo "Got target"
Got target
$
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: Compiling DLLs to be used from native Win32 application

2004-06-21 Thread Igor Pechtchanski
On Mon, 21 Jun 2004, 3APA3A wrote:

> Dear cygwincygwincom,

Umm, is that the wisest choice of address?  Let's not feed the spam
harvesters.

>  I saw this problem was raised for few times on list, but do not see
>  final solution.  I want to create native Windows frontend to
>  cygwin-based dynamic library.
>
>  What I did:
>
>  1. I did DLL, it works fine with cygwin application.
>  2. If I try to use it from native application it hangs on LoadLibrary.
>  3. I did DllMain function with impure_ptr initialization and finally
> compiled as described in FAQ.
>  4. Now  DLL loads and simple functions (for example strcpy()/ctrcat()
> based) work OK, but any "syscall" from DLL to cygwin function (for
> example printf()) causes NULL pointer reference.
>
>  Is subj possible? May be some additional initialization is required?

Does  help?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: make doesn't inherit shell vars? (Was RE: wmmake problem)

2004-06-21 Thread Igor Pechtchanski
Please make sure your mailer respects the Reply-To: header -- I set it for
a reason.  Oh, and once again, .
Igor

On Mon, 21 Jun 2004, Vasoczki Ferenc wrote:

> Now i should go, but tomorrow i will check...
> Sorry if it is offtopic.
> I used linux before, i just thought, this is a cygwin problem...
>
> Thank you again...
>
> Vaso
>
> -Original Message-
> From: Igor Pechtchanski
> Sent: Monday, June 21, 2004 5:28 PM
> To: Vasoczki Ferenc
> Cc: cygwincygwincom
> Subject: Re: make doesn't inherit shell vars? (Was RE: wmmake problem)
>
>
> On Mon, 21 Jun 2004, Vasoczki Ferenc wrote:
>
> > 1st of all, sorry.
> > But i think, a makefile syntax, and the cygwin environment variable is
> > not an SGT related problem
> > Forget the SGT.
> >
> > I made a variable in .bashrc :
> > mydir=/var/www
> > export mydir
> >
> > and in a makefile there is a reference:
> > include $(mydir)/myproject/something/a.mak
> >
> > echo $mydir
> > $ /var/www/
> >
> > and when i am compile, the system sad, cannot find
> > /myproject/something/a.mak because the system don't know the value of
> > the $mydir environment variable.
> >
> > so ?
> >
> > Vaso
> >
> > -Original Message-
> > [snip]
>
> Again, .
>
> Secondly, this is still not Cygwin-related -- it's a general bash
> situation.  Please read the bash man page, especially the INVOCATION
> section ('PAGER="less -isRrp ^INVOCATION" man bash').  Hint: note the
> difference between .bashrc and .bash_profile.
>
> FYI, the following works:
>
> $ pwd
> /tmp/maketest
> $ cat blah.mak
> include $(mydir)/maketest/bar.mk
> $ cat bar.mk
> all:; echo "Got target"
> $ export mydir=/tmp
> $ make -f blah.mak
> echo "Got target"
> Got target
> $
>   Igor

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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[2]: Compiling DLLs to be used from native Win32 application

2004-06-21 Thread 3APA3A
Dear Igor Pechtchanski,

--Monday, June 21, 2004, 7:34:33 PM, you wrote to [EMAIL PROTECTED]:


>>
>>  1. I did DLL, it works fine with cygwin application.
>>  2. If I try to use it from native application it hangs on LoadLibrary.
>>  3. I did DllMain function with impure_ptr initialization and finally
>> compiled as described in FAQ.
>>  4. Now  DLL loads and simple functions (for example strcpy()/ctrcat()
>> based) work OK, but any "syscall" from DLL to cygwin function (for
>> example printf()) causes NULL pointer reference.
>>
>>  Is subj possible? May be some additional initialization is required?

IP> Does  help?

No.  I  do  not  want to compile application with cygwin1.dll. I want to
load library dynamically. But I'll look into crt code anyway.

-- 
~/ZARAZA
Человек это тайна... я занимаюсь этой тайной чтобы быть человеком. (Достоевский)


--
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: Re[2]: Compiling DLLs to be used from native Win32 application

2004-06-21 Thread Dave Korn
> -Original Message-
> From: cygwin-owner On Behalf Of 3APA3A
> Sent: 21 June 2004 17:01

> >>  2. If I try to use it from native application it hangs on 
> LoadLibrary.
> >>  3. I did DllMain function with impure_ptr initialization 
> and finally
> >> compiled as described in FAQ.
> >>  4. Now  DLL loads and simple functions (for example 
> strcpy()/ctrcat()
> >> based) work OK, but any "syscall" from DLL to cygwin 
> function (for
> >> example printf()) causes NULL pointer reference.
> >>
> >>  Is subj possible? May be some additional initialization 
> is required?
> 
> IP> Does  help?
> 
> No.  I  do  not  want to compile application with 
> cygwin1.dll. I want to
> load library dynamically. But I'll look into crt code anyway.


  IIRC, it isn't valid to call LoadLibrary on cygwin1.dll; it's not a
supported mode of operation.  Therefore you also can't LoadLibrary a
cygwin-based dll except from a cygwin-native app that has cygwin1.dll loaded
all the way along from process startup, because that'll end up implicitly
calling LL on the cygwin dll to satisfy the imports for your cygwin-based
dll.

  Got any exciting new vuln reports coming up soon then?  Found a security
hole or three in 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/



Re[2]: Compiling DLLs to be used from native Win32 application

2004-06-21 Thread Igor Pechtchanski
On Mon, 21 Jun 2004, 3APA3A wrote:

> Dear Igor Pechtchanski,
>
> --Monday, June 21, 2004, 7:34:33 PM, you wrote to 3APA3ASECURITYNNOVRU:

 (even if it's your own). :-D

> >>  1. I did DLL, it works fine with cygwin application.
> >>  2. If I try to use it from native application it hangs on LoadLibrary.
> >>  3. I did DllMain function with impure_ptr initialization and finally
> >> compiled as described in FAQ.
> >>  4. Now  DLL loads and simple functions (for example strcpy()/ctrcat()
> >> based) work OK, but any "syscall" from DLL to cygwin function (for
> >> example printf()) causes NULL pointer reference.
> >>,
> >>  Is subj possible? May be some additional initialization is required?
>
> IP> Does  help?
>
> No.  I  do  not  want to compile application with cygwin1.dll. I want to
> load library dynamically. But I'll look into crt code anyway.

Whoops, sorry for the confusion.  I didn't realise that the information
from the above message is already in the FAQ (and that's probably what you
referred to in your step 3 above).

It would probably be best to make changes to the Cygwin1.dll to allow
dynamic loading via LoadLibrary, rather than trying to force the
initialization from an external DLL.  If you manage to get this working,
please consider submitting a patch to Cygwin with your changes (see
).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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 1.5.10: Possible bug

2004-06-21 Thread Shankar Unni
Dave Neary wrote:
I have come across a problem with cygwin (I think) which prevents it 
from being used to compile JNI bindings.
Or any DLLs that need to be loaded from non-Cygwin main programs (e.g. 
Sun Java). This has been a problem for several releases now, and no one 
(me included, I must confess) seems to find the time to narrow this down..

Your best bet may be to compile your JNI code with mingw (or use the 
-mno-cygwin option with the cygwin gcc). You won't be able to use a lot 
of POSIX system calls in this mode, but at least the resultant DLL 
should be loadable from non-cygwin main programs.

--
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[3]: Compiling DLLs to be used from native Win32 application

2004-06-21 Thread 3APA3A
Dear Igor Pechtchanski,

--Monday, June 21, 2004, 8:20:50 PM, you wrote to [EMAIL PROTECTED]:


IP> Whoops, sorry for the confusion.  I didn't realise that the information
IP> from the above message is already in the FAQ (and that's probably what you
IP> referred to in your step 3 above).

IP> It would probably be best to make changes to the Cygwin1.dll to allow
IP> dynamic loading via LoadLibrary, rather than trying to force the
IP> initialization from an external DLL.  If you manage to get this working,
IP> please consider submitting a patch to Cygwin with your changes (see
IP> ).

Yes,  it  looks  like it's impossible. _cygwin_crt0_common doesn't solve
problem  if  explicitly  called,  dll_crt0__FP11per_process()  hangs and
faked main() is never executed...

-- 
~/ZARAZA
В расчетах была ошибка.  (Лем)


--
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/



db & mingw

2004-06-21 Thread Sam Steingold
it appears that "gcc -mno-cygwin" cannot find db.h and build
Berkeley-DB applications.
also, Berkeley-DB "utilities" documentation appear to be missing from
usr/share/doc/db-4.2.52.
thanks.
-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
  
 
Modern man is the missing link between apes and human beings.

--
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: db & mingw

2004-06-21 Thread Dave Korn
> -Original Message-
> From: cygwin-owner On Behalf Of Sam Steingold
> Sent: 21 June 2004 18:35
> To: cygwin
> Subject: db & mingw
> 
> it appears that "gcc -mno-cygwin" 

  That's a problem for the MinGW list then.  The includes and libraries for
the cygwin compiler and the MinGW compiler are essentially independent of
each other.  It may well be that MinGW have decided not to support B-DB, but
you'd have to ask them.

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: Possible socket problem

2004-06-21 Thread Larry Hall
At 01:58 AM 6/21/2004, you wrote:
>Hi, 
>I have a java program that are calling a cygwin script with Runtime.exec().  This 
>script is calling COBOL and java
>programs that are connecting to  a Oracle database. But they fail with the error 
>message "Network adapter could not
>be established". If I make a bat-file instead of sh-script, I have no problem. If I 
>call the sh-script directly
>(not from java), everything works fines.
>
>I think this is a cygwin socket problem. By some reason cygwin prevents my java and 
>COBOL programs from connecting
>to the database server. 
>
>Does anybody have a solution to this problem?


This seems too vague on details to be able to give a useful response.
Perhaps you'll want to produce a small test case that reproduces the 
problem.  If after doing so you still don't have a solution for the 
problem, send the test case here.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746 


--
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: Compiling DLLs to be used from native Win32 application

2004-06-21 Thread Reini Urban
Dave Korn schrieb:
  Got any exciting new vuln reports coming up soon then?  Found a security
hole or three in cygwin?
I guess that he just wants to add this proxy being loaded dynamically:
http://www.security.nnov.ru/soft/3proxy/howtoe.asp#GCCWIN
> # How to compile 3proxy with GCC under Windows
>
> Extract source files from 3proxy.tgz (for example with tar -xzf
> 3proxy.tgz command if you have tar installed) Use make -f 
Makefile.win > command. If you want to use POSIX emulation Cygwin 
library (normally
> you shouldn't) - use make -f Makefile.unix instead. Windows specific
> things (like installing as service) will not be available if compiled
> with Cygwin emulation.

Reading this I spotted a false information. It is possible to run it as 
service: via cygrunsrv.
$ less /usr/share/doc/Cygwin/cygrunsrv.README
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

--
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/BASH CHMOD on W9x.

2004-06-21 Thread jglong3
Hello, :)

FYIPlease be patientI am a NEWBIE using the CYGWIN/BASH environment. I did use 
UNIX, but that was many years ago (pre 1985) and I have a lot to re-learn.

Thanks for your time, help, and advise!!! :) 

CYGWIN/BASH dated 5/25/2004 Version 1.5.10-3 was installed to a W98 machine and all is 
woking great. The install was a minimum CYGWIN/BASH for using SSHD and SSH.

On this W98 machine an attempt to chmod for directories and files to try and prevent 
users from crossing over to other user's directories was not successful. And, after 
looking at some Archives it was found that this cannot be done on a W9x type machine. 

   1. The articles were dated circa 2002 and I was curious if this had 
  ever become an issue to implement in the CYGWIN/BASH 
  environment for W9x, or is this a dead issue for W9x machines


An article dated Nov. 200, Re: fetchmail by Corinna Vinschen was found that described 
how to do this for a W98 with a fetchmail environment. The direction discussed a 
change in the fetchmail environmment for the function 'check-ntsec' in the source code 
file 'cygwin_util.c'. The environment here is low on resources for any compiler/linker 
type environment and as a result does not contain the CYGWIN source code or the 
compile/link capability with any c, c++, or API to create *.exe or *.dll files.

  2.  However, given the minimal environment that was delivered can 
  a CYGWIN/BASH source code file change accomplish the 
  security check with a recompile/link?

If so, then a machine will be found with resources so that this can be accomplished.

 3. Or, has someone been succesful to chmod with a W9x environment 

Thanks for your time, hep, amd advise!!! :) :)

Jerry

--
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 1.5.10: Possible bug

2004-06-21 Thread Christopher Faylor
On Mon, Jun 21, 2004 at 10:23:14AM -0700, Shankar Unni wrote:
>Dave Neary wrote:
>>I have come across a problem with cygwin (I think) which prevents it
>>from being used to compile JNI bindings.
>
>Or any DLLs that need to be loaded from non-Cygwin main programs (e.g.
>Sun Java).  This has been a problem for several releases now, and no
>one (me included, I must confess) seems to find the time to narrow this
>down..

"several releases" == "a couple of years"

You haven't been able to reliably, dynamically load cygwin dlls for some
time now.  For me, it is not an issue about finding the time; it is
finding the interest.  I really am not overly bothered by this
restriction.  So, if anyone is under the impression that this is just a
lack of time, that is not the case, at least for me, and, I suspect that
Corinna is in the same boat.

cgf

--
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/



Accessing Cygwin from a LAN PC

2004-06-21 Thread zzapper
Sorry bet this is a Cygwin chestnut.

I would like to access CygWin on my PC from other PCs on our LAN.

I guess VNC , but which flavour?  Other solutions?

zzapper (vim, cygwin, wiki & zsh)
--

vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?"

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips


--
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: Accessing Cygwin from a LAN PC

2004-06-21 Thread Mike Eggleston
On Mon, 21 Jun 2004, zzapper wrote:

> Sorry bet this is a Cygwin chestnut.
> 
> I would like to access CygWin on my PC from other PCs on our LAN.
> 
> I guess VNC , but which flavour?  Other solutions?

Use cygsrv and sshd?

--
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/



rlogin problems

2004-06-21 Thread Ulrich Güttich
i have just installed the latest cygwin release (dll 1.5.10-3) on a Windows
98 SE.

Unfortunately, rlogin does not work - neither on a remote host nor on the
localhost (ssh works fine and also rsh seems to work).

The command output is as follows:

rlogin 127.0.0.1
rlogin: read: No error
  rlogin: connection closed.

I could not find any help in the net. Do you have any idea where the problem
is?

Best regards

Ulrich


--
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: db & mingw

2004-06-21 Thread Max Bowsher
Sam Steingold wrote:
> it appears that "gcc -mno-cygwin" cannot find db.h and build
> Berkeley-DB applications.

-mno-cygwin isn't some magical AI which somehow removes cygwin dependencies from 
existing libraries. It's simply an embedded
cross-compilation mode. Without a *seperate* mingw-targeted build of BDB, forget 
trying to build MinGW BDB applications.

> also, Berkeley-DB "utilities" documentation appear to be missing from
> usr/share/doc/db-4.2.52.

I've sent an email about this to cygwin-apps at cygwin dot com about this.
(Actually, they aren't missing, merely in a non-obvious location: 
/usr/share/doc/libdb4.2-devel-4.2.52/utility)

Max.


--
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: Accessing Cygwin from a LAN PC

2004-06-21 Thread Thorsten Kampe
* zzapper (2004-06-21 22:39 +0200)
> Sorry bet this is a Cygwin chestnut.
> 
> I would like to access CygWin on my PC from other PCs on our LAN.

You  cannot "access Cygwin" but you can access certain services
running against cygwin1.dll: ftpd, proftpd, telnetd, sshd.

> I guess VNC , but which flavour?

There is no VNC for Cygwin, use the Windows ones: RealVNC, TightVNC,
UltraVNC.

Thorsten


--
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/BASH CHMOD on W9x.

2004-06-21 Thread Thorsten Kampe
* [EMAIL PROTECTED] (2004-06-21 21:43 +0200)
> FYIPlease be patientI am a NEWBIE using the CYGWIN/BASH environment. I did 
> use UNIX, but that was many years ago (pre 1985) and I have a lot to re-learn.

FYI, please use linebreaks at about 70 characters otherwise your
reader has to scroll (and probably won't read what you wrote)
 
> CYGWIN/BASH dated 5/25/2004 Version 1.5.10-3 was installed to a W98 machine and all 
> is woking great. The install was a minimum CYGWIN/BASH for using SSHD and SSH.
> 
> On this W98 machine an attempt to chmod for directories and files to try and prevent 
> users from crossing over to other user's directories was not successful. And, after 
> looking at some Archives it was found that this cannot be done on a W9x type 
> machine. 
> 
>1. The articles were dated circa 2002 and I was curious if this had 
>   ever become an issue to implement in the CYGWIN/BASH 
>   environment for W9x, or is this a dead issue for W9x machines

Ask Microsoft. If you really would care, you wouldn't use Windows 98,
would you? Cygwin can neither reinvent nor circumvent the security of
the operating system. So if Windows has none, Cygwin has none.
 
> An article dated Nov. 200, Re: fetchmail by Corinna Vinschen was found that 
> described how to do this for a W98 with a fetchmail environment. The direction 
> discussed a change in the fetchmail environmment for the function 'check-ntsec' in 
> the source code file 'cygwin_util.c'. The environment here is low on resources for 
> any compiler/linker type environment and as a result does not contain the CYGWIN 
> source code or the compile/link capability with any c, c++, or API to create *.exe 
> or *.dll files.
> 
>   2.  However, given the minimal environment that was delivered can 
>   a CYGWIN/BASH source code file change accomplish the 
>   security check with a recompile/link?

See above.

> If so, then a machine will be found with resources so that this can be accomplished.
> 
>  3. Or, has someone been succesful to chmod with a W9x environment 

There is no security under Windows 9x. It would be possible to fake it
- but it would be a fake security.

Use NT (4, 5, 5.1, 5.2)

Thorsten


--
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/BASH CHMOD on W9x.

2004-06-21 Thread Brian Bruns
On Monday, June 21, 2004 3:43 PM [EDT], [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

>
>  3. Or, has someone been succesful to chmod with a W9x environment
> 


IIRC (and I could be wrong, since its been a while since I've worked
with Cygwin under a non NT based system), Win9x/ME has no security hooks
or controls that would make this kind of control possible - partially
because of the limited subset of Win32 support in them, and partially
because of lack of support for NTFS.


But, like I said, I could be wrong, and things might have changed.

-- 
Brian Bruns
The Summit Open Source Development Group
Open Solutions For A Closed World / Anti-Spam Resources
http://www.sosdg.org

The Abusive Hosts Blocking List
http://www.ahbl.org


--
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/BASH CHMOD on W9x.

2004-06-21 Thread jglong3
Hello Brian and Thorsten,   :) :)  


Brian,,,I'll take a look at IIRC!  THANKS for the info!

More comments at the appropriate places below!
 

-- Original message from "Brian Bruns" : -- 
> On Monday, June 21, 2004 3:43 PM [EDT], [EMAIL PROTECTED] 
> wrote: 
> 
> > 
> > 3. Or, has someone been succesful to chmod with a W9x environment 
> >  
> 
> 
> IIRC (and I could be wrong, since its been a while since I've worked 
> with Cygwin under a non NT based system), Win9x/ME has no security hooks 
> or controls that would make this kind of control possible - partially 
> because of the limited subset of Win32 support in them, and partially 
> because of lack of support for NTFS. 
> 
> 
> But, like I said, I could be wrong, and things might have changed. 
> 

OK BrainTHANKS for your time, help, and advise!!!

> -- 
> Brian Bruns 
> The Summit Open Source Development Group 
> Open Solutions For A Closed World / Anti-Spam Resources 
> http://www.sosdg.org 
> 
> The Abusive Hosts Blocking List 
> http://www.ahbl.org 
> 
> 


--- Original message from " Thorsten Kampe " : -- 

>> > FYIPlease be patientI am a NEWBIE using the CYGWIN/BASH 
environment. I 
did use UNIX, but that was many years ago (pre 1985) and I have a lot to 
re-learn.

>>FYI, please use linebreaks at about 70 characters otherwise your
reader has to scroll (and probably won't read what you wrote)
 

OK, Thanks I'll keep this in mind :)


>>> CYGWIN/BASH dated 5/25/2004 Version 1.5.10-3 was installed to a W98 machine 
and all is woking great. The install was a minimum CYGWIN/BASH for using SSHD 
and SSH.
>>> 
>>> On this W98 machine an attempt to chmod for directories and files to try and 
prevent users from crossing over to other user's directories was not successful. 
And, after looking at some Archives it was found that this cannot be done on a 
W9x type machine. 
>>> 
>>>1. The articles were dated circa 2002 and I was curious if this had 
>>>   ever become an issue to implement in the CYGWIN/BASH 
>   environment for W9x, or is this a dead issue for W9x machines

>>Ask Microsoft. If you really would care, you wouldn't use Windows 98,
>>would you? Cygwin can neither reinvent nor circumvent the security of
>>the operating system. So if Windows has none, Cygwin has none.
 
It is understood that W9x systems do not provide 
directory/file security! We do care and encourage 
clients to upgrade. However, when the situation 
does not allow for an upgrade you have to do what 
you can. And, trying to talk to Microsoft is like 
talking to a "STUMP".
However, you can get their attention if you find 
a vulnerability in their Network type code and 
publish it with just a CC to Microsoft. It was 
encouraging when they offered an online security 
and criticle upgrade environment. Even this 
seems to be ok for W98 for a while to come.

The ssh/sshd environments sets up a remote login 
session that does some a good username/password 
protection even on the W9x environments! Also, 
a "ls -al" shows the proper owner/group of the 
user logged in as expected based on the contents 
of the passwd and group files. It was hoped since 
this was true then some routine/function in BASH 
could be modified similar to the suggestion in the 
Nov 200 article by Corinna Vinschen and that this 
change would honor this users owner/group to 
prevent the user from changing to ANY directory 
out-side that user's main (user's root) directory.

Now that I take another look at the CYGWIN User's 
Guide with respect to NTSEC and NTEA relative to 
this article it appears the article is 
relative to NT+ 
().


>>> An article dated Nov. 200, Re: fetchmail by Corinna Vinschen was found that 
described how to do this for a W98 with a fetchmail environment. The direction 
discussed a change in the fetchmail environmment for the function 'check-ntsec' 
in the source code file 'cygwin_util.c'. The environment here is low on 
resources for any compiler/linker type environment and as a result does not 
contain the CYGWIN source code or the compile/link capability with any c, c++, 
or API to create *.exe or *.dll files.
>>> 
>>>   2.  However, given the minimal environment that was delivered can 
>>>   a CYGWIN/BASH source code file change accomplish the 
>>>   security check with a recompile/link?

>>See above.

>>> If so, then a machine will be found with resources so that this can be 
accomplished.
>>> 
>>>  3. Or, has someone been succesful to chmod with a W9x environment 

>>There is no security under Windows 9x. It would be possible to fake it
- but it would be a fake security.


The cygwin environemnts variable ntsec and ntea seem 
to be the way for the NT SP4 and Windows 2000.

I have not used it at this time and cannot make any 
pro/con statements about the article on the web 
at http://www.devguy.com/fp/scp/. But,  even 
the RunSCP offering of OpenSSH requirements is 
for NT SP4 and Windows 

Re: CYGWIN/BASH CHMOD on W9x.

2004-06-21 Thread jglong3

Hello Brian and Thorsten, :) :) 


OK,so I fell asleep when I looked at the word IIRCplease forgive me ;-\ ;-\

Jerry




--
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[2]: Compiling DLLs to be used from native Win32 application

2004-06-21 Thread 3APA3A
Dear Reini Urban,

No,  your  guess is wrong. 3proxy is natively developed to compile under
Windows  and  compiles  perfectly with both gcc -mno-cygwin and VC++ and
though  it  can be compiled with cygwin I see no reason for that (3proxy
has  build-in code to install and run as Windows service and it will not
work  if  compiled  in  POSIX  environment).

What   I  wanted  is  to  attach  clamav  antivirus  to  native  Windows
application  as  library  (without  need  to have clamd running, because
under  Windows it's quite unstable). Patching 0.5Mb of libclamav code to
compile natively under Windows is too large peace of work.


--Monday, June 21, 2004, 10:18:54 PM, you wrote to [EMAIL PROTECTED]:

RU> Dave Korn schrieb:
>>   Got any exciting new vuln reports coming up soon then?  Found a security
>> hole or three in cygwin?

RU> I guess that he just wants to add this proxy being loaded dynamically:

RU> http://www.security.nnov.ru/soft/3proxy/howtoe.asp#GCCWIN

 >> # How to compile 3proxy with GCC under Windows
 >>
 >> Extract source files from 3proxy.tgz (for example with tar -xzf
 >> 3proxy.tgz command if you have tar installed) Use make -f 
RU> Makefile.win > command. If you want to use POSIX emulation Cygwin 
RU> library (normally
 >> you shouldn't) - use make -f Makefile.unix instead. Windows specific
 >> things (like installing as service) will not be available if compiled
 >> with Cygwin emulation.

RU> Reading this I spotted a false information. It is possible to run it as
RU> service: via cygrunsrv.
RU> $ less /usr/share/doc/Cygwin/cygrunsrv.README


-- 
~/ZARAZA
Особую проблему составляет алкоголизм.  (Лем)


--
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/



/usr/bin exists not; man can't find nroff; permissions inconsistent

2004-06-21 Thread Carlo Florendo
Hello,
After installing cygwin, I am encountering some issues.  cygcheck's 
output attached:

First, I tried to man bash.  Nothing appeared on screen so I hit `q'.  
Then, it says that nroff was not found.

$ man bash
/usr/bin/nroff: not found
Then,  I checked whether nroff existed:
$ ls -l /usr/bin/nroff
-rw-r--r--1 CarloNone 1955 Dec 16  2002 /usr/bin/nroff
Thus, I thought it existed but the permissions were not set well.  I 
then tried to change the permissions:

$ chmod 755 /usr/bin/nroff
chmod: changing permissions of `/usr/bin/nroff': No such file or directory
As you see, it says that the file does not exist.  Strange, isnt't it?  
Then, I tried catting the file. Here's what I got.

$ cat /usr/bin/nroff
cat: /usr/bin/nroff: No such file or directory
Thus, I tried going to the /usr/bin directory itself and catted nroff to 
see if it really existed:

$ cd /usr/bin
$ ls -l nroff
-rwxr-xr-x1 CarloNone 1955 Dec 16  2002 nroff
$ cat nroff
#!/bin/sh
# Emulate nroff with groff.
prog="$0"
# Default device.
# First try the "locale charmap" command, because it's most reliable.

Thus, it exists.
Then, I again tried doing an `ls -l' on nroff, first *not* specifying 
its fully qualified name (FQN), and afterwards, specifying its FQN.  
Here's what I got:

$ pwd 
/usr/bin

$ ls -l nroff
-rwxr-xr-x1 CarloNone 1955 Dec 16  2002 nroff
$ ls -l /usr/bin/nroff
-rw-r--r--1 CarloNone 1955 Dec 16  2002 /usr/bin/nroff
As you can see, the first listing says the permission is a 755.  The 
second listing says the permission is a 644.   This seems to me 
strange.  Why does the permission for the same file appear differently 
when accessed via different means.  (i.e. specifying its FQN; not 
specifying its FQN)?

Thus, I thought that /usr/bin/nroff was probably hardlinked from 
/bin/nroff and that this linking might have caused some problems so I 
checked out /bin/nroff.  /bin/nroff existed.  I found out that 
/usr/bin/nroff is indeed a hardlink to /bin/nroff but I didn't see why 
this could really cause a problem.

Then, I tried opening a cmd prompt to check if there is any clue I could 
get from it. 
This is what I got:

Start windows cmd output
$ cmd
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
d:\cygwin>cd usr
cd usr
D:\cygwin\usr>dir /w 
dir /w
Volume in drive D is PROGRAMS
Volume Serial Number is 701A-F5A8

Directory of D:\cygwin\usr
[.]   [..]  [src] [local]
[tmp] [include] [share]   [doc]
[man] [sbin][autotool][info]
[i686-pc-cygwin]  [etc] [var] [X11R6]
[grace]   [ssl] [libexec] [logs]
[i686-pc-mingw32]
  0 File(s)  0 bytes
 21 Dir(s)   1,703,936,000 bytes free
D:\cygwin\usr>dir bin
dir bin
Volume in drive D is PROGRAMS
Volume Serial Number is 701A-F5A8
Directory of D:\cygwin\usr
File Not Found
D:\cygwin\usr>dir d:\cygwin\usr\bin
dir d:\cygwin\usr\bin
Volume in drive D is PROGRAMS
Volume Serial Number is 701A-F5A8
Directory of d:\cygwin\usr
File Not Found
d:\cygwin\usr>
End windows cmd output
The directory d:\cygwin\usr\bin does not exist. (i.e. It is neither 
listed with `dir /w' nor `dir bin' nor `dir d:\cygwin\usr\bin') It 
appears to be linked somewhere else. 

I would appreciate it very much if anyone could point out which part of 
the source code I could tweak.  I'd like to learn diagnosing problems in 
source code level. 

Another thing to note is that cygcheck reports several warnings of this 
sort:

Found: d:\cygwin\\bin\ls.exe
Found: d:\cygwin\bin\ls.exe
Warning: d:\cygwin\\bin\ls.exe hides d:\cygwin\bin\ls.exe
What could be the problem on my system?  I know I'm  missing something.
Thank you so much!
Best Regards,
Carlo
--
Carlo Florendo y Flora
Astra Philippines Inc.
www.astra.ph
--
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/