zsh-users
 help / color / mirror / code / Atom feed
* problems installing zsh on x86
@ 1997-04-04  8:51 Sweth Chandramouli
  1997-04-04 11:04 ` Chavdar Ivanov
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Sweth Chandramouli @ 1997-04-04  8:51 UTC (permalink / raw)
  To: zsh-users

	i'm trying to install zsh (3.0.2) on a pc running solaris x86; i'm
assuming that the solaris 2.x listing in the MACHINES file covers this
host, meaning someone else has successfully done this... was that my first
mistake?  regardless, when i run ./configure, i get the following results:

>loading cache ./config.cache
>configuring for zsh 3.0.2
>checking host system type... i386-pc-solaris2.5.1
>checking for gcc... no
>checking for cc... cc
>checking whether the C compiler (cc  ) works... no
>configure: error: installation or configuration problem: C compiler cannot
>create executables.

	after looking through configure (my perl knowledge is minimal at
best, so i could be very off here) i have concluded that a) it cannot find
gcc, and b) its attempt to test cc (the next compiler it found) fails, so
it exits.  gcc _is_ on the machine, however, so i'm not sure why it isn't
being found.  also, when it then finds cc, why does the test fail?

	(i realize this is all pretty basic stuff, but i've gone through
all of the FAQs, web pages, etc., and couldn't see anything specifically
about this; i'm guessing that if i had more unix/c experience i'd be able
to figure it out, but until very recently, i was just an end-user at work
who became really used to having zsh on the main server; now my old
sysadmin is gone, before he could install it on the other servers that we
have set up.)

	TIA,
	sweth.



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

* Re: problems installing zsh on x86
  1997-04-04  8:51 problems installing zsh on x86 Sweth Chandramouli
@ 1997-04-04 11:04 ` Chavdar Ivanov
  1997-04-04 13:13   ` Hrvoje Niksic
  1997-04-04 12:55 ` Hrvoje Niksic
  1997-04-10 21:03 ` Juergen A. Erhard
  2 siblings, 1 reply; 10+ messages in thread
From: Chavdar Ivanov @ 1997-04-04 11:04 UTC (permalink / raw)
  To: Sweth Chandramouli; +Cc: zsh-users

On Fri, 4 Apr 1997, Sweth Chandramouli wrote:

> 	i'm trying to install zsh (3.0.2) on a pc running solaris x86; i'm
> assuming that the solaris 2.x listing in the MACHINES file covers this
> host, meaning someone else has successfully done this... was that my first
> mistake?  regardless, when i run ./configure, i get the following results:
> 
> >loading cache ./config.cache
> >configuring for zsh 3.0.2
> >checking host system type... i386-pc-solaris2.5.1
> >checking for gcc... no

If you have gcc, this should be OK; make sure you have it in the path.


> >checking for cc... cc

This is /usr/ucb/cc, which is just a placeholder if you haven't installed
SUNWspro. I use the SunSoft's compiler here ( very fast... ) and it 
works w/o any problem:

brutus% ./configure
/tmp/zsh-3.0-pre4
creating cache ./config.cache
configuring for zsh 3.0-pre4
checking host system type... i386-unknown-solaris2.5.1
checking for gcc... no
checking for cc... cc
checking whether we are using GNU C... no
checking how to run the C preprocessor... cc -E
checking for working const... yes
checking whether cross-compiling... no
checking for cc option to accept ANSI C... 
checking for function prototypes... yes
checking size of long... 4
checking if signed to unsigned casting is broken... no
checking whether make sets ${MAKE}... yes
.....

(this was just the first zsh kit I found nearby to test ). 

> >checking whether the C compiler (cc  ) works... no
> >configure: error: installation or configuration problem: C compiler cannot
> >create executables.
...

Chavdar Ivanov           | Talbot Way, Small Heath Business Park
Delcam UK Limited        | Birmigham B10 0HJ, United Kingdom
Customer Support Dept.   | (+44)121-6831014



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

* Re: problems installing zsh on x86
  1997-04-04  8:51 problems installing zsh on x86 Sweth Chandramouli
  1997-04-04 11:04 ` Chavdar Ivanov
@ 1997-04-04 12:55 ` Hrvoje Niksic
  1997-04-10 21:03 ` Juergen A. Erhard
  2 siblings, 0 replies; 10+ messages in thread
From: Hrvoje Niksic @ 1997-04-04 12:55 UTC (permalink / raw)
  To: Sweth Chandramouli; +Cc: zsh-users

Sweth Chandramouli <sweth@bivwood.com> writes:

> 	after looking through configure (my perl knowledge is minimal at
> best, so i could be very off here)

configure is not written in Perl.

> i have concluded that a) it cannot find gcc, and b) its attempt to
> test cc (the next compiler it found) fails, so it exits.  gcc _is_
> on the machine, however, so i'm not sure why it isn't being found.
> also, when it then finds cc, why does the test fail?

Is gcc in your path?  Can you look at the `config.log' created by
configure to see why gcc is not found.

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
Oh lord won't you buy me a color TV...


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

* Re: problems installing zsh on x86
  1997-04-04 11:04 ` Chavdar Ivanov
@ 1997-04-04 13:13   ` Hrvoje Niksic
  1997-04-04 18:23     ` Stefan Monnier
  0 siblings, 1 reply; 10+ messages in thread
From: Hrvoje Niksic @ 1997-04-04 13:13 UTC (permalink / raw)
  To: Chavdar Ivanov; +Cc: Sweth Chandramouli, zsh-users

Chavdar Ivanov <ci@delcam.com> writes:

> > >checking for cc... cc
> 
> This is /usr/ucb/cc, which is just a placeholder if you haven't
> installed SUNWspro. I use the SunSoft's compiler here ( very
> fast... ) and it works w/o any problem:

Regarding that, I also think that /opt/SUNWspro/bin (or wherever you
hold your SunSoft stuff) should be in the path before /usr/ucb.

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
main(){printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);}


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

* Re: problems installing zsh on x86
  1997-04-04 13:13   ` Hrvoje Niksic
@ 1997-04-04 18:23     ` Stefan Monnier
  0 siblings, 0 replies; 10+ messages in thread
From: Stefan Monnier @ 1997-04-04 18:23 UTC (permalink / raw)
  To: zsh-users

Hrvoje Niksic <hniksic@srce.hr> writes:
> Regarding that, I also think that /opt/SUNWspro/bin (or wherever you
> hold your SunSoft stuff) should be in the path before /usr/ucb.

In general, it seems that Solaris likes you to have /usr/ucb near the end of
your PATH.


        Stefan


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

* Re: problems installing zsh on x86
  1997-04-04  8:51 problems installing zsh on x86 Sweth Chandramouli
  1997-04-04 11:04 ` Chavdar Ivanov
  1997-04-04 12:55 ` Hrvoje Niksic
@ 1997-04-10 21:03 ` Juergen A. Erhard
  1997-04-10 21:39   ` Sweth Chandramouli
  2 siblings, 1 reply; 10+ messages in thread
From: Juergen A. Erhard @ 1997-04-10 21:03 UTC (permalink / raw)
  To: sweth; +Cc: zsh-users

-----BEGIN PGP SIGNED MESSAGE-----

It probably has been covered by someone else... but anyway. I'm
assuming the littlest possible working knowledge of Unix here...

All the others have (rightly) said you gotta make certain gcc is on
your PATH. Test this by just saying 'gcc --version' (that is, type
it... but you knew that, I guess ;-)

If it says anything to the effect that it (the currently running
shell) can't find gcc, then gcc is NOT in your path. Put a line

  PATH=/usr/local/bin:$PATH

in your ~/.profile. (Make sure /usr/local/bin is the directory
containing gcc... if it ain't replace it).

Okay, try again...

Oh, and first do a 'make clean' in the directory zsh's source resides
in (you may try this before doing this PATH dance... I noticed the run
of configure you've given is from cache... I am not an autoconf
expert, but it just MIGHT be the problem... especially if gcc IS on
your PATH already).

Anyway, hope I could help (and nobody beat me to it ;-)

Bye, J

- -- 
Juergen A. Erhard (that ue is actually \"u (TeX) or &uuml; (HTML/SGML))
eMail: jae@laden.ilk.de                             |
snailMail: Belfortstr. 6; 76133 Karlsruhe; GERMANY  |  pros do it for money,
phone: +49 721 27326                                |  amateurs out of love.
WWW: http://members.tripod.com/~Juergen_Erhard/     |

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQEVAwUBM0w4NgIG66LugGzRAQH7sAf/SenhwXhrfHiBLnF2AFl5N4M5cJFmmDLv
0aIua+T3xTXDjfvIW+fxoSLDoQ8ejTWJhkoIJAi698CXSgizKf1XgFBFsgxU3l1h
wDP8V6hDmEOX6Sao8+/rRhBokUG/4vgGu4aeXqPBao0cg9W1pJVGDrBiYOWbeY8E
hbxBcoVVVNrdeQR4atdKfIn8tTIBpkaHvN0aYQPmmvMmch0gpRozDh1WOwhXaoTq
hA7Ck+UQ9ov3m4XLPPx+ncfCvhRo7RvJtKMEhZ6OJzA7KVtbuWNUud8hJAOktGbE
d8HAwMHguka9P1XHxKbGY0POhxA7ZgzrDw3tuwEi2fIsblPcEWm+5Q==
=odRR
-----END PGP SIGNATURE-----


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

* Re: problems installing zsh on x86
  1997-04-10 21:03 ` Juergen A. Erhard
@ 1997-04-10 21:39   ` Sweth Chandramouli
  1997-04-11 14:01     ` Zefram
  0 siblings, 1 reply; 10+ messages in thread
From: Sweth Chandramouli @ 1997-04-10 21:39 UTC (permalink / raw)
  To: zsh-users

	okay, i figured out what my first problem was -- i had just been
lazy.  when i first started, i forgot to set the write permission for the
dir, so configure couldn't create files; rather than set the permission
correctly, i just su'd to root out of habit and tried to run it there --
that's why it couldn't find gcc (because it wasn't in _root_'s path).
	so now i've configured it (i think correctly, but am not sure),
meaning my next hurdle is make.  when i run make, it gets a fair way into
the process, then gives me this error:

make[1]: *** [builtin.o] Error 1
make[1]: Leaving directory `/export/home/users/sweth/zsh/Src'
make: *** [Src] Error 2

	what does this mean?

	TIA,
	sweth.



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

* Re: problems installing zsh on x86
  1997-04-10 21:39   ` Sweth Chandramouli
@ 1997-04-11 14:01     ` Zefram
  1997-04-11 21:06       ` Sweth Chandramouli
  0 siblings, 1 reply; 10+ messages in thread
From: Zefram @ 1997-04-11 14:01 UTC (permalink / raw)
  To: Sweth Chandramouli; +Cc: zsh-users

Sweth Chandramouli wrote:
>make[1]: *** [builtin.o] Error 1
>make[1]: Leaving directory `/export/home/users/sweth/zsh/Src'
>make: *** [Src] Error 2

What was the error message that appeared just before this?

-zefram


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

* Re: problems installing zsh on x86
  1997-04-11 14:01     ` Zefram
@ 1997-04-11 21:06       ` Sweth Chandramouli
  1997-04-11 21:31         ` Zoltan T. Hidvegi
  0 siblings, 1 reply; 10+ messages in thread
From: Sweth Chandramouli @ 1997-04-11 21:06 UTC (permalink / raw)
  To: zsh-users

>Sweth Chandramouli wrote:
>>make[1]: *** [builtin.o] Error 1
>>make[1]: Leaving directory `/export/home/users/sweth/zsh/Src'
>>make: *** [Src] Error 2
>
>What was the error message that appeared just before this?
>
>-zefram

	here is the full transcript of that attempt:

/export/home/users/sweth/zsh: make
cd Src && make CC='gcc' CPPFLAGS='' DEFS='-DHAVE_CONFIG_H' CFLAGS='-Wall
-Wno-im
plicit -Wmissing-prototypes -O2' LDFLAGS='' LIBS='-lnsl  -ltermcap'
prefix='/usr
/local' exec_prefix='/usr/local' bindir='/usr/local/bin'
infodir='/usr/local/inf
o' mandir='/usr/local/man' manext='1'
make[1]: Entering directory `/export/home/users/sweth/zsh/Src'
gcc -c -I.. -I. -I.  -DHAVE_CONFIG_H -Wall -Wno-implicit
-Wmissing-prototypes -O
2 builtin.c
In file included from ./system.h:64, from zsh.h:36, from builtin.c:32:
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:231:
parse err
or before `#'
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h: In
function `
stat':
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:234:
declarati
on for parameter `___buf' but no such parameter
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:233:
declarati
on for parameter `___path' but no such parameter
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:236: argument
`___buf' doesn't match prototype
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:178:
prototype
 declaration
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:236: argument
`___path' doesn't match prototype
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:178:
prototype
 declaration
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h: At top
level:
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:244:
parse err
or before `#'
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h: In
function `
lstat':
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:247:
declarati
on for parameter `___buf' but no such parameter
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:246:
declarati
on for parameter `___path' but no such parameter
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:249: argument
`___buf' doesn't match prototype
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:181:
prototype
 declaration
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:249: argument
`___path' doesn't match prototype
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:181:
prototype
 declaration
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h: At top
level:
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:256:
parse err
or before `#'
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h: In
function `
fstat':
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:259:
declarati
on for parameter `___buf' but no such parameter
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:258:
declarati
on for parameter `___fd' but no such parameter
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:261: argument
`___buf' doesn't match prototype
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:177:
prototype
 declaration
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:261: argument
`___fd' doesn't match prototype
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:177:
prototype
 declaration
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h: At top
level:
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:270:
conflicti
ng types for `mknod'
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:182: previous
declaration of `mknod'
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h: In
function `
mknod':
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:270: parm
type
s given both in parmlist and separately
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:274:
`_mode' u
ndeclared (first use this function)
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:274:
(Each und
eclared identifier is reported only once
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:274: for each
function it appears in.)
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:274:
`_dev' un
declared (first use this function)
make[1]: *** [builtin.o] Error 1
make[1]: Leaving directory `/export/home/users/sweth/zsh/Src'
make: *** [Src] Error 2



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

* Re: problems installing zsh on x86
  1997-04-11 21:06       ` Sweth Chandramouli
@ 1997-04-11 21:31         ` Zoltan T. Hidvegi
  0 siblings, 0 replies; 10+ messages in thread
From: Zoltan T. Hidvegi @ 1997-04-11 21:31 UTC (permalink / raw)
  To: Sweth Chandramouli; +Cc: zsh-users

Sweth Chandramouli wrote:
> In file included from ./system.h:64, from zsh.h:36, from builtin.c:32:
> /usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:231:

You use gcc-2.4.5.  I bet that you installed this on an older Solaris
version, and you did not reinstall gcc after you upgraded the OS.  This
does not work, and you will have problems compiling other programs as well.
Please install the latest gcc.  Alternatively you can try the SUN C
compiler: remove config.cache, and set the CC environment variable to cc
before running configure.

Zoltan


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

end of thread, other threads:[~1997-04-12 10:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-04-04  8:51 problems installing zsh on x86 Sweth Chandramouli
1997-04-04 11:04 ` Chavdar Ivanov
1997-04-04 13:13   ` Hrvoje Niksic
1997-04-04 18:23     ` Stefan Monnier
1997-04-04 12:55 ` Hrvoje Niksic
1997-04-10 21:03 ` Juergen A. Erhard
1997-04-10 21:39   ` Sweth Chandramouli
1997-04-11 14:01     ` Zefram
1997-04-11 21:06       ` Sweth Chandramouli
1997-04-11 21:31         ` Zoltan T. Hidvegi

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