From: | Reini Urban <rurban(at)x-ray(dot)at> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: cygwin build failure |
Date: | 2004-11-07 08:20:57 |
Message-ID: | 418DDAE9.3080401@x-ray.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Tom Lane schrieb:
> Dunno about the optarg business; it sounds like a DLLIMPORT is needed
> someplace, but maybe that is a bug in the Cygwin headers rather than
> our bug?
No, that's no bug, just diagnostic messages with the new linker.
>gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wendif-labels
>-fno-strict-aliasing -g pg_dump.o common.o pg_dump_sort.o
>pg_backup_archiver.o pg_backup_db.o pg_backup_custom.o
>pg_backup_files.o pg_backup_null.o pg_backup_tar.o dumputils.o
>../../../src/backend/parser/keywords.o -L../../../src/interfaces/libpq
>-lpq -L../../../src/port -L/usr/local/lib -lpgport -lcrypt -o
>pg_dump.exe
...
>Info: resolving _optarg by linking to __imp__optarg (auto-import)
>Info: resolving _optind by linking to __imp__optind (auto-import)
>collect2: ld returned 1 exit status
>make[3]: *** [pg_dump] Error 1
I'll check how to get rid of that if you want to get rid of it without
grep -v :)
But I don't think that is is easily possible to turn off these purely
diagnostic messages, without cluttering the source with those
__DLL_IMPORT declarations.
And I found no easy ld cmdline override solution. But I'll backcheck.
#ifdef BUILDING_DLL
# ifndef __GNUC__
# define __DLL_IMPORT __declspec(dllimport)
# else
# define __DLL_IMPORT __attribute__((dllimport)) extern
# endif
#else
# define __DLL_IMPORT
#endif
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2004-11-07 08:35:42 | Re: Proposal for Recover mode in pg_ctl (in 8.0) |
Previous Message | Mark Kirkwood | 2004-11-07 01:03:14 | Re: Proposal for Recover mode in pg_ctl (in 8.0) |
From | Date | Subject | |
---|---|---|---|
Next Message | Reini Urban | 2004-11-07 08:30:53 | Re: Add remove duplicate slashes to canonicalize_path() |
Previous Message | Markus Bertheau | 2004-11-07 02:36:37 | Re: contrib/xml2: add function xml_encode_special_chars |