Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-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

pgsql-ports by date

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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group