Bug 118290 - databases/rubygem-postgres broken
Summary: databases/rubygem-postgres broken
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-27 22:10 UTC by Garrett Wollman
Modified: 2009-01-04 09:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Garrett Wollman 2007-11-27 22:10:02 UTC
The gem fails to install.  In fact, it fails to even configure.  mkmf.log
shows:

"cc -o conftest -I. -I/usr/local/lib/ruby/1.8/amd64-freebsd6 -I. -I/usr/local/in
clude  -O -pipe    -fPIC conftest.c  -L'.' -L'/usr/local/lib' -Wl,-R'/usr/local/
lib' -L'/usr/local/lib' -Wl,-R'/usr/local/lib' -L.  -rdynamic     -lruby18-stati
c -lpq  -lcrypt -lm  -rpath=/usr/lib:/usr/local/lib -pthread  -lc"
/usr/local/lib/libkrb5.so: undefined reference to `add_error_table'
/usr/local/lib/libkrb5.so: undefined reference to `remove_error_table'

This is because extconf.rb does not use the correct libraries (as determined
by `pg_config --libs`).  libpq does have the correct library dependencies so
I don't know why this doesn't get resolved automagically.

Fix: 

Unknown.  I spent about half an hour trying to trace the flow through the
twisty innards of mkmf.rb before giving up.  There doesn't seem to be any
way of making it check more than one library.
How-To-Repeat: 
Install postgresql81-client with Kerberos support.  Try to install
rubygem-postgres.  Watch it fail.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-11-27 22:10:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dinoex

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Dirk Meyer freebsd_committer freebsd_triage 2007-11-29 11:32:31 UTC
State Changed
From-To: open->feedback



> This is because extconf.rb does not use the correct libraries (as determined 
> by `pg_config --libs`).  libpq does have the correct library dependencies so 
> I don't know why this doesn't get resolved automagically. 

Please give the output of  ldd /usr/local/lib/libpq.so.4
Comment 3 wollman 2007-11-29 16:24:00 UTC
<<On Thu, 29 Nov 2007 12:38:12 +0100 (CET), dinoex@FreeBSD.org said:

>> This is because extconf.rb does not use the correct libraries (as determined
>> by `pg_config --libs`).  libpq does have the correct library dependencies so
>> I don't know why this doesn't get resolved automagically.

> Please give the output of  ldd /usr/local/lib/libpq.so.4

/usr/local/lib/libpq.so.4:
        libssl.so.4 => /usr/lib/libssl.so.4 (0x80096e000)
        libcrypto.so.4 => /lib/libcrypto.so.4 (0x800aa8000)
        libkrb5.so => /usr/local/lib/libkrb5.so (0x800cf9000)
        libcom_err.so => /usr/local/lib/libcom_err.so (0x800e9b000)
        libcrypt.so.3 => /lib/libcrypt.so.3 (0x800fa1000)
        libk5crypto.so => /usr/local/lib/libk5crypto.so (0x8010ba000)
        libkrb5support.so => /usr/local/lib/libkrb5support.so (0x8011e0000)

-GAWollman
Comment 4 Dirk Meyer freebsd_committer freebsd_triage 2008-02-19 07:54:50 UTC
State Changed
From-To: feedback->suspended


I could not found a fix. 

libkrb5.so reportes no dependency itself. 
$ ldd /usr/local/lib/libkrb5.so 

This may cause the problem. 

Further suggestions welcome.
Comment 5 wollman 2008-02-19 19:28:50 UTC
<<On Tue, 19 Feb 2008 08:58:29 +0100 (CET), dinoex@FreeBSD.org said:

> Synopsis: databases/rubygem-postgres broken
> State-Changed-From-To: feedback->suspended
> State-Changed-By: dinoex
> State-Changed-When: Tue Feb 19 08:54:50 CET 2008
> State-Changed-Why: 

> I could not found a fix.

> libkrb5.so reportes no dependency itself.
> $ ldd /usr/local/lib/libkrb5.so

> This may cause the problem.

> Further suggestions welcome.

Perhaps this should be handed off to the Kerberos maintainers?  Cy?

-GAWollman
Comment 6 dfilter service freebsd_committer freebsd_triage 2008-04-07 12:51:55 UTC
dinoex      2008-04-07 11:51:41 UTC

  FreeBSD ports repository

  Added files:
    databases/ruby-postgres Makefile distinfo pkg-descr pkg-plist 
  Log:
  - ressurect
  - new MASTER_SITE
  - update to 0.7.9.2008.01.28
  PR:             118290
  
  Revision  Changes    Path
  1.33      +43 -0     ports/databases/ruby-postgres/Makefile (new)
  1.13      +3 -0      ports/databases/ruby-postgres/distinfo (new)
  1.11      +7 -0      ports/databases/ruby-postgres/pkg-descr (new)
  1.8       +15 -0     ports/databases/ruby-postgres/pkg-plist (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 7 Dirk Meyer freebsd_committer freebsd_triage 2008-06-15 12:16:06 UTC
State Changed
From-To: suspended->feedback


Is is possible to test databases/ruby-postgres in your setup?
Comment 8 Dirk Meyer freebsd_committer freebsd_triage 2009-01-04 09:55:57 UTC
State Changed
From-To: feedback->closed

no new information on this issue.