Emacs 19.34 compile problem: getpagesize

Emacs 19.34 compile problem: getpagesize

Post by Kirill Sapelk » Sun, 04 Apr 1999 04:00:00



Emacs 19.34 fails to compile, yeilding the error message below.

This is on suse 6.0, egcs 1.1.1, linux kernel 2.0.36.

This happens if configured with-x or without x.

Thanks for any help.

Kirill

gcc -c  -Demacs -DHAVE_CONFIG_H -DUSE_LUCID  -I. -I/usr/src/emacs-19.34/src   -D_BSD_SOURCE    -I/usr/X11R6/include      -O  gmalloc.c
gmalloc.c:1615: conflicting types for `__getpagesize'
/usr/include/unistd.h:741: previous declaration of `__getpagesize'
make[1]: *** [gmalloc.o] Error 1
make[1]: Leaving directory `/usr/src/emacs-19.34/src'
make: *** [src] Error 2
kirill-root|/usr/src/emacs-19.34
--

Kirill Sapelkin

 
 
 

Emacs 19.34 compile problem: getpagesize

Post by Wolfram Gloge » Mon, 05 Apr 1999 05:00:00



> Emacs 19.34 fails to compile, yeilding the error message below.
> gcc -c  -Demacs -DHAVE_CONFIG_H -DUSE_LUCID  -I. -I/usr/src/emacs-19.34/src   -D_BSD_SOURCE    -I/usr/X11R6/include      -O  gmalloc.c
> gmalloc.c:1615: conflicting types for `__getpagesize'
> /usr/include/unistd.h:741: previous declaration of `__getpagesize'

Do you really need Emacs-19 ?  Emacs 20 should compile out of the box,
and you should use the system malloc (configure --without-gmalloc or
something like that).

If you really want to compile Emacs 19 now, try to simply remove
the getpagesize() declaration in gmalloc.c

Regards,
Wolfram.

 
 
 

1. Problems compiling emacs 19.34 on Solaris 2.6

hi, i'm trying to compile emacs on Solaris 2.6 (having never been
happy with "package" releases)

anyway, following the directions included with the package, i ran the
configure script with these options

# ./configure sparc-sun-solaris2.6 --with-gcc --with-x=no

and everything went fine. the makefile was sucessfully built. the next
step should be 'make', but this is where things fail. the output is
below. has anyone figured out why this doesn't work?

# /usr/ccs/bin/make
Producing `src/paths.h' from `src/paths.in'.
src/paths.h is unchanged
cd lib-src; make all  \
  CC='gcc' CFLAGS='-g -O' CPPFLAGS='' \
  LDFLAGS='' MAKE='make'
gcc -DHAVE_CONFIG_H    -I. -I../src -I/downloads/emacs-19.34/lib-src
-I/downloads/emacs-19.34/lib-src/../src   -g -O
/downloads/emacs-19.34/lib-src/profile.c -lsocket -lnsl -lelf -lkvm -o
profile
/downloads/emacs-19.34/lib-src/profile.c: In function `gettimeofday':
/downloads/emacs-19.34/lib-src/profile.c:71: argument `tzp' doesn't
match prototype
/usr/include/sys/time.h:389: prototype declaration
*** Error code 1
make: Fatal error: Command failed for target `profile'
Current working directory /downloads/emacs-19.34/lib-src
*** Error code 1
make: Fatal error: Command failed for target `lib-src'

--

( =--
 Ben                               |     :Speed:

 http://www.skidmore.edu/~brunning | .FlyingSaucers.
 - How to screw with a Macintosh: www.machacks.com -
                                                --= )

--

( =--
 Ben                               |     :Speed:

 http://www.skidmore.edu/~brunning | .FlyingSaucers.
 - How to screw with a Macintosh: www.machacks.com -
                                                --= )

2. iostat numbers

3. Emacs 19.34 problems compiling in Linux

4. SCSI error : Running low on SCSI DMA buffers

5. compiling emacs 19.34 on glibc2 Linux machines

6. jumpstart to external hard drive

7. RedHat's Emacs 19.34: h_errno_ problem

8. drive geometry changed kernel 1.1.59 => 1.2.0

9. A problem installing emacs 19.34

10. networking problem with emacs 19.34, RH 4.2, AFS

11. ssh/emacs 19.34 on Solaris/XF863.2A combo kills X server

12. Emacs 19.34

13. Emacs 19.34 on linux 2.2.15