Re: [HACKERS] Snapshot 26Feb98 - another minor showstopper

Lists: pgsql-hackers
From: Andrew Martin <martin(at)biochemistry(dot)ucl(dot)ac(dot)uk>
To: scrappy(at)hub(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Snapshot 26Feb98 - another minor showstopper
Date: 1998-02-26 17:15:28
Message-ID: 199802261715.RAA18133@bsmir06.biochem.ucl.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Just seen that Darren has supplied more extensive patches which
also fix the problems with -Wall in ecpg

So, ignore my versions (though the patch to configure is still
needed).

Andrew
----------------------------------------------------------------------------
Dr. Andrew C.R. Martin University College London
EMAIL: (Work) martin(at)biochem(dot)ucl(dot)ac(dot)uk (Home) andrew(at)stagleys(dot)demon(dot)co(dot)uk
URL: http://www.biochem.ucl.ac.uk/~martin
Tel: (Work) +44(0)171 419 3890 (Home) +44(0)1372 275775


From: Tom I Helbekkmo <tih(at)Hamartun(dot)Priv(dot)NO>
To: martin(at)biochemistry(dot)ucl(dot)ac(dot)uk, scrappy(at)hub(dot)org, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Snapshot 26Feb98 - another minor showstopper
Date: 1998-02-26 21:26:56
Message-ID: 19980226222656.04447@Hamartun.Priv.NO
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, Feb 26, 1998 at 05:15:28PM +0000, Andrew Martin wrote:

> Just seen that Darren has supplied more extensive patches which
> also fix the problems with -Wall in ecpg
>
> So, ignore my versions (though the patch to configure is still
> needed).

Not entirely. His version didn't introduce "$(CFLAGS)" into the cc
command lines, which is needed for many systems -- while yours did.
Specifically, this causes building to fail on systems that do shared
libraries. For the "bsd" port, the shared library setup should also
be modified as has been done everywhere else, to ignore it on those
BSD systems that don't have shared libraries.

Here's a slightly expanded version of your patch -- this is what I'm
using here now:

*** interfaces/ecpg/lib/Makefile.in.orig Tue Feb 24 09:00:41 1998
--- interfaces/ecpg/lib/Makefile.in Thu Feb 26 18:29:03 1998
***************
*** 8,13 ****
--- 8,17 ----

PORTNAME=(at)PORTNAME@

+ ifdef KRBVERS
+ CFLAGS+= $(KRBFLAGS)
+ endif
+
# Shared library stuff
shlib :=
install-shlib-dep :=
***************
*** 20,29 ****
endif
endif
ifeq ($(PORTNAME), bsd)
! install-shlib-dep := install-shlib
! shlib := libecpg.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
! LDFLAGS_SL = -x -Bshareable -Bforcearchive
! CFLAGS += $(CFLAGS_SL)
endif
#ifeq ($(PORTNAME), i386_solaris)
# install-shlib-dep := install-shlib
--- 24,35 ----
endif
endif
ifeq ($(PORTNAME), bsd)
! ifdef BSD_SHLIB
! install-shlib-dep := install-shlib
! shlib := libecpg.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
! LDFLAGS_SL = -x -Bshareable -Bforcearchive
! CFLAGS += $(CFLAGS_SL)
! endif
endif
#ifeq ($(PORTNAME), i386_solaris)
# install-shlib-dep := install-shlib
***************
*** 61,66 ****
libecpg.a : libecpg.a(ecpglib.o) libecpg.a(typename.o)

ecpglib.o : ecpglib.c ../include/ecpglib.h ../include/ecpgtype.h
! $(CC) -Wall -I../include $(PQ_INCLUDE) -c ecpglib.c
typename.o : typename.c ../include/ecpgtype.h
! $(CC) -Wall -I../include $(PQ_INCLUDE) -c typename.c
--- 67,72 ----
libecpg.a : libecpg.a(ecpglib.o) libecpg.a(typename.o)

ecpglib.o : ecpglib.c ../include/ecpglib.h ../include/ecpgtype.h
! $(CC) $(CFLAGS) -I../include $(PQ_INCLUDE) -c ecpglib.c
typename.o : typename.c ../include/ecpgtype.h
! $(CC) $(CFLAGS) -I../include $(PQ_INCLUDE) -c typename.c

-tih
--
Popularity is the hallmark of mediocrity. --Niles Crane, "Frasier"


From: Michael Meskes <meskes(at)topsystem(dot)de>
To: tih(at)Hamartun(dot)Priv(dot)NO (Tom I Helbekkmo)
Cc: pgsql-hackers(at)postgresql(dot)org (PostgreSQL Hacker)
Subject: Re: [HACKERS] Snapshot 26Feb98 - another minor showstopper
Date: 1998-02-27 10:05:22
Message-ID: 199802271005.LAA27806@gauss.topsystem.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Tom I Helbekkmo writes:
> Not entirely. His version didn't introduce "$(CFLAGS)" into the cc
> command lines, which is needed for many systems -- while yours did.
> Specifically, this causes building to fail on systems that do shared
> libraries. For the "bsd" port, the shared library setup should also
> be modified as has been done everywhere else, to ignore it on those
> BSD systems that don't have shared libraries.
>
> Here's a slightly expanded version of your patch -- this is what I'm
> using here now:

Okay, will be included with my next patch set.

Michael
--
Dr. Michael Meskes, Project-Manager | topsystem Systemhaus GmbH
meskes(at)topsystem(dot)de | Europark A2, Adenauerstr. 20
meskes(at)debian(dot)org | 52146 Wuerselen
Go SF49ers! Go Rhein Fire! | Tel: (+49) 2405/4670-44
Use Debian GNU/Linux! | Fax: (+49) 2405/4670-10