From: <ppetrakis@firestorm.tzo.org>
To: axp-list@redhat.com
Subject: Why doesn't ccc like this ?
Date: Tue, 21 Dec 1999 16:41:40 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.10.9912211636480.22574-100000@voodoo.alphalinux.org> (raw)
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..."
reply other threads:[~1999-12-21 21:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox