Re: undefined reference to `is_absolute_path' - Mailing list pgsql-hackers

From Joe Conway
Subject Re: undefined reference to `is_absolute_path'
Date
Msg-id 3E9B1F68.8060706@joeconway.com
Whole thread Raw
In response to Re: undefined reference to `is_absolute_path'  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Yeah.  I poked Bruce about that last week, but he hasn't fixed it yet
> (he was out of town last week, and might still be...).  I don't have
> time to deal with it now, but will apply a patch if you provide one.
>

Not sure if there is a better fix, but this seemed to do it for me.

Joe
Index: src/interfaces/libpq/Makefile
===================================================================
RCS file: /opt/src/cvs/pgsql-server/src/interfaces/libpq/Makefile,v
retrieving revision 1.74
diff -c -r1.74 Makefile
*** src/interfaces/libpq/Makefile    29 Mar 2003 11:31:51 -0000    1.74
--- src/interfaces/libpq/Makefile    14 Apr 2003 20:17:36 -0000
***************
*** 22,28 ****

  OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \
        pqexpbuffer.o dllist.o pqsignal.o fe-secure.o wchar.o encnames.o ip.o \
!       md5.o \
        $(filter getaddrinfo.o inet_aton.o snprintf.o strerror.o, $(LIBOBJS))


--- 22,28 ----

  OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \
        pqexpbuffer.o dllist.o pqsignal.o fe-secure.o wchar.o encnames.o ip.o \
!       md5.o path.o \
        $(filter getaddrinfo.o inet_aton.o snprintf.o strerror.o, $(LIBOBJS))


***************
*** 48,53 ****
--- 48,56 ----
  ip.c: $(backend_src)/libpq/ip.c
      rm -f $@ && $(LN_S) $< .

+ path.c: $(backend_src)/../port/path.c
+     rm -f $@ && $(LN_S) $< .
+
  # We use several backend modules verbatim, but since we need to
  # compile with appropriate options to build a shared lib, we can't
  # necessarily use the same object files as the backend uses. Instead,
***************
*** 74,78 ****
      rm -f $(DESTDIR)$(includedir)/libpq-fe.h $(DESTDIR)$(includedir_internal)/libpq-int.h
$(includedir_internal)/pqexpbuffer.h

  clean distclean maintainer-clean: clean-lib
!     rm -f $(OBJS) dllist.c md5.c ip.c wchar.c encnames.c
      rm -f $(OBJS) getaddrinfo.c inet_aton.c snprintf.c strerror.c
--- 77,81 ----
      rm -f $(DESTDIR)$(includedir)/libpq-fe.h $(DESTDIR)$(includedir_internal)/libpq-int.h
$(includedir_internal)/pqexpbuffer.h

  clean distclean maintainer-clean: clean-lib
!     rm -f $(OBJS) dllist.c md5.c ip.c wchar.c encnames.c path.c
      rm -f $(OBJS) getaddrinfo.c inet_aton.c snprintf.c strerror.c

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: undefined reference to `is_absolute_path'
Next
From: cbbrowne@cbbrowne.com
Date:
Subject: Re: Anyone working on better transaction locking?