linking problems with heimdal in base (ports version works)

Brian Fundakowski Feldman green at freebsd.org
Fri Oct 14 15:23:48 PDT 2005


On Fri, Oct 14, 2005 at 09:36:01PM +0200, Michael Nottebrock wrote:
> On Friday, 14. October 2005 19:08, Palle Girgensohn wrote:
> 
> > I'm actually doing that already, but postgresql build process bugs out
> > somehow. I'll have to dedicate some time to this, I guess.
> >
> > Still, isn't it strange that the kerberos libs don't have any dependencies
> > registered? 
> 
> I don't think so - after all, the main purpose of the krb5-config utility is 
> to record the dependencies.

It doesn't do it with our build infrastructure now.  Here's what I had to
do for the postgres-ruby port:

cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /export/ncvs/ports/databases/ruby-postgres/Makefile,v
retrieving revision 1.28
diff -r1.28 Makefile
24c24
< CONFIGURE_ARGS=       --with-pgsql-include-dir="${LOCALBASE}/include"
---
> CONFIGURE_ARGS= --with-pgsql-include-dir="${LOCALBASE}/include" --with-pg_config="${LOCALBASE}/bin/pg_config"

--- extconf.rb.orig     Mon Dec  9 22:55:35 2002
+++ extconf.rb  Thu Oct 13 15:33:23 2005
@@ -36,6 +36,20 @@
     $LDFLAGS += "-L#{libdir}"
     puts "Using PostgreSQL lib directory: #{libdir}"
   end
+  pg_config = ENV["POSTGRES_CONFIG"]
+  pg_config ||= with_config("pg_config")
+  if pg_config
+    pldflags = nil
+    `#{pg_config} --configure`.scan(/'([^'=]*)(?:=?([^']*))'/) {|lhs, rhs|
+      if lhs == "LDFLAGS"
+       pldflags = rhs
+      end
+    }
+    if pldflags
+      $LDFLAGS += " " + pldflags
+      puts "Using PostgreSQL build flags: #{pldflags}"
+    end
+  end
   if have_library("pq", "PQsetdbLogin")
     have_func("PQsetClientEncoding")
     have_func("pg_encoding_to_char")

It is certainly not as simple as made out to be.

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green at FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\


More information about the freebsd-stable mailing list