zsh-workers
 help / color / mirror / code / Atom feed
* Building yodl on OS X 10.3.9?
@ 2009-04-15 16:55 Jesse W
  2009-04-15 17:01 ` Andrey Borzenkov
  0 siblings, 1 reply; 5+ messages in thread
From: Jesse W @ 2009-04-15 16:55 UTC (permalink / raw)
  To: zsh-workers

Can anyone give me some further pointers out how to go about building 
yodl?  I'm on OSX 10.3.9, with an up-to-date Fink installation.  I 
downloaded the copy of yodl available on the zsh site (1.31.18), and 
tried to follow the instructions -- but it breaks in a way I'm having 
trouble understanding.

I heard rumors that it needs an additional, unusual build system -- but 
it's not clear to me 1) what the name of the system is, or 2) where I 
can get it.

According to the INSTALL.txt file, all I need are standard tools, and I 
should just do the standard configure, make, make install dance...

The INSTALL.txt file refers to "configure", not "./configure", but I 
presume that's a typo.  It also makes mention of a script called 
"bin/set-yo.sh", which I'm leary of running as it seems from reading it 
that it writes outside the main build directory (specifically in ~/usr, 
of all places).

When I just run ./configure, I get the following output:

loading cache ./config.cache
checking Package... YODL
checking for stepmake... ./stepmake  (${prefix}/share/stepmake not 
found)
checking host system type... configure: error: can not guess host type; 
you must specify one

If I follow instructions and run "./configure --host=ppc" it seems to 
work (full output below), but then fails when I run make, with this 
command reporting fatal errors:

  gcc -c    -DHAVE_CONFIG_H  -I../.. -Iinclude -Iout -I../.. -I. 
-I../../src/lib -Iout -g    -o out/closefile.o closefile.c
In file included from closefile.c:4:
/usr/include/stdlib.h:136: error: conflicting types for `free'
lib.h:20: error: previous declaration of `free'
/usr/include/stdlib.h:140: error: conflicting types for `malloc'
lib.h:21: error: previous declaration of `malloc'
/usr/include/stdlib.h:147: error: conflicting types for `realloc'
lib.h:22: error: previous declaration of `realloc'

I'd be very grateful for any pointers about how to fix this, or even 
just what to look at next.

Thanks for your attention,

	Jesse Weinstein



------------------
Full "./configure --host=ppc" output:
-----
loading cache ./config.cache
checking Package... YODL
checking for stepmake... ./stepmake  (${prefix}/share/stepmake not 
found)
checking host system type... powerpc-unknown-none
checking for gmake... (cached) make
checking for find... (cached) find
checking for tar... (cached) tar
checking for bash... (cached) /bin/sh
checking for python... (cached) /sw/bin/python
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for malloc.h... (cached) no
checking for bison... (cached) bison -y
checking for bison... (cached) bison
checking for flex... (cached) flex
./configure: line 1840: test: too many arguments
checking for ar... (cached) ar
checking for ranlib... (cached) ranlib
checking language... English
checking for gettext in -lintl... (cached) no
checking for gettext... (cached) no
checking for groff... (cached) groff
checking for troff... (cached) troff
checking for tbl... (cached) tbl
checking for snprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for makeinfo... (cached) makeinfo
checking for basename... (cached) yes
checking for dirname... (cached) yes
creating ./config.status
creating config.make
creating config.h
config.h is unchanged
configuring in stepmake
running /bin/sh ./configure  --host=ppc --cache-file=.././config.cache 
--srcdir=.
loading cache .././config.cache
checking Package... Stepmake package!
checking host system type... powerpc-unknown-none
checking for gmake... (cached) make
checking for find... (cached) find
checking for tar... (cached) tar
checking for bash... (cached) /bin/sh
checking for python... (cached) /sw/bin/python
checking language... English
checking for makeinfo... (cached) makeinfo
creating ./config.status
creating config.make
creating config.hh
config.hh is unchanged

---------------------------
Full "make" output:
-----
stepmake/stepmake/generic-targets.make:166: out/dummy.dep: No such file 
or directory
mkdir out
mkdir: cannot create directory `out': File exists
make: [out/dummy.dep] Error 1 (ignored)
touch out/dummy.dep
make --no-builtin-rules PACKAGE=YODL -C make all &&  make 
--no-builtin-rules PACKAGE=YODL -C src all &&  make --no-builtin-rules 
PACKAGE=YODL -C scripts all &&  make --no-builtin-rules PACKAGE=YODL -C 
bin all &&  make --no-builtin-rules PACKAGE=YODL -C macros all &&  make 
--no-builtin-rules PACKAGE=YODL -C debian all &&  make 
--no-builtin-rules PACKAGE=YODL -C Documentation all &&  make 
--no-builtin-rules PACKAGE=YODL -C hsearch all &&  make 
--no-builtin-rules PACKAGE=YODL -C ./stepmake all && true
../stepmake/stepmake/generic-targets.make:166: out/dummy.dep: No such 
file or directory
mkdir out
mkdir: cannot create directory `out': File exists
make[1]: [out/dummy.dep] Error 1 (ignored)
touch out/dummy.dep
true
../stepmake/stepmake/generic-targets.make:166: out/dummy.dep: No such 
file or directory
mkdir out
mkdir: cannot create directory `out': File exists
make[1]: [out/dummy.dep] Error 1 (ignored)
touch out/dummy.dep
make PACKAGE=YODL -C lib all &&  make PACKAGE=YODL -C yodl all &&  make 
PACKAGE=YODL -C yodl2html-post all &&  make PACKAGE=YODL -C 
yodlfixlabels all && true
../../stepmake/stepmake/generic-targets.make:166: out/dummy.dep: No 
such file or directory
mkdir out
mkdir: cannot create directory `out': File exists
make[2]: [out/dummy.dep] Error 1 (ignored)
touch out/dummy.dep
rm -f out/closefile.dep; DEPENDENCIES_OUTPUT="out/closefile.dep 
out/closefile.o" gcc -c    -DHAVE_CONFIG_H  -I../.. -Iinclude -Iout 
-I../.. -I. -I../../src/lib -Iout -g    -o out/closefile.o closefile.c
In file included from closefile.c:4:
/usr/include/stdlib.h:136: error: conflicting types for `free'
lib.h:20: error: previous declaration of `free'
/usr/include/stdlib.h:140: error: conflicting types for `malloc'
lib.h:21: error: previous declaration of `malloc'
/usr/include/stdlib.h:147: error: conflicting types for `realloc'
lib.h:22: error: previous declaration of `realloc'
make[2]: *** [out/closefile.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2


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

* Re: Building yodl on OS X 10.3.9?
  2009-04-15 16:55 Building yodl on OS X 10.3.9? Jesse W
@ 2009-04-15 17:01 ` Andrey Borzenkov
  2009-04-15 17:44   ` Jesse W
  0 siblings, 1 reply; 5+ messages in thread
From: Andrey Borzenkov @ 2009-04-15 17:01 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 1057 bytes --]

On Wednesday 15 of April 2009 20:55:21 Jesse W wrote:
> Can anyone give me some further pointers out how to go about building
> yodl?  I'm on OSX 10.3.9, with an up-to-date Fink installation.  I
> downloaded the copy of yodl available on the zsh site (1.31.18), and
> tried to follow the instructions -- but it breaks in a way I'm having
> trouble understanding.
>
> I heard rumors that it needs an additional, unusual build system --
> but it's not clear to me 1) what the name of the system is, or 2)
> where I can get it.
>

Check zsh-workers archive; I asked the same question but I do not use 
Mac since then (my son said he liked it :) ) so I cannot verify.

yodl_2.13.2.orig.tar.gz from
http://sourceforge.net/projects/yodl/
seems to work. Try

$ perl contrib/build.pl make
$ sudo perl contrib/build.pl install

The latter will install binary and macors into /usr/bin and 
/usr/share/yodl,
man pages into /usr/share/man, and docs into /usr/share/doc/yodl.
Try 'perl contrib/build.pl' for more info, or read INSTALL.txt.



[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: Building yodl on OS X 10.3.9?
  2009-04-15 17:01 ` Andrey Borzenkov
