Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Why doesn't ccc like this ?
@ 1999-12-21 21:41 ppetrakis
  0 siblings, 0 replies; only message in thread
From: ppetrakis @ 1999-12-21 21:41 UTC (permalink / raw)
  To: axp-list

The code in quesiton is from MySQL 3.22.27

ccc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I../include
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O0
-DDBUG_OFF -g -DEXTRA_DBUG  -Dalpha_linux_port -fomit-frame-pointer   -c
isamchk.c
cc: Error: /usr/include/sys/mman.h, line 49: Missing ";". (nosemi)
       __asm__ ("mmap64");
-------^
make[2]: *** [isamchk.o] Error 1

Now if I edit /usr/include/sys/mman.h like so...

extern __ptr_t mmap __P ((__ptr_t __addr, size_t __len, int __prot,
			  int __flags, int __fd, __off_t __offset));
/*       __asm__ ("mmap64"); */

instead of 

extern __ptr_t mmap __P ((__ptr_t __addr, size_t __len, int __prot,
			  int __flags, int __fd, __off_t __offset))
       __asm__ ("mmap64"); 

It will continue to compile and actually build MySQL successfully (along
with solving a few issues I've been having). 

Is there a way around this without having to hack the header file?
Thank you.  

Peter
--
www.alphalinux.org
Peter Petrakis         Warrior/Engineer        ppetrakis@alphalinux.org
"Oh my God! They killed Xena! You bastards!!"
"<BLAM!!> Who the hell are you!? Name's Ash <click clock> Housewares..."


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-12-21 21:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-12-21 21:41 Why doesn't ccc like this ? ppetrakis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox