public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Building joe 2.8 with gcc 2.95.2
@ 2000-03-10 17:20 Jeff
  2000-03-10 18:19 ` Chris Faylor
  2000-03-12 16:22 ` Michael Hirmke
  0 siblings, 2 replies; 10+ messages in thread
From: Jeff @ 2000-03-10 17:20 UTC (permalink / raw)
  To: cygwin; +Cc: jhurwit

Before I even start with joe..  I just recently installed gcc 2.95.2
(the cygb20 and dev-ss packages) on Cygwin 20.1, on which I have a
recent snapshot of the DLL:

{04:38pm|11:1} ~>uname -a
CYGWIN_95-4.0 DEFAULT 1.1.0(0.18/3/2) 2000-03-07 15:27:43 i586 unknown

I got bitten by the cpp ("-remap") bug, even when I didn't have /bin in
my path at all:

{04:46pm|15:1} />echo $PATH
/Programs/cygnus/cygwin-b20/H-i586-cygwin32/bin:/dos/tools:/dos/kermit:/dos/tool
s/uc2:/dos/graphics:/dos/wp51:/windows:/windows/command

I had to remove /bin from the mount table entirely, in
order to stop gcc from searching /bin/../lib and so on.

{04:39pm|12:1} ~>mount
Device           Directory           Type        Flags
c:\programs\cygnus\cygwin-b20\etc /etc                user
textmode
c:\programs\cygnus\cygwin-b20\usr /usr                user
textmode
c:\windows\temp  /tmp                user        textmode
c:               /                   user        textmode
a:               /a                  user        textmode
d:               /cdrom              user        textmode

So now I just use a symlink:

{04:44pm|13:1} ~>cd /
{04:45pm|14:1} />l bin
lrw-r--r--   1 administ unknown        59 Mar  9 21:50 bin -> /Programs/cygnus/c
ygwin-b20/H-i586-cygwin32/bin/

I guess that's ok, but I'm not too very happy about it, and would prefer
to mount /bin.

But, since everything seems to function ok now, I attempted to build
joe.

{04:53pm|19:1} ~/joe>make
gcc -O3   -c path.c -o path.o
In file included from path.c:42:
dir.c: In function `mkdir':
dir.c:48: argument `s' doesn't match prototype
/Programs/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/2.9
5.2/../../../../i586-cygwin32/include/sys/stat.h:122: prototype declaration
dir.c:48: number of arguments doesn't match prototype
/Programs/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/2.9
5.2/../../../../i586-cygwin32/include/sys/stat.h:122: prototype declaration
make: *** [path.o] Error 1

Ok.  Well, the prototype from stat.h

int     _EXFUN(mkdir,( const char *_path, mode_t __mode ));

appears to take two arguments, and the relevant lines in dir c

int mkdir(s)
char *s;
 {

Has only one.  I don't know if this is the problem, but I know that joe
built just fine with the compiler that originally came with Cygwin 20.1
(egcs-2.91.57, if one is to believe the directory name).  I didn't keep
that build of joe because it was unstable and did some quirky things; I
was hoping to get better results with a later CYGWIN1.DLL and gcc.  Any
help greatly appreciated.

Jeff

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Building joe 2.8 with gcc 2.95.2
  2000-03-10 17:20 Building joe 2.8 with gcc 2.95.2 Jeff
@ 2000-03-10 18:19 ` Chris Faylor
  2000-03-11  2:02   ` Glenn Spell
  2000-03-12 16:22 ` Michael Hirmke
  1 sibling, 1 reply; 10+ messages in thread
From: Chris Faylor @ 2000-03-10 18:19 UTC (permalink / raw)
  To: cygwin

On Fri, Mar 10, 2000 at 04:34:59PM -0800, Jeff wrote:
>Ok.  Well, the prototype from stat.h
>
>int     _EXFUN(mkdir,( const char *_path, mode_t __mode ));
>
>appears to take two arguments, and the relevant lines in dir c
>
>int mkdir(s)
>char *s;
> {
>
>Has only one.  I don't know if this is the problem, but I know that joe
>built just fine with the compiler that originally came with Cygwin 20.1
>(egcs-2.91.57, if one is to believe the directory name).  I didn't keep
>that build of joe because it was unstable and did some quirky things; I
>was hoping to get better results with a later CYGWIN1.DLL and gcc.  Any
>help greatly appreciated.

mkdir takes two arguments on UNIX.  That's how it works.  I'm not sure
what is happening in joe but, usually, something like a mkdir() function
is only compiled in when there is no corresponding function in the C
library, although, I don't know how there could possibly be a workaround
for a missing mkdir.

You need to examine the source more thoroughly and figure out what is
going on.  This would be a problem on nearly any UNIX system that it was
compiled on, too.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Building joe 2.8 with gcc 2.95.2
  2000-03-10 18:19 ` Chris Faylor
@ 2000-03-11  2:02   ` Glenn Spell
  0 siblings, 0 replies; 10+ messages in thread
From: Glenn Spell @ 2000-03-11  2:02 UTC (permalink / raw)
  To: cygwin

On 10 Mar 2000 around 9:18PM (-0500) Chris Faylor wrote:

> On Fri, Mar 10, 2000 at 04:34:59PM -0800, Jeff wrote:
>
> > I don't know if this is the problem, but I know that joe built
> > just fine with the compiler that originally came with Cygwin 20.1
>
> mkdir takes two arguments on UNIX.  That's how it works.
>
> You need to examine the source more thoroughly and figure out what
> is going on.

joe's configure program looks for

  /usr/include/dirent.h

and, in this case, it does not find that file.

-glenn

-- 
  ________________________________________      _       _____
 )                                        )_ _ (__\____o /_/_ |
 )    Glenn Spell <glenn@gs.fay.nc.us>    )     >-----._/_/__]>
 )________________________________________)               `0  |

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Building joe 2.8 with gcc 2.95.2
  2000-03-10 17:20 Building joe 2.8 with gcc 2.95.2 Jeff
  2000-03-10 18:19 ` Chris Faylor
@ 2000-03-12 16:22 ` Michael Hirmke
  2000-03-12 16:26   ` Chris Faylor
  1 sibling, 1 reply; 10+ messages in thread
From: Michael Hirmke @ 2000-03-12 16:22 UTC (permalink / raw)
  To: cygwin

Hi Jeff,

[...]
>{04:39pm|12:1} ~>mount
>Device           Directory           Type        Flags
>c:\programs\cygnus\cygwin-b20\etc /etc                user
>textmode
>c:\programs\cygnus\cygwin-b20\usr /usr                user
>textmode
>c:\windows\temp  /tmp                user        textmode
>c:               /                   user        textmode
>a:               /a                  user        textmode
>d:               /cdrom              user        textmode
>
>So now I just use a symlink:
>
>{04:44pm|13:1} ~>cd /
>{04:45pm|14:1} />l bin
>lrw-r--r--   1 administ unknown        59 Mar  9 21:50 bin ->
>/Programs/cygnus/c ygwin-b20/H-i586-cygwin32/bin/
>
>I guess that's ok, but I'm not too very happy about it, and would prefer
>to mount /bin.

It is always a better solution to have only one mount point for one
partition and to solve everything else with links.
I always had and still have problems mounting subdirectories of already
mounted directories. find and a few other tools don't work as expected in
that case.

[...]
>
>Jeff

Bye.
Michael.
-- 
Michael Hirmke           | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX     +49 (911) 557664
90489 Nuernberg          | E-Mail  mailto:mh@mike.franken.de
                         | WWW     http://aquarius.franken.de/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Building joe 2.8 with gcc 2.95.2
  2000-03-12 16:22 ` Michael Hirmke
@ 2000-03-12 16:26   ` Chris Faylor
  2000-03-13 15:01     ` Michael Hirmke
  0 siblings, 1 reply; 10+ messages in thread
From: Chris Faylor @ 2000-03-12 16:26 UTC (permalink / raw)
  To: cygwin

On Mon, Mar 13, 2000 at 01:04:00AM +0200, Michael Hirmke wrote:
>It is always a better solution to have only one mount point for one
>partition and to solve everything else with links.  I always had and
>still have problems mounting subdirectories of already mounted
>directories.  find and a few other tools don't work as expected in that
>case.

Hopefully this is not true of current snapshots.  If it is, it's a pretty
serious bug and I would like to get it fixed.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Building joe 2.8 with gcc 2.95.2
  2000-03-12 16:26   ` Chris Faylor
@ 2000-03-13 15:01     ` Michael Hirmke
  2000-03-13 15:05       ` Chris Faylor
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Hirmke @ 2000-03-13 15:01 UTC (permalink / raw)
  To: cygwin

Hi Chris,

>On Mon, Mar 13, 2000 at 01:04:00AM +0200, Michael Hirmke wrote:
>>It is always a better solution to have only one mount point for one
>>partition and to solve everything else with links.  I always had and
>>still have problems mounting subdirectories of already mounted
>>directories.  find and a few other tools don't work as expected in that
>>case.
>
>Hopefully this is not true of current snapshots.  If it is, it's a pretty
>serious bug and I would like to get it fixed.

Uhm, I use cygwin1.dll with build date 2000-01-010 15:23:40.

>
>cgf

Bye.
Michael.
-- 
Michael Hirmke           | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX     +49 (911) 557664
90489 Nuernberg          | E-Mail  mailto:mh@mike.franken.de
                         | WWW     http://aquarius.franken.de/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Building joe 2.8 with gcc 2.95.2
  2000-03-13 15:01     ` Michael Hirmke
@ 2000-03-13 15:05       ` Chris Faylor
  2000-03-13 15:34         ` Michael Hirmke
  0 siblings, 1 reply; 10+ messages in thread
From: Chris Faylor @ 2000-03-13 15:05 UTC (permalink / raw)
  To: cygwin

On Mon, Mar 13, 2000 at 11:47:00PM +0200, Michael Hirmke wrote:
>>On Mon, Mar 13, 2000 at 01:04:00AM +0200, Michael Hirmke wrote:
>>>It is always a better solution to have only one mount point for one
>>>partition and to solve everything else with links.  I always had and
>>>still have problems mounting subdirectories of already mounted
>>>directories.  find and a few other tools don't work as expected in that
>>>case.
>>
>>Hopefully this is not true of current snapshots.  If it is, it's a pretty
>>serious bug and I would like to get it fixed.
>
>Uhm, I use cygwin1.dll with build date 2000-01-010 15:23:40.

Would you care to provide a specific example of the cygwin breakage?

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Building joe 2.8 with gcc 2.95.2
  2000-03-13 15:05       ` Chris Faylor
@ 2000-03-13 15:34         ` Michael Hirmke
  2000-03-13 17:40           ` Chris Faylor
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Hirmke @ 2000-03-13 15:34 UTC (permalink / raw)
  To: cygwin

Hi Chris,

[...]
>>
>>Uhm, I use cygwin1.dll with build date 2000-01-010 15:23:40.
>
>Would you care to provide a specific example of the cygwin breakage?

I did so three times, but no one seems to care or even have
the same problems.
One example:

------------------------< snip snip snip >-----------------------------
Date :       Fr 05.03.99, 00:06
Message-ID : 7CGnc84KpfB@mike.franken.de
----------------------------------------------------------------------
Hi Earnie,

[...]
>> To avoid problems, you shouldn't mount directories from the same
>> partition, if it isn't absolutely nescessary.
[...]
>
>Why do you give this warning?  I don't have problems with have more
>than one mount on the same device.

I had trouble with the find command giving "no such file or directory"
messages, if I have more than one mount from the same partition.
Others reported this behaviour, too, and confirmed, that it went
away, when they used links instead of mounts.
Here are my messages regarding the find problem:

------------------------< snip snip snip >-----------------------------
Hi *,

anyone able to tell me, why this happens with find:

MIKE-[/usr]_$ls -l
total 0
drwxr-xr-x   6 544      DomAdmin        0 Dec  7 22:43 cygwin-b20/
drwxr-xr-x   2 544      DomAdmin        0 Dec  7 22:57 info/
drwxr-xr-x  10 544      DomAdmin        0 Dec  6 01:25 local/
drwxr-xr-x   6 544      DomAdmin        0 Dec  7 22:58 man/
drwxr-xr-x   3 544      DomAdmin        0 Dec  6 01:27 spool/
MIKE-[/usr]_$find . -name "frcode"
find: ./cygwin-b20/H-i586-cygwin32/i586-cygwin32: No such file or directory
find: ./cygwin-b20/H-i586-cygwin32/lib: No such file or directory
find: ./cygwin-b20/H-i586-cygwin32/libexec: No such file or directory
find: ./cygwin-b20/include: No such file or directory
find: ./cygwin-b20/share: No such file or directory
find: ./cygwin-b20/Uninst.isu: No such file or directory
find: ./info: No such file or directory
find: ./local: No such file or directory
find: ./man: No such file or directory
find: ./spool: No such file or directory


Why does find say, "No such ..." ?
Btw. this happens with the original B20.1 .dll and also with Corinna's
tape aware library.
------------------------< snip snip snip >-----------------------------
Hi,

I could solve the problem with find, I reported here recently.
At least I found a work around for me.
Perhaps you can take it as a bug report, too ?!?

It was a problem with my mount table.
I had a mount table like this:

C:                                     /                native  text=binary
c:\Entw\Perl                           /Programme/Perl  native  text=binary
c:\usr\cygwin-b20\H-i586-cygwin32\bin  /bin             native  text=binary
d:                                     /d               native  text=binary
\\.\tape0                              /dev/nst0        native  text=binary
\\.\tape0                              /dev/st0         native  text=binary
e:                                     /e               native  text=binary
c:\usr\local\etc                       /etc             native  text=binary
z:                                     /home            native  text=binary
d:\var                                 /var             native  text=binary


As you can see, besides the necessary mount for c: -> / there are two
other mounts for directories on the same drive - 
c:\Entw\Perl and c:\usr\cygwin-b20\H-i586-cygwin32\bin !
I replaced them with symbolic links and everything started to work as
expected.
So I suppose, Cygwin gets confused, when it has to handle more than one
mount for the the same partition or the partition's directories.

Any comments on this ?
------------------------< snip snip snip >-----------------------------

>
>cgf

Bye.
Michael.
-- 
Michael Hirmke           | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX     +49 (911) 557664
90489 Nuernberg          | E-Mail  mailto:mh@mike.franken.de
                         | WWW     http://aquarius.franken.de/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Building joe 2.8 with gcc 2.95.2
  2000-03-13 15:34         ` Michael Hirmke
@ 2000-03-13 17:40           ` Chris Faylor
  2000-03-14 13:06             ` Michael Hirmke
  0 siblings, 1 reply; 10+ messages in thread
From: Chris Faylor @ 2000-03-13 17:40 UTC (permalink / raw)
  To: cygwin

Ok.  I duplicated this.
I'm sorry that I missed it the first time.  I'll take a look
and see what I can do to fix it.

Thanks for the pointer to the test case.

cgf

On Tue, Mar 14, 2000 at 12:33:00AM +0200, Michael Hirmke wrote:
>anyone able to tell me, why this happens with find:
>
>MIKE-[/usr]_$ls -l
>total 0
>drwxr-xr-x   6 544      DomAdmin        0 Dec  7 22:43 cygwin-b20/
>drwxr-xr-x   2 544      DomAdmin        0 Dec  7 22:57 info/
>drwxr-xr-x  10 544      DomAdmin        0 Dec  6 01:25 local/
>drwxr-xr-x   6 544      DomAdmin        0 Dec  7 22:58 man/
>drwxr-xr-x   3 544      DomAdmin        0 Dec  6 01:27 spool/
>MIKE-[/usr]_$find . -name "frcode"
>find: ./cygwin-b20/H-i586-cygwin32/i586-cygwin32: No such file or directory
>find: ./cygwin-b20/H-i586-cygwin32/lib: No such file or directory
>find: ./cygwin-b20/H-i586-cygwin32/libexec: No such file or directory
>find: ./cygwin-b20/include: No such file or directory
>find: ./cygwin-b20/share: No such file or directory
>find: ./cygwin-b20/Uninst.isu: No such file or directory
>find: ./info: No such file or directory
>find: ./local: No such file or directory
>find: ./man: No such file or directory
>find: ./spool: No such file or directory
>
>
>Why does find say, "No such ..." ?
>Btw. this happens with the original B20.1 .dll and also with Corinna's
>tape aware library.
>------------------------< snip snip snip >-----------------------------
>Hi,
>
>I could solve the problem with find, I reported here recently.
>At least I found a work around for me.
>Perhaps you can take it as a bug report, too ?!?
>
>It was a problem with my mount table.
>I had a mount table like this:
>
>C:                                     /                native  text=binary
>c:\Entw\Perl                           /Programme/Perl  native  text=binary
>c:\usr\cygwin-b20\H-i586-cygwin32\bin  /bin             native  text=binary
>d:                                     /d               native  text=binary
>\\.\tape0                              /dev/nst0        native  text=binary
>\\.\tape0                              /dev/st0         native  text=binary
>e:                                     /e               native  text=binary
>c:\usr\local\etc                       /etc             native  text=binary
>z:                                     /home            native  text=binary
>d:\var                                 /var             native  text=binary
>
>
>As you can see, besides the necessary mount for c: -> / there are two
>other mounts for directories on the same drive - 
>c:\Entw\Perl and c:\usr\cygwin-b20\H-i586-cygwin32\bin !
>I replaced them with symbolic links and everything started to work as
>expected.
>So I suppose, Cygwin gets confused, when it has to handle more than one
>mount for the the same partition or the partition's directories.
>
>Any comments on this ?
>------------------------< snip snip snip >-----------------------------

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Building joe 2.8 with gcc 2.95.2
  2000-03-13 17:40           ` Chris Faylor
@ 2000-03-14 13:06             ` Michael Hirmke
  0 siblings, 0 replies; 10+ messages in thread
From: Michael Hirmke @ 2000-03-14 13:06 UTC (permalink / raw)
  To: cygwin

Hi Chris,

>Ok.  I duplicated this.

Just thought, I'm the only one ...

>I'm sorry that I missed it the first time.  I'll take a look
>and see what I can do to fix it.

Great!

>
>Thanks for the pointer to the test case.

You're welcome.

>
>cgf

Bye.
Michael.
-- 
Michael Hirmke           | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX     +49 (911) 557664
90489 Nuernberg          | E-Mail  mailto:mh@mike.franken.de
                         | WWW     http://aquarius.franken.de/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2000-03-14 13:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-10 17:20 Building joe 2.8 with gcc 2.95.2 Jeff
2000-03-10 18:19 ` Chris Faylor
2000-03-11  2:02   ` Glenn Spell
2000-03-12 16:22 ` Michael Hirmke
2000-03-12 16:26   ` Chris Faylor
2000-03-13 15:01     ` Michael Hirmke
2000-03-13 15:05       ` Chris Faylor
2000-03-13 15:34         ` Michael Hirmke
2000-03-13 17:40           ` Chris Faylor
2000-03-14 13:06             ` Michael Hirmke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).