Stefano Bonnin wrote:
> I can't compile postgis 1.4rc1, when I try to compile it I receve an error.
>
> OS: FreeBSD 5.3
> Postgresql: 8.4
> GEOS: 3.1.1
>
> My compilation command is:
>
> ./configure --with-pgconfig=/usr/local/postgresql/8.4/bin/pg_config
> --with-geosconfig=/usr/local/bin/geos-config --with-projdir=/usr/local
> gmake
> gmake install
(lots cut)
Thanks for the bug report. It looks as if __va_copy() is not necessarily
present on non-GNU systems. Can you test with the following patch?
Many thanks,
Mark.
--
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.ukt: +44 870 608 0063
Index: liblwgeom/vsprintf.c
===================================================================
--- liblwgeom/vsprintf.c (revision 4256)
+++ liblwgeom/vsprintf.c (working copy)
@@ -36,6 +36,14 @@
int global_total_width;
#endif
+/* Make sure we have a va_copy that will work on all platforms */
+#ifndef va_copy
+# ifdef __va_copy
+# define va_copy(d, s) __va_copy((d), (s))
+# else
+# define va_copy(d, s) memcpy(&(d), &(s), sizeof(va_list))
+# endif
+#endif
int lw_vasprintf (char **result, const char *format, va_list args);
int lw_asprintf
@@ -146,8 +154,7 @@
{
va_list temp;
- /* Use va_copy for compatibility with both 32 and 64 bit args */
- __va_copy(temp, args);
+ va_copy(temp, args);
return int_vasprintf (result, format, &temp);
}
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel