From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 14646 invoked from network); 21 Dec 1999 21:41:46 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 21 Dec 1999 21:41:46 -0000 Received: from voodoo.alphalinux.org (168-wn_pm3-3.wn.net [206.190.210.168]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA31266 for ; Tue, 21 Dec 1999 16:41:45 -0500 Received: from localhost (ppetrakis@localhost) by voodoo.alphalinux.org (8.9.3/8.9.3) with ESMTP id QAA28818 for ; Tue, 21 Dec 1999 16:41:41 -0500 Date: Tue, 21 Dec 1999 16:41:40 -0500 (EST) From: To: axp-list@redhat.com Subject: Why doesn't ccc like this ? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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!!" " Who the hell are you!? Name's Ash Housewares..."