[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Why doesn't ccc like this ?



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []