From owner-freebsd-amd64@FreeBSD.ORG Wed Feb 1 14:40:09 2012 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A6AA106564A for ; Wed, 1 Feb 2012 14:40:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6604B8FC15 for ; Wed, 1 Feb 2012 14:40:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q11Ee9kS031976 for ; Wed, 1 Feb 2012 14:40:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q11Ee90F031975; Wed, 1 Feb 2012 14:40:09 GMT (envelope-from gnats) Resent-Date: Wed, 1 Feb 2012 14:40:09 GMT Resent-Message-Id: <201202011440.q11Ee90F031975@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Torsten Zühlsdorff Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9000F106564A for ; Wed, 1 Feb 2012 14:33:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 7E5448FC0A for ; Wed, 1 Feb 2012 14:33:44 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q11EXiKH040065 for ; Wed, 1 Feb 2012 14:33:44 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q11EXhw8040043; Wed, 1 Feb 2012 14:33:43 GMT (envelope-from nobody) Message-Id: <201202011433.q11EXhw8040043@red.freebsd.org> Date: Wed, 1 Feb 2012 14:33:43 GMT From: Torsten Zühlsdorff To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 X-Mailman-Approved-At: Wed, 01 Feb 2012 14:53:13 +0000 Cc: Subject: amd64/164691: compiling database/proftpd-mod_sql_postgres do not add backend to Proftpd X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2012 14:40:09 -0000 >Number: 164691 >Category: amd64 >Synopsis: compiling database/proftpd-mod_sql_postgres do not add backend to Proftpd >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 01 14:40:09 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Torsten Zühlsdorff >Release: 8.2-RELEASE >Organization: >Environment: FreeBSD 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: After building Proftpd 1.3.4a (maint) with an SQL-Backend, the backend is not registered in Proftpd. Both, database/proftpd-mod_sql_postgres and database/proftpd-mod_sql_mysql, are not working. Example of Proftp output after building proftpd and the proftpd-mod_sql_postgres and database/proftpd-mod_sql_mysql port: Built With: configure '--localstatedir=/var/run' '--libexecdir=/usr/local/libexec/proftpd' '--with-pkgconfig=libdata/pkgconfig' '--sysconfdir=/usr/local/etc' '--enable-dso' '--disable-sendfile' '--enable-ipv6' '--enable-nls' '--enable-pcre' '--enable-ctrls' '--disable-memcache' '--with-shared=mod_ratio:mod_readme:mod_rewrite:mod_copy:mod_deflate:mod_ifsession:mod_ifversion:mod_radius:mod_quotatab_file:mod_quotatab_sql:mod_quotatab:mod_sftp:mod_sql:mod_tls:mod_wrap2' '--with-includes=:/usr/local/include:/usr/local/include:/include' '--with-libraries=:/usr/local/lib:/usr/local/lib:/usr/local/lib' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd8.2' 'build_alias=amd64-portbld-freebsd8.2' 'CC=cc' 'CFLAGS=-O2 -pipe -DHAVE_OPENSSL -I/usr/include -fno-strict-aliasing' 'LDFLAGS= -rpath=/usr/lib:/usr/local/lib' 'LIBS=-lintl -L/usr/local/lib -lssl -lcrypto -L/usr/lib' 'CPPFLAGS=' 'CPP=cpp' CFLAGS: -O2 -pipe -DHAVE_OPENSSL -I/usr/include -fno-strict-aliasing -Wall LDFLAGS: -L$(top_srcdir)/lib -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib LIBS: -lintl -lpcreposix -lpcre -lssl -lcrypto -lpam -lsupp -lcrypt -lintl -L/usr/local/lib -lssl -lcrypto -L/usr/lib -liconv -lutil As you can see there is no hint for mysql or postgres to be compiled. In a correct build the LIBS path for example would look like: LIBS: -lintl -lssl -lcrypto -lm -lmysqlclient -lpam -lz -lsupp -lcrypt -lintl -L/usr/local/lib -lssl -lcrypto -L/usr/lib -liconv -lutil Please notice "-lmysqlclient" as it is build with mysql-backend. Correct output taken from 1.3.3g (maint). >How-To-Repeat: # cd /usr/ports/databases/proftpd-mod_sql_postgres/ # make install # proftpd -V [examine the output] >Fix: >Release-Note: >Audit-Trail: >Unformatted: