Latest shared-lib makefile revisions fail on HPUX

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: hackers(at)postgreSQL(dot)org
Subject: Latest shared-lib makefile revisions fail on HPUX
Date: 1998-10-18 02:25:18
Message-ID: 1347.908677518@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Somebody didn't take into account the possibility that $(shlib)
is the same name as lib$(NAME)$(DLSUFFIX).

install-shlib: $(shlib)
$(INSTALL) $(INSTL_SHLIB_OPTS) $(shlib) $(LIBDIR)/$(shlib)
rm -f $(LIBDIR)/lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
rm -f $(LIBDIR)/lib$(NAME)$(DLSUFFIX)
cd $(LIBDIR) && $(LN_S) -f $(shlib) lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
cd $(LIBDIR) && $(LN_S) -f $(shlib) lib$(NAME)$(DLSUFFIX)

This deletes the actual shared lib and replaces it with a symlink
pointing to itself. Grumble. The debris:

$ ls -lF /usr/local/pgsql/lib
total 2296
-r--r--r-- 1 postgres users 624 Oct 17 21:56 global1.bki.source
-r--r--r-- 1 postgres users 0 Oct 17 21:56 global1.description
-r--r--r-- 1 postgres users 34882 Oct 17 21:56 libecpg.a
-rw-r--r-- 1 postgres users 90220 Oct 17 21:56 libpgtcl.a
lrwxr-xr-x 1 postgres users 11 Oct 17 21:56 libpgtcl.sl@ -> libpgtcl.sl
lrwxr-xr-x 1 postgres users 11 Oct 17 21:56 libpgtcl.sl.2@ -> libpgtcl.sl
-rw-r--r-- 1 postgres users 158224 Oct 17 21:56 libpq++.a
-rw-r--r-- 1 postgres users 196120 Oct 17 21:56 libpq.a
lrwxr-xr-x 1 postgres users 8 Oct 17 21:56 libpq.sl@ -> libpq.sl
lrwxr-xr-x 1 postgres users 8 Oct 17 21:56 libpq.sl.2@ -> libpq.sl
-r--r--r-- 1 postgres users 160633 Oct 17 21:56 local1_template1.bki.source
-r--r--r-- 1 postgres users 17622 Oct 17 21:56 local1_template1.description
-r--r--r-- 1 postgres users 2838 Oct 17 21:56 pg_geqo.sample
-r--r--r-- 1 postgres users 5192 Oct 17 21:56 pg_hba.conf.sample
-rw-r--r-- 1 postgres users 452568 Oct 17 21:57 plpgsql.sl

BTW, the install for plpgsql.sl is not right either --- it doesn't have
this symlink problem, but the permissions on the file are wrong. HPUX
wants shlibs to be executable.

regards, tom lane

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-10-18 03:47:35 Re: [HACKERS] SELECT ... LIMIT (trial implementation)
Previous Message Tom Lane 1998-10-18 00:35:23 Re: [HACKERS] perl interface bug?