Bug 162134 - mail/dovecot2 fails to build with PGSQL=on
Summary: mail/dovecot2 fails to build with PGSQL=on
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: Raphael Kubo da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-29 03:20 UTC by Raphael Kubo da Costa
Modified: 2011-10-31 00:20 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 Raphael Kubo da Costa freebsd_committer freebsd_triage 2011-10-29 03:20:04 UTC
     I have database/postgresql84-{client,server} installed, and have the following options set for mail/dovecot2:

     KQUEUE=on "kqueue(2) support"
     SSL=on "SSL support"
     GSSAPI=on "GSSAPI support"
     VPOPMAIL=off "vpopmail support"
     LDAP=off "OpenLDAP support"
     PGSQL=on "PostgreSQL support"
     MYSQL=off "MySQL support"
     SQLITE=on "SQLite support"

     When I try to build the port, it fails at configure-time with the following error:

     checking for pg_config... pg_config
     checking for PQconnectdb in -lpq... no
     configure: error: Can't build with PostgreSQL support: libpq not found

     It looks like there is a missing dependency.

How-To-Repeat: 	Try to build mail/dovecot2 with PGSQL=on.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-10-29 03:20:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rakuco

Submitter has GNATS access (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2011-10-29 03:20:17 UTC
Maintainer of mail/dovecot2,

Please note that PR ports/162134 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/162134

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2011-10-29 03:20:19 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 R.Mahmatkhanov 2011-10-30 20:40:18 UTC
Hi, Raphael.

Builds fine here on 10-CURRENT with postgresql90-client, also as in 8.2 
tinderbox with postgresql84-client. So it looks like you local problem. 
Have you tried to update your ports and rebuild postgresql84-client?

http://happy-nation.by.ru/ports/tb/8.2/dovecot-2.0.15.log

-- 
Regards,
Ruslan

Tinderboxing kills... the drives.
Comment 5 Raphael Kubo da Costa freebsd_committer freebsd_triage 2011-10-30 23:47:27 UTC
Ruslan Mahmatkhanov <cvs-src@yandex.ru> writes:

> Hi, Raphael.
>
> Builds fine here on 10-CURRENT with postgresql90-client, also as in
> 8.2 tinderbox with postgresql84-client. So it looks like you local
> problem. Have you tried to update your ports and rebuild
> postgresql84-client?
>
> http://happy-nation.by.ru/ports/tb/8.2/dovecot-2.0.15.log

Hi there,

Thanks for taking a look at this PR.

Indeed, it does not seem to be dovecot's fault. Looking at config.log, I
can see the following:

    configure:22904: cc -o conftest -std=gnu99 -O2 -pipe -march=core2
    -fno-strict-aliasing -Wall -W -Wmissing-prototypes
    -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2
    -Wbad-function-cast -Wstrict-aliasing=2 -I/usr/local/include
    -I/usr/local/include  -L/usr/local/lib -L/usr/local/lib conftest.c
    -lpq   -lrt -L/usr/local/lib >&5
/usr/local/lib/libpq.so: undefined reference to `gss_import_name'
/usr/local/lib/libpq.so: undefined reference to `gss_release_name'
/usr/local/lib/libpq.so: undefined reference to `gss_delete_sec_context'
/usr/local/lib/libpq.so: undefined reference to `gss_display_status'
/usr/local/lib/libpq.so: undefined reference to `gss_release_buffer'
/usr/local/lib/libpq.so: undefined reference to `gss_init_sec_context'
/usr/local/lib/libpq.so: undefined reference to
    `GSS_C_NT_HOSTBASED_SERVICE'

It happens that I build postgresql84-{client,server} with GSSAPI=on, but
libpq.so does not seem to depend on libgssapi.so (one needs to pass it
to the linker manually).

I'll file a PR against the postgresql ports.
Comment 6 Raphael Kubo da Costa freebsd_committer freebsd_triage 2011-10-30 23:49:39 UTC
State Changed
From-To: feedback->closed

This seems to be a problem with postgresql84 and GSSAPI=on.