Postgresql 7.3.4 compile failes on NetBSD 1.6 mac68k

From: Rémi Zara <remi_zara(at)mac(dot)com>
To: pgsql-ports(at)postgresql(dot)org
Subject: Postgresql 7.3.4 compile failes on NetBSD 1.6 mac68k
Date: 2003-09-22 20:14:18
Message-ID: 584A2902-ED39-11D7-AAF1-003065B81B34@mac.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-ports

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/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-09-22 20:15:58 Back from Mexico
Previous Message Paulo Scardine 2003-09-22 19:02:57 Re: Killing the backend to cancel a long waiting query

Browse pgsql-ports by date

  From Date Subject
Next Message Andr FAURE 2003-09-23 14:06:24 FYI: netbsd/mipsel port
Previous Message Relaxin 2003-09-21 07:54:36 Re: Inquiry From Form [pgsql]