zsh-workers
 help / color / mirror / code / Atom feed
* Re: Somebody with gcc knowledge here? (Was:  termcap moodule problem on Cygwin )
@ 2001-01-31  9:00 Sven Wischnowsky
  2001-01-31  9:47 ` Bart Schaefer
  2001-01-31  9:57 ` Andrej Borsenkow
  0 siblings, 2 replies; 10+ messages in thread
From: Sven Wischnowsky @ 2001-01-31  9:00 UTC (permalink / raw)
  To: zsh-workers


Andrej Borsenkow wrote:

> > > - move termcap (and terminfo) back into main zsh.
> >
> > You could force it to be statically linked by changing the `link' line to
> > test for cygwin in termcap.mdd.  See existing `link=' in terminfo.mdd for
> > how this works.  You can make this depend on a configure test for whether
> > termcap is static.
> >
> 
> Of course, I am idiot. Even more so as I cannot build zsh with static termcap:

So I'm not the only idiot. Good.

This happened to me, too. Somehow the Makefile calls the recursive
`make's twice when collection the module object files to be put into
stamp-modobjs. Since I don't really understand that part of the
Makefile anymore, I just added a `sort -u' in the rule that checks if
the new stamp-modobjs.tmp differs from existing stamp-modobjs. But I'm 
pretty sure this isn't the right way to solve it.

Then I forgot to mention it on the list. Sorry.

So... Zefram? Anyone?

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


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

* Re: Somebody with gcc knowledge here? (Was:  termcap moodule problem on Cygwin )
  2001-01-31  9:00 Somebody with gcc knowledge here? (Was: termcap moodule problem on Cygwin ) Sven Wischnowsky
@ 2001-01-31  9:47 ` Bart Schaefer
  2001-01-31  9:57 ` Andrej Borsenkow
  1 sibling, 0 replies; 10+ messages in thread
From: Bart Schaefer @ 2001-01-31  9:47 UTC (permalink / raw)
  To: zsh-workers

On Jan 31, 10:00am, Sven Wischnowsky wrote:
} Subject: Re: Somebody with gcc knowledge here? (Was:  termcap moodule prob
}
} Somehow the Makefile calls the recursive `make's twice when collection
} the module object files to be put into stamp-modobjs.

I've seen this as well (on linux, where it doesn't actually cause the
build to fail), and spent a little while trying to figure out why it was
happening, but I got lost in the twisty little maze of shell scripts
that create .in files that create makefiles that run shell scripts, and
gave up.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


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

* RE: Somebody with gcc knowledge here? (Was:  termcap moodule problem on Cygwin )
  2001-01-31  9:00 Somebody with gcc knowledge here? (Was: termcap moodule problem on Cygwin ) Sven Wischnowsky
  2001-01-31  9:47 ` Bart Schaefer
@ 2001-01-31  9:57 ` Andrej Borsenkow
  2001-01-31 17:55   ` Zefram
  1 sibling, 1 reply; 10+ messages in thread
From: Andrej Borsenkow @ 2001-01-31  9:57 UTC (permalink / raw)
  To: zsh-workers


> This happened to me, too. Somehow the Makefile calls the recursive
> `make's twice when collection the module object files to be put into
> stamp-modobjs.

Argh ...

Index: Src/mkmakemod.sh
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/mkmakemod.sh,v
retrieving revision 1.5
diff -u -r1.5 mkmakemod.sh
--- Src/mkmakemod.sh    2000/11/26 20:01:03     1.5
+++ Src/mkmakemod.sh    2001/01/31 09:55:19
@@ -132,7 +132,13 @@
            $the_subdir/$lastsub/*) ;;
            $the_subdir/*/*)
                lastsub=`echo $modfile | sed
's,^'$the_subdir'/,,;s,/[^/]*$,,'`
-               all_subdirs="$all_subdirs $lastsub"
+               case "$all_subdirs" in
+                   *" $lastsub"* ) ;;
+                   *" $lastsub "* ) ;;
+                   * )
+                       all_subdirs="$all_subdirs $lastsub"
+                   ;;
+               esac
                ;;
            $the_subdir/*)
                mddname=`echo $modfile | sed 's,^.*/,,;s,\.mdd$,,'`


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

* Re: Somebody with gcc knowledge here? (Was:  termcap moodule problem on Cygwin )
  2001-01-31  9:57 ` Andrej Borsenkow
@ 2001-01-31 17:55   ` Zefram
  2001-02-01  5:55     ` Andrej Borsenkow
  0 siblings, 1 reply; 10+ messages in thread
From: Zefram @ 2001-01-31 17:55 UTC (permalink / raw)
  To: Andrej Borsenkow; +Cc: zsh-workers

Andrej Borsenkow wrote:
>+               case "$all_subdirs" in
>+                   *" $lastsub"* ) ;;
>+                   *" $lastsub "* ) ;;

What you actually want here is

		case "$all_subdirs " in
		    *" $lastsub "* ) ;;

-zefram


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

* RE: Somebody with gcc knowledge here? (Was:  termcap moodule problem on Cygwin )
  2001-01-31 17:55   ` Zefram
@ 2001-02-01  5:55     ` Andrej Borsenkow
  2001-02-01 16:39       ` Bart Schaefer
  2001-02-01 19:23       ` Zefram
  0 siblings, 2 replies; 10+ messages in thread
From: Andrej Borsenkow @ 2001-02-01  5:55 UTC (permalink / raw)
  To: zsh-workers

> 
> 
> Andrej Borsenkow wrote:
> >+               case "$all_subdirs" in
> >+                   *" $lastsub"* ) ;;
> >+                   *" $lastsub "* ) ;;
> 
> What you actually want here is
> 
> 		case "$all_subdirs " in
> 		    *" $lastsub "* ) ;;
> 

I actually wanted is

               case "$all_subdirs" in
                   *" $lastsub" ) ;;
                   *" $lastsub "* ) ;;

to catch the case of just added subdir. It was copy'n'paste problem.

Or do I miss something?

-andrej


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

* Re: Somebody with gcc knowledge here? (Was:  termcap moodule problem on Cygwin )
  2001-02-01  5:55     ` Andrej Borsenkow
@ 2001-02-01 16:39       ` Bart Schaefer
  2001-02-01 16:54         ` Andrej Borsenkow
  2001-02-01 19:23       ` Zefram
  1 sibling, 1 reply; 10+ messages in thread
From: Bart Schaefer @ 2001-02-01 16:39 UTC (permalink / raw)
  To: zsh-workers, Andrej Borsenkow

On Feb 1,  8:55am, Andrej Borsenkow wrote:
} Subject: RE: Somebody with gcc knowledge here? (Was:  termcap moodule prob
}
} > What you actually want here is
} > 
} > 		case "$all_subdirs " in
} > 		    *" $lastsub "* ) ;;
} 
} Or do I miss something?

You miss the significance of whitespace.  Look closely at the `case'
line.  Adding a trailing space there means you can always match a
trailing space in the pattern line, so you only need one pattern.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


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

* RE: Somebody with gcc knowledge here? (Was:  termcap moodule problem on Cygwin )
  2001-02-01 16:39       ` Bart Schaefer
@ 2001-02-01 16:54         ` Andrej Borsenkow
  0 siblings, 0 replies; 10+ messages in thread
From: Andrej Borsenkow @ 2001-02-01 16:54 UTC (permalink / raw)
  To: Bart Schaefer, zsh-workers

> On Feb 1,  8:55am, Andrej Borsenkow wrote:
> } Subject: RE: Somebody with gcc knowledge here? (Was:  termcap moodule prob
> }
> } > What you actually want here is
> } >
> } > 		case "$all_subdirs " in
> } > 		    *" $lastsub "* ) ;;
> }
> } Or do I miss something?
>
> You miss the significance of whitespace.  Look closely at the `case'
> line.  Adding a trailing space there means you can always match a
> trailing space in the pattern line, so you only need one pattern.
>
> --

Erm. This won't match "bla-bla-bla $lastsub" case (when $lastsub is the last
one). You are right, trailing space is significant. For this reason two
patterns - *" $lastsub" and *" $lastsub "*.

Or I must go home today :-)

-andrej


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

* Re: Somebody with gcc knowledge here? (Was:  termcap moodule problem on Cygwin )
  2001-02-01  5:55     ` Andrej Borsenkow
  2001-02-01 16:39       ` Bart Schaefer
@ 2001-02-01 19:23       ` Zefram
  2001-02-02  8:42         ` Andrej Borsenkow
  1 sibling, 1 reply; 10+ messages in thread
From: Zefram @ 2001-02-01 19:23 UTC (permalink / raw)
  To: Andrej Borsenkow; +Cc: zsh-workers

Andrej Borsenkow wrote:
>I actually wanted is
...
>Or do I miss something?

Your new version does the same as mine, but mine is shorter.  That's all.

-zefram


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

* RE: Somebody with gcc knowledge here? (Was:  termcap moodule problem on Cygwin )
  2001-02-01 19:23       ` Zefram
@ 2001-02-02  8:42         ` Andrej Borsenkow
  0 siblings, 0 replies; 10+ messages in thread
From: Andrej Borsenkow @ 2001-02-02  8:42 UTC (permalink / raw)
  To: zsh-workers

> Cc: zsh-workers@sunsite.auc.dk
                                        ^^^^^^
Should not we change this?

>
> Your new version does the same as mine, but mine is shorter.  That's all.
>

Sorry, simply did not spot the correct blank. Not in the right mood yesterday.

-andrej


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

* Somebody with gcc knowledge here? (Was:  termcap moodule problem on Cygwin )
  2001-01-30 10:34 termcap moodule problem on Cygwin Peter Stephenson
@ 2001-01-31  8:50 ` Andrej Borsenkow
  0 siblings, 0 replies; 10+ messages in thread
From: Andrej Borsenkow @ 2001-01-31  8:50 UTC (permalink / raw)
  To: Zsh hackers list


> > - move termcap (and terminfo) back into main zsh.
>
> You could force it to be statically linked by changing the `link' line to
> test for cygwin in termcap.mdd.  See existing `link=' in terminfo.mdd for
> how this works.  You can make this depend on a configure test for whether
> termcap is static.
>

Of course, I am idiot. Even more so as I cannot build zsh with static termcap:

dllwrap -g  --export-all-symbols -o libzsh-3.1.9-dev-8.dll  `cat
stamp-modobjs`
-ltermcap -lm -lc
dllwrap: no export definition file provided
dllwrap: creating one, but that may not be what you want
Modules/termcap.o(.text+0x318): multiple definition of `setup_zshQstermcap'
Modules/termcap.o(.text+0x318): first defined here
Modules/termcap.o(.text+0x324): multiple definition of `boot_zshQstermcap'
Modules/termcap.o(.text+0x324): first defined here
Modules/termcap.o(.text+0x354): multiple definition of `cleanup_zshQstermcap'
Modules/termcap.o(.text+0x354): first defined here
Modules/termcap.o(.text+0x37c): multiple definition of `finish_zshQstermcap'
Modules/termcap.o(.text+0x37c): first defined here
collect2: ld returned 1 exit status

This happens with both dllwrap and gcc; I do not understand the error message
at all.

It does not happen when building static zsh.

Anybody have some insight on what these errors mean?

-andrej


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

end of thread, other threads:[~2001-02-02  8:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-31  9:00 Somebody with gcc knowledge here? (Was: termcap moodule problem on Cygwin ) Sven Wischnowsky
2001-01-31  9:47 ` Bart Schaefer
2001-01-31  9:57 ` Andrej Borsenkow
2001-01-31 17:55   ` Zefram
2001-02-01  5:55     ` Andrej Borsenkow
2001-02-01 16:39       ` Bart Schaefer
2001-02-01 16:54         ` Andrej Borsenkow
2001-02-01 19:23       ` Zefram
2001-02-02  8:42         ` Andrej Borsenkow
  -- strict thread matches above, loose matches on Subject: below --
2001-01-30 10:34 termcap moodule problem on Cygwin Peter Stephenson
2001-01-31  8:50 ` Somebody with gcc knowledge here? (Was: termcap moodule problem on Cygwin ) Andrej Borsenkow

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).