zsh-users
 help / color / mirror / code / Atom feed
* Problem compiling on Sun SPARC 5
@ 2000-01-31 21:57 Ken Moorley
  2000-01-31 22:40 ` Stefan Berglund
  2000-02-01 11:21 ` Alexandre Duret-Lutz
  0 siblings, 2 replies; 3+ messages in thread
From: Ken Moorley @ 2000-01-31 21:57 UTC (permalink / raw)
  To: zsh Users

Can anyone help with the following compile error:-

Solaris 2.6 on SPARCstation 5

gcc version 2.7.2.3

gcc -c -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -Wall 
-Wno-implicit -Wmissing-prototypes -O2  -o builtin.o builtin.c
In file included from /usr/include/sys/wait.h:24,
                 from system.h:232,
                 from zsh.mdh:6,
                 from builtin.c:30:
/usr/include/sys/resource.h:148: warning: `struct rlimit64' declared inside
parameter list
/usr/include/sys/resource.h:148: warning: its scope is only this definition
or declaration,
/usr/include/sys/resource.h:148: warning: which is probably not what you
want.
/usr/include/sys/resource.h:149: warning: `struct rlimit64' declared inside
parameter list
builtin.c: In function `bin_cd':
builtin.c:714: invalid operands to binary !=
builtin.c: In function `bin_fc':
builtin.c:1271: warning: assignment makes pointer from integer without a
cast
builtin.c: In function `bin_print':
builtin.c:2735: warning: assignment makes pointer from integer without a
cast
*** Error code 1
make: Fatal error: Command failed for target `builtin.o'
Current working directory /export/home/ken/src/zsh/zsh-3.1.6/Src
*** Error code 1
make: Fatal error: Command failed for target `modobjs'
Current working directory /export/home/ken/src/zsh/zsh-3.1.6/Src
*** Error code 1
make: Fatal error: Command failed for target `all'



Regards,

Ken Moorley
Computer Management Services
Tel: 02 9488 5759
Fax: 02 9488 5770
Email: kmoorley@cms.aust.com


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

* Re: Problem compiling on Sun SPARC 5
  2000-01-31 21:57 Problem compiling on Sun SPARC 5 Ken Moorley
@ 2000-01-31 22:40 ` Stefan Berglund
  2000-02-01 11:21 ` Alexandre Duret-Lutz
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Berglund @ 2000-01-31 22:40 UTC (permalink / raw)
  To: zsh Users

On Tue, Feb 01, 2000 at 08:57:22AM +1100, Ken Moorley wrote:
> Can anyone help with the following compile error:-
> 
> Solaris 2.6 on SPARCstation 5
> 
> gcc version 2.7.2.3

A tad old...
These problems _might_ come from that the compiler is built with a
older version of the OS. I have seen strange things with old gcc and
newer versions of Solaris than it was built with.

gcc is up at version 2.95.2 so it is time to upgrade anyway ;)
If you don't want to build from source visit www.sunfreeware.com and
grab a prebuilt solaris-package.

> gcc -c -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -Wall 
> -Wno-implicit -Wmissing-prototypes -O2  -o builtin.o builtin.c
> In file included from /usr/include/sys/wait.h:24,
>                  from system.h:232,
>                  from zsh.mdh:6,
>                  from builtin.c:30:
> /usr/include/sys/resource.h:148: warning: `struct rlimit64' declared inside
> parameter list
> /usr/include/sys/resource.h:148: warning: its scope is only this definition
> or declaration,
> /usr/include/sys/resource.h:148: warning: which is probably not what you
> want.
> /usr/include/sys/resource.h:149: warning: `struct rlimit64' declared inside
> parameter list

I looked at this include file and I don't see any problems with it
unless struct rlimit64 is never declared. That might happen if
_LARGEFILE64_SOURCE isn't defined as it should be and that
_FILE_OFFSET_BITS is defined to 64.
If this is the case the first encounter of struct rlimit64 is inside
the prototypes at line 148 and 149 which makes the warnings 
understandable.
This is probably not your real problem anyway.

> builtin.c: In function `bin_cd':
> builtin.c:714: invalid operands to binary !=

This is where it chokes, the rest is just warnings. It complains about
that != haven't got valid operands, that is something that returns a
value. This implies a bug/typo in the source, but I find that unlikely
as most people here is probably compiling the same sources with gcc so
it should have surfaced earlier.
Look at line 714 in builtin.c and see if you can see what it's trying
to do.
BTW. which version did you try to compile? 

-- 
Stefan Berglund                       | sbl@dd.chalmers.se
System Administrator @dd.chalmers.se  | Tel: +46 31 772 32 43
Chalmers University of Technology, Engineering Physics
------------------------------------
Life - the ultimate practical joke |   pgp key available from keyservers


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

* Re: Problem compiling on Sun SPARC 5
  2000-01-31 21:57 Problem compiling on Sun SPARC 5 Ken Moorley
  2000-01-31 22:40 ` Stefan Berglund
@ 2000-02-01 11:21 ` Alexandre Duret-Lutz
  1 sibling, 0 replies; 3+ messages in thread
From: Alexandre Duret-Lutz @ 2000-02-01 11:21 UTC (permalink / raw)
  To: Ken Moorley; +Cc: zsh Users

>>> "Ken" == Ken Moorley <kmoorley@cms.aust.com> writes:

 Ken> Can anyone help with the following compile error:-
 Ken> Solaris 2.6 on SPARCstation 5

[...]

As a workaround you may want to try to ./configure with --disable-lfs as
said in http://www.zsh.org/cgi-bin/mla/redirect?USERNUMBER=2706

BTW, before chirstmas I compiled zsh on Solaris 2.7 (with
egcs-1.1.2 if it does matter) without such a problem.

-- 
Alexandre Duret-Lutz


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

end of thread, other threads:[~2000-02-01 11:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-31 21:57 Problem compiling on Sun SPARC 5 Ken Moorley
2000-01-31 22:40 ` Stefan Berglund
2000-02-01 11:21 ` Alexandre Duret-Lutz

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