Port 6.5 to dgux Intel - Mailing list pgsql-ports
From | Flavio Spada |
---|---|
Subject | Port 6.5 to dgux Intel |
Date | |
Msg-id | 199906231536.RAA21239@mahler.crcc.it Whole thread Raw |
List | pgsql-ports |
============================================================================ POSTGRESQL BUG REPORT TEMPLATE ============================================================================ Your name : Flavio Spada Your email address : fl@crcc.it System Configuration --------------------- Architecture (example: Intel Pentium) : Intel PentiumPro Operating System (example: Linux 2.0.26 ELF) : DGUX R4.11MU03 PostgreSQL version (example: PostgreSQL-6.5) : PostgreSQL-6.5 Compiler used (example: gcc 2.8.0) : gcc 2.7.2.3 Please enter a FULL description of your problem: ------------------------------------------------ Partial missing and wrong configuration for DGUX Intel Please describe a way to repeat the problem. Please try to provide a concise reproducible example, if at all possible: ---------------------------------------------------------------------- If you know how this problem might be fixed, list the solution below: --------------------------------------------------------------------- The following patches resolve the problem. ---------------cut here ------------------- diff -r -N -C 1 postgresql-6.5-old/src/Makefile.global.in postgresql-6.5/src/Makefile.global.in *** postgresql-6.5-old/src/Makefile.global.in Sun Dec 6 00:08:56 1998 --- postgresql-6.5/src/Makefile.global.in Tue Mar 23 18:00:02 1999 *************** *** 60,62 **** # changable separately. ! POSTGRESDIR= @prefix@ --- 60,62 ---- # changable separately. ! POSTGRESDIR= $(DESTDIR)/@prefix@ diff -r -N -C 1 postgresql-6.5-old/src/backend/port/strcasecmp.c postgresql-6.5/src/backend/port/strcasecmp.c *** postgresql-6.5-old/src/backend/port/strcasecmp.c Tue Sep 1 06:30:46 1998 --- postgresql-6.5/src/backend/port/strcasecmp.c Wed Mar 24 09:23:35 1999 *************** *** 65,68 **** { ! unsigned char u1, ! u2; --- 65,67 ---- { ! unsigned char u1,u2; *************** *** 77,78 **** --- 76,94 ---- } + } + + int + strncasecmp(char *s1, char *s2, int length) + { + unsigned char u1,u2; + + for (; length; length--) + { + u1 = (unsigned char) *s1++; + u2 = (unsigned char) *s2++; + if (charmap[u1] != charmap[u2]) + return charmap[u1] - charmap[u2]; + if (u1 == '\0') + return 0; + } + return 0; } diff -r -N -C 1 postgresql-6.5-old/src/configure.in postgresql-6.5/src/configure.in *** postgresql-6.5-old/src/configure.in Sun Dec 13 21:08:20 1998 --- postgresql-6.5/src/configure.in Wed Mar 24 12:16:25 1999 *************** *** 1187,1188 **** --- 1187,1190 ---- pl/tcl/mkMakefile.tcldefs.sh + postconfig + postgres.boot ) diff -r -N -C 1 postgresql-6.5-old/src/include/port/dgux.h postgresql-6.5/src/include/port/dgux.h *** postgresql-6.5-old/src/include/port/dgux.h Sun Dec 6 00:09:03 1998 --- postgresql-6.5/src/include/port/dgux.h Wed Mar 24 10:38:32 1999 *************** *** 12,14 **** #ifndef BYTE_ORDER ! #define BYTE_ORDER BIG_ENDIAN #endif --- 12,18 ---- #ifndef BYTE_ORDER ! #define BYTE_ORDER LITTLE_ENDIAN #endif + + #define HAS_TEST_AND_SET + + typedef unsigned char slock_t; diff -r -N -C 1 postgresql-6.5-old/src/interfaces/ecpg/preproc/Makefile postgresql-6.5/src/interfaces/ecpg/preproc/Makefile *** postgresql-6.5-old/src/interfaces/ecpg/preproc/Makefile Fri Oct 16 06:40:38 1998 --- postgresql-6.5/src/interfaces/ecpg/preproc/Makefile Wed Mar 24 10:47:28 1999 *************** *** 12,14 **** OBJ=preproc.o pgc.o type.o ecpg.o ecpg_keywords.o ../../../backend/parser/scansup.o \ ! keywords.o c_keywords.o ../lib/typename.o --- 12,14 ---- OBJ=preproc.o pgc.o type.o ecpg.o ecpg_keywords.o ../../../backend/parser/scansup.o \ ! keywords.o c_keywords.o ../lib/typename.o ../../../backend/port/strcasecmp.o diff -r -N -C 1 postgresql-6.5-old/src/interfaces/libpq/Makefile.in postgresql-6.5/src/interfaces/libpq/Makefile.in *** postgresql-6.5-old/src/interfaces/libpq/Makefile.in Thu Nov 12 06:25:05 1998 --- postgresql-6.5/src/interfaces/libpq/Makefile.in Wed Mar 24 10:53:22 1999 *************** *** 30,32 **** OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \ ! dllist.o pqsignal.o --- 30,32 ---- OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \ ! dllist.o pqsignal.o ../../backend/port/strcasecmp.o diff -r -N -C 1 postgresql-6.5-old/src/postconfig.in postgresql-6.5/src/postconfig.in *** postgresql-6.5-old/src/postconfig.in Thu Jan 1 01:00:00 1970 --- postgresql-6.5/src/postconfig.in Tue Mar 23 18:00:02 1999 *************** *** 0 **** --- 1,7 ---- + #!/bin/sh + + echo "PGLIB=@prefix@/lib" + echo "PGDATA=@localstatedir@" + echo "PATH=\$PATH:@prefix@/bin" + echo "MANPATH=\$MANPATH:@prefix@/man" + echo "LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:@prefix@/lib" diff -r -N -C 1 postgresql-6.5-old/src/postgres.boot.in postgresql-6.5/src/postgres.boot.in *** postgresql-6.5-old/src/postgres.boot.in Thu Jan 1 01:00:00 1970 --- postgresql-6.5/src/postgres.boot.in Wed Mar 24 12:14:53 1999 *************** *** 0 **** --- 1,50 ---- + #!/bin/sh + # + # postgres.boot Start postgres back end system. + # + + PATH=/sbin:/bin:/usr/sbin:/usr/bin + + par1="$1" + + if [ -f /usr/sbin/init.d/functions.h ] ; then + . /usr/sbin/init.d/functions.h + fi + + PGACCOUNT="postgres" # the postgres superuser + POSTMASTER=@prefix@/bin/postmaster + + PGOPTS="-i -B 256" # -i to enable TCP/IP rather than Unix socket + + pgenv=`sh -c postconfig` + if [ ! -z "$pgenv" ] + then + set -a + eval "$pgenv" + set +a + fi + + # See how we were called. + case "$par1" in + start) + BeginRC "Starting postgres" + if [ -z "$PGLIB" ] + then + RCError "Missing PGLIB environment." + elif [ -z "$PGDATA" ] + then + RCError "Missing PGDATA environment." + else + su ${PGACCOUNT} -c "(${POSTMASTER} ${PGOPTS} 2>&1 | logger -p daemon.notice) &" > /dev/null 2>&1 & + fi + EndRC + ;; + stop) + BeginRC "Stopping postgres" + dg_kill -15 `basename ${POSTMASTER}` + EndRC + ;; + *) + echo "Usage: $0 {start|stop}" + exit 1 + esac diff -r -N -C 1 postgresql-6.5-old/src/Makefile.shlib postgresql-6.5/src/Makefile.shlib *** postgresql-6.5-old/src/Makefile.shlib Thu May 20 09:01:15 1999 --- postgresql-6.5/src/Makefile.shlib Thu Jun 17 11:04:18 1999 *************** *** 147,148 **** --- 147,155 ---- + ifeq ($(PORTNAME), dgux) + install-shlib-dep := install-shlib + shlib := lib$(NAME)$(DLSUFFIX) + LDFLAGS_SL := -G + CFLAGS += $(CFLAGS_SL) + endif + ifeq ($(PORTNAME), univel) diff -r -N -C 1 postgresql-6.5-old/src/makefiles/Makefile.dgux postgresql-6.5/src/makefiles/Makefile.dgux *** postgresql-6.5-old/src/makefiles/Makefile.dgux Sat Apr 12 12:32:40 1997 --- postgresql-6.5/src/makefiles/Makefile.dgux Wed Jun 23 16:46:53 1999 *************** *** 1 **** --- 1,3 ---- + LDFLAGS+= -Wl,-Bexport + %.so: %.o -- ------------------------------------------------------------------------------ Spada Flavio CRCC s.r.l, via Passerini 2, 20052 Monza (MI) ITALY Tel. +39.039.387998 FAX +39.039.382115 e-mail: fl@crcc.it ------------------------------------------------------------------------------
pgsql-ports by date: