X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id CA0A79DC81A for ; Tue, 20 Dec 2005 07:20:22 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 52641-10 for ; Tue, 20 Dec 2005 07:20:24 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id D32959DCA45 for ; Tue, 20 Dec 2005 07:20:19 -0400 (AST) Received: from mx.laposte.net (mx.laposte.net [81.255.54.11]) by svr4.postgresql.org (Postfix) with ESMTP id 0BED45AF1F4 for ; Tue, 20 Dec 2005 11:20:22 +0000 (GMT) Received: from [192.168.2.101] (82.240.84.48) by mx.laposte.net (7.2.060.1) (authenticated as ah.pgsql) id 43839F2F012EF1C3 for pgsql-admin@postgresql.org; Tue, 20 Dec 2005 12:18:33 +0100 Message-ID: <43A7E885.2080908@laposte.net> Date: Tue, 20 Dec 2005 12:18:29 +0100 From: Armel HERVE User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Custom types for a Windows server Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=4.152 required=5 tests=[DNS_FROM_SECURITYSAGE=2.001, RCVD_IN_WHOIS_INVALID=2.151] X-Spam-Score: 4.152 X-Spam-Level: **** X-Archive-Number: 200512/215 X-Sequence-Number: 19935 Hi there, we made some custom types (written in C) for PostgreSQL onto a Linux server. We need to deploy a Windows server... The documentation does not talk about a shared library for Windows (http://www.postgresql.org/docs/8.1/interactive/xfunc-c.html#DFUNC) I tried to compile its custom types with borland bcc32, with no success: Does somebody can help me ? Thanks Armel (who writes English very bad...) D:\tmp>bcc32 -I"c:\Program Files\PostgreSQL\8.1\include\server" -Ic:\Borland\BCC55\Include -I"c:\Program Files\PostgreSQ L\8.1\include" country.c Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland country.c: Warning W8017 c:\Program Files\PostgreSQL\8.1\include\server\pg_config_os.h 145: Redefinition of 'SIGUSR1' is not identi cal Warning W8017 c:\Program Files\PostgreSQL\8.1\include\server\pg_config_os.h 146: Redefinition of 'SIGUSR2' is not identi cal Error E2147 c:\Program Files\PostgreSQL\8.1\include\server\pg_config_os.h 225: 'pid_t' cannot start a parameter declarat ion Error E2209 c:\Program Files\PostgreSQL\8.1\include\server\c.h 70: Unable to open include file 'strings.h' Error E2238 c:\Program Files\PostgreSQL\8.1\include\server\pg_config_os.h 79: Multiple declaration for 'shmid_ds' Error E2344 c:\Program Files\PostgreSQL\8.1\include\server\pg_config_os.h 78: Earlier declaration of 'shmid_ds' Error E2238 c:\Program Files\PostgreSQL\8.1\include\server\pg_config_os.h 94: Multiple declaration for 'semun' Error E2344 c:\Program Files\PostgreSQL\8.1\include\server\pg_config_os.h 93: Earlier declaration of 'semun' Error E2238 c:\Program Files\PostgreSQL\8.1\include\server\pg_config_os.h 101: Multiple declaration for 'sembuf' Error E2344 c:\Program Files\PostgreSQL\8.1\include\server\pg_config_os.h 100: Earlier declaration of 'sembuf' Error E2238 c:\Program Files\PostgreSQL\8.1\include\server\pg_config_os.h 149: Multiple declaration for 'timezone' Error E2344 c:\Program Files\PostgreSQL\8.1\include\server\pg_config_os.h 148: Earlier declaration of 'timezone' Error E2238 c:\Program Files\PostgreSQL\8.1\include\server\pg_config_os.h 157: Multiple declaration for 'itimerval' Error E2344 c:\Program Files\PostgreSQL\8.1\include\server\pg_config_os.h 156: Earlier declaration of 'itimerval' Error E2147 c:\Program Files\PostgreSQL\8.1\include\server\pg_config_os.h 225: 'pid_t' cannot start a parameter declarat ion Error E2209 c:\Program Files\PostgreSQL\8.1\include\server\c.h 98: Unable to open include file 'libintl.h' Error E2176 c:\Program Files\PostgreSQL\8.1\include\server\c.h 291: Too many types in declaration Error E2176 c:\Program Files\PostgreSQL\8.1\include\server\c.h 294: Too many types in declaration Error E2209 c:\Program Files\PostgreSQL\8.1\include\server\port.h 16: Unable to open include file 'pwd.h' Error E2209 c:\Program Files\PostgreSQL\8.1\include\server\port.h 17: Unable to open include file 'netdb.h' Error E2221 c:\Program Files\PostgreSQL\8.1\include\server\port.h 252: Macro argument syntax error Error E2209 c:\Program Files\PostgreSQL\8.1\include\server\port.h 307: Unable to open include file 'netinet/in.h' Error E2209 c:\Program Files\PostgreSQL\8.1\include\server\port.h 308: Unable to open include file 'arpa/inet.h' Error E2040 c:\Program Files\PostgreSQL\8.1\include\server\port.h 318: Declaration terminated incorrectly Error E2451 country.c 267: Undefined symbol '__func__' in function country_in Error E2140 country.c 271: Declaration is not allowed here in function country_in Error E2140 country.c 272: Declaration is not allowed here in function country_in Error E2228 country.c 272: Too many error or warning messages in function country_in *** 26 errors in Compile ***