@ 2009-04-15 17:44   ` Jesse W
  2009-04-15 18:24     ` Frank Terbeck
  0 siblings, 1 reply; 5+ messages in thread
From: Jesse W @ 2009-04-15 17:44 UTC (permalink / raw)
  To: zsh-workers

On Apr 15, 2009, at 10:01 AM, Andrey Borzenkov wrote:
> Check zsh-workers archive; I asked the same question but I do not use
> Mac since then (my son said he liked it :) ) so I cannot verify.
Yes, I saw that thread, back in Feb: yodl for Mac OSX Intel?

Unfortunately, I'm not on Intel, I'm on PPC.

I see that Jun T suggested:
> yodl_2.13.2.orig.tar.gz from
> http://sourceforge.net/projects/yodl/
> seems to work. Try
 From reading over the v2 manual, and comparing it to the Doc/Makefile, 
it seemed like yodl v2 was a different enough beast that it wouldn't 
handle the zsh sources -- can someone who is actually using v2 confirm? 
  Otherwise I'll just try it, and see if I can get it working.

Thanks for the extremely quick response,

	Jesse Weinstein


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

* Re: Building yodl on OS X 10.3.9?
  2009-04-15 17:44   ` Jesse W
@ 2009-04-15 18:24     ` Frank Terbeck
  2009-04-15 19:00       ` Jesse W
  0 siblings, 1 reply; 5+ messages in thread
From: Frank Terbeck @ 2009-04-15 18:24 UTC (permalink / raw)
  To: zsh-workers

Jesse W <jessw@netwood.net>:
[...]
> I see that Jun T suggested:
>> yodl_2.13.2.orig.tar.gz from
>> http://sourceforge.net/projects/yodl/
>> seems to work. Try
>
> From reading over the v2 manual, and comparing it to the Doc/Makefile,  
> it seemed like yodl v2 was a different enough beast that it wouldn't  
> handle the zsh sources -- can someone who is actually using v2 confirm?  
> Otherwise I'll just try it, and see if I can get it working.

I'm using yodl version 2.14.1 and it hanndles zsh's docs just fine.

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925


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

* Re: Building yodl on OS X 10.3.9?
  2009-04-15 18:24     ` Frank Terbeck
@ 2009-04-15 19:00       ` Jesse W
  0 siblings, 0 replies; 5+ messages in thread
From: Jesse W @ 2009-04-15 19:00 UTC (permalink / raw)
  To: zsh-workers


On Apr 15, 2009, at 11:24 AM, Frank Terbeck wrote:
> Jesse W <jessw@netwood.net>:
>> handle the zsh sources -- can someone who is actually using v2 
>> confirm?
>> Otherwise I'll just try it, and see if I can get it working.
> I'm using yodl version 2.14.1 and it hanndles zsh's docs just fine.
Thanks, but I managed to get the old version working.

What it took, for reasons I'm not able to understand, was to force 
HAVE_MALLOC_H to 1 (rather than 0 as configure wanted to set it to); 
this stopped it from trying to redefine the malloc functions, and after 
that it built (and handled the zsh docs) just fine. (Although it kept 
complaining it couldn't find malloc.h ...)  I have no idea what 
happened, but now I can test patchs I make to the zsh docs, so that's 
better... ;-)

Thanks for the help, everyone,

Jesse Weinstein


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

end of thread, other threads:[~2009-04-15 18:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-15 16:55 Building yodl on OS X 10.3.9? Jesse W
2009-04-15 17:01 ` Andrey Borzenkov
2009-04-15 17:44   ` Jesse W
2009-04-15 18:24     ` Frank Terbeck
2009-04-15 19:00       ` Jesse W

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).