This is the mail archive of the
cygwin
mailing list for the Cygwin project.
gcc auto-import info (Was: cygwin build failure)
- From: Reini Urban <rurban at x-ray dot at>
- To: cygwin <cygwin at cygwin dot com>
- Date: Sun, 07 Nov 2004 09:18:17 +0100
- Subject: gcc auto-import info (Was: cygwin build failure)
Does someone remember how to get rid of the new ld auto-import
Info: resolving _optarg by linking to __imp__optarg (auto-import)
Info: resolving _optind by linking to __imp__optind (auto-import)
messages?
I guess it's no -W, just a diagnostic message, for which not so many
options to supress exist.
Or can you easily declare them on the cmdline to be imported somehow?
Otherwise we'll have to decorate the src'es with DLLIMPORT.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--- Begin Message ---
- From: Andrew Dunstan <andrew at dunslane dot net>
- To: PostgreSQL-development <pgsql-hackers at postgresql dot org>
- Date: Sat, 06 Nov 2004 13:35:30 -0500
- Subject: [HACKERS] cygwin build failure
- Delivery-date: Sat, 06 Nov 2004 19:38:49 +0100
- Envelope-to: ru@x-ray.at
As requested by Reini I set up a Cygwin buildfarm client, and immediately got this build failure:
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
../../../src/port/libpgport.a(pgstrcasecmp.o)(.text+0x1b0): In function `pg_tolower':
/home/adunstan/pgbf/root/HEAD/pgsql.3200/src/port/pgstrcasecmp.c:119: multiple definition of `_pg_tolower'
../../../src/interfaces/libpq/libpq.a(dshcs00145.o)(.text+0x0): first defined here
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
see http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=gibbon&dt=2004-11-06%2018:11:58
(Is it possible to get rid of those Info lines?)
cheers
andrew
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
--- End Message ---
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/