pgfoundry

Started by Matthew Peterabout 19 years ago4 messagesgeneral
Jump to latest
#1Matthew Peter
survivedsushi@yahoo.com

I was wondering if anyone new how to get this package to install for 8.2.3? When I try to install it I get:
ERROR: incompatible library "/usr/lib/pgsql/uri.so": missing magic block
HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro.

I read 8.2 now needs the MAGIC definition but C is rather foreign. Any help?

http://www.postgresql.org/ftp/projects/pgFoundry/uri/

It hasn't been updated since 2005. Thanks

---------------------------------
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.

#2Chad Wagner
chad.wagner@gmail.com
In reply to: Matthew Peter (#1)
Re: pgfoundry

On 2/24/07, Matthew Peter <survivedsushi@yahoo.com> wrote:

I was wondering if anyone new how to get this package to install for 8.2.3?
When I try to install it I get:
ERROR: incompatible library "/usr/lib/pgsql/uri.so": missing magic block
HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro.

I read 8.2 now needs the MAGIC definition but C is rather foreign. Any
help?

http://www.postgresql.org/ftp/projects/pgFoundry/uri/

It hasn't been updated since 2005. Thanks

This appears to be a trivial patch against the uri codebase:

diff -wur uri.orig/uri.c uri/uri.c
--- uri.orig/uri.c      2005-07-20 18:49:23.000000000 -0400
+++ uri/uri.c   2007-02-24 07:16:29.553130168 -0500
@@ -15,6 +15,10 @@

#include "liburi/uri.h"

+#ifdef PG_MODULE_MAGIC
+PG_MODULE_MAGIC;
+#endif
+
 /*
  *  Commonly used code snippets
  */

Other than that it appears to still work with 8.2.3.

--
Chad
http://www.postgresqlforums.com/

Attachments:

uri.diffapplication/octet-stream; name=uri.diffDownload+4-0
#3Martijn van Oosterhout
kleptog@svana.org
In reply to: Matthew Peter (#1)
Re: pgfoundry

On Sat, Feb 24, 2007 at 02:33:02AM -0800, Matthew Peter wrote:

I was wondering if anyone new how to get this package to install for 8.2.3? When I try to install it I get:
ERROR: incompatible library "/usr/lib/pgsql/uri.so": missing magic block
HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro.

I read 8.2 now needs the MAGIC definition but C is rather foreign. Any help?

http://www.postgresql.org/ftp/projects/pgFoundry/uri/

You just need to add the line:

PG_MODULE_MAGIC;

Somewhere in one to the files. That's it.

Have a nice day,
--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/

Show quoted text

From each according to his ability. To each according to his ability to litigate.

#4Matthew Peter
survivedsushi@yahoo.com
In reply to: Chad Wagner (#2)
Re: pgfoundry

Chad Wagner <chad.wagner@gmail.com> wrote: On 2/24/07, Matthew Peter <survivedsushi@yahoo.com> wrote: I was wondering if anyone new how to get this package to install for 8.2.3? When I try to install it I get:
ERROR: incompatible library "/usr/lib/pgsql/uri.so": missing magic block
HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro.

I read 8.2 now needs the MAGIC definition but C is rather foreign. Any help?

http://www.postgresql.org/ftp/projects/pgFoundry/uri/

It hasn't been updated since 2005. Thanks
This appears to be a trivial patch against the uri codebase:

diff -wur uri.orig/uri.c uri/uri.c 
--- uri.orig/uri.c      2005-07-20 18:49:23.000000000 -0400
+++ uri/uri.c   2007-02-24 07:16:29.553130168 -0500
@@ -15,6 +15,10 @@

#include "liburi/uri.h"

+#ifdef PG_MODULE_MAGIC
+PG_MODULE_MAGIC; 
+#endif
+
 /*
  *  Commonly used code snippets
  */

Other than that it appears to still work with 8.2.3.

--
Chad
http://www.postgresqlforums.com/
That works. I tried it last night with the same patch from the 8.2 changefile. I must not have cleaned out the previous uri.so library. Thanks.

---------------------------------
Get your own web address.
Have a HUGE year through Yahoo! Small Business.