2.5 emacs-19.30 gettimeofday configure/compile problem

2.5 emacs-19.30 gettimeofday configure/compile problem

Post by ma.. » Tue, 07 May 1996 04:00:00



I can't get emacs-19.30 to "configure" properly on a Sparc 20
running Solaris 2.5.  I think the problem has something to
do with the gettimeofday function because when I run configure
I get the following output line (amongst others):

  checking whether gettimeofday can't accept two arguments... yes

It would seem that configure thinks that gettimeofday can't accept
two arguments.  However, the man page says that gettimeofday takes
two arguments.  Note that this is a change from SOLARIS 2.4, gettimeofday
takes only one argument there.

Running "make install" after the erroneous configure step produces
an error in the compiliation of profile.c as follows:

  gcc -DHAVE_CONFIG_H    -I. -I../src -I/sw/gnu2.x/emacs-19.30/lib-src
  -I/sw/gnu2.x/emacs-19.30/lib-src/../src   -g -O
  /sw/gnu2.x/emacs-19.30/lib-src/profile.c -lsocket -lnsl -lelf      -o profile
  /sw/gnu2.x/emacs-19.30/lib-src/profile.c: In function `reset_watch':
  /sw/gnu2.x/emacs-19.30/lib-src/profile.c:45: too few arguments to function
  `gettimeofday'
  /sw/gnu2.x/emacs-19.30/lib-src/profile.c: In function `get_time':
  /sw/gnu2.x/emacs-19.30/lib-src/profile.c:58: too few arguments to function
  `gettimeofday'
  /sw/gnu2.x/emacs-19.30/lib-src/profile.c: In function `gettimeofday':
  /sw/gnu2.x/emacs-19.30/lib-src/profile.c:70: argument `tzp' doesn't match prototype
  /usr/include/sys/time.h:263: prototype declaration
  make[1]: *** [profile] Error 1
  make[1]: Leaving directory `/sw/gnu2.x/emacs-19.30/lib-src'
  make: *** [lib-src] Error 2

Does anyone have an idea what is wrong?

Mark N.
415-354-5034

 
 
 

1. 2.5.1 emacs-19.30, emacs-19.31

Has anyone built emacs-19.30 or emacs-19.31 on Solaris 2.5.1 using gcc-2.5.6
or gcc-2.7.2?

I configured emacs with the following options:

configure --with-gcc --with-x=no

When I try to install either version of emacs I get the following error:

cd lib-src; make maybe-blessmail  \
  MAKE='make' archlibdir='/usr/local/libexec/emacs/19.30/sparc-sun-solaris2.5.1'
make[1]: Entering directory `/usr/local/tmp/emacs/lib-src'
../src/emacs -batch -l ../lisp/blessmail.el
make[1]: *** [blessmail] Bus Error (core dumped)
make[1]: Leaving directory `/usr/local/tmp/emacs/lib-src'
make: *** [blessmail] Error 2

--

Shift to the right!                  www   : http://www.winternet.com/~tanner
Push down, pop up                    phone : (612)943-8700
BYTE! BYTE! BYTE!                    motto : I program, therefore I am.

2. Wanted programming interface for ...

3. Emacs-19.30 Problem

4. Kernel Building Question

5. patches for emacs-19.30 and ncurses

6. Need Help with Groff

7. emacs-19.30 for SCO Open Server 5

8. query about implementing pty's

9. libc-5.2.16 and emacs-19.29/30

10. emacs-19.30 compilation

11. Compiling EMACS 19.34b For Solaris 2.5

12. Installing emacs-19.22 on solaris 2.5

13. problem with sendmail.c in emacs-19.19 - setuid not doing the trick