Hi,
I'm trying to compile Postgresql 7.3.4 on NetBSD 1.6 mac68k.
First, I Had to add '%' signs in src/backend/storage/lmgr/s_lock.c
before register names.
--- postgresql-7.3.4/src/backend/storage/lmgr/s_lock.c Sat Sep 21
02:14:05 2002
+++ s_lock.c Mon Sep 22 20:51:25 2003
@@ -99,13 +99,13 @@
"\
.global _tas \n\
_tas: \n\
- movel sp@(0x4),a0 \n\
- tas a0@ \n\
+ movel %sp@(0x4),%a0 \n\
+ tas %a0@ \n\
beq _success \n\
- moveq #-128,d0 \n\
+ moveq #-128,%d0 \n\
rts \n\
_success: \n\
- moveq #0,d0 \n\
+ moveq #0,%d0 \n\
rts \n\
");
}
Then, linking fails with undefined reference to the 'tas' function:
access/SUBSYS.o: In function `XLogWrite':
access/SUBSYS.o(.text+0x19dbc): undefined reference to `tas'
access/SUBSYS.o: In function `XLogInsert':
access/SUBSYS.o(.text+0x19470): undefined reference to `tas'
access/SUBSYS.o(.text+0x19a38): undefined reference to `tas'
access/SUBSYS.o: In function `AdvanceXLInsertBuffer':
access/SUBSYS.o(.text+0x19b94): undefined reference to `tas'
access/SUBSYS.o: In function `XLogFlush':
access/SUBSYS.o(.text+0x1a358): undefined reference to `tas'
access/SUBSYS.o(.text+0x1c844): more undefined references to `tas'
follow
Any Idea ?
Regards,
Rémi Zara
--
Rémi Zara
web: http://www.remi-zara.net/