Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Sep 2005 01:25:58 GMT
From:      oHmEr <ohmer@epita.info>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/86000: misc/libhome doesn't compile with postgresql support
Message-ID:  <200509120125.j8C1PwPW078313@www.freebsd.org>
Resent-Message-ID: <200509120130.j8C1U6TA051154@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         86000
>Category:       ports
>Synopsis:       misc/libhome doesn't compile with postgresql support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 12 01:30:06 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     oHmEr
>Release:        5.4-STABLE
>Organization:
>Environment:
FreeBSD moe.cload.net 5.4-STABLE FreeBSD 5.4-STABLE #0: Fri Sep  9 18:45:25 CEST 2005     root@moe.cload.net:/usr/obj/usr/src/sys/MOE  i386
>Description:
the one line summary should be enough to understand the problem. here is the compiler error :

hparam.c: In function `home_init':
hparam.c:649: error: `len' undeclared (first use in this function)
>How-To-Repeat:
cd /usr/ports/misc/libhome
make config (only activate postgresql support)
make all
>Fix:
int len seems to be declared when WITH_PGSQL is defined so :

--- hparam.c.orig       Mon Sep 12 02:55:52 2005
+++ hparam.c    Mon Sep 12 02:55:06 2005
@@ -271,7 +271,7 @@
   int intag=1;
   FILE *f;
   char line[LINEMAX];
-#if WITH_LDAP || WITH_MYSQL
+#if WITH_LDAP || WITH_MYSQL || WITH_PGSQL
   int len = 0;
 #endif
 #if WITH_LDAP

then, fix the other compilation error which seems related to autotools :

hpgsql.c:38:22: libpq-fe.h: No such file or directory

or not because i'm probably wrong and there may be others.
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509120125.j8C1PwPW078313>