public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Conflict between libcygwin.a and GCC core libraries
@ 2002-11-20  2:21 Max Bowsher
  2002-11-20  2:23 ` Markus Gerwinski
  0 siblings, 1 reply; 11+ messages in thread
From: Max Bowsher @ 2002-11-20  2:21 UTC (permalink / raw)
  To: markus, cygwin

>
>Subject: Re: Conflict between libcygwin.a and GCC core libraries
>   From: Markus Gerwinski <markus@gerwinski.de>
>   Date: Wed, 20 Nov 2002 10:36:14 +0100
>     To: cygwin@cygwin.com
>
>Max Bowsher wrote:
>> Actually, pipe and kill might not be. Don't know. You'd have to look and
>> find out.
>
>Well, the undefined references to pipe and kill were "solved" by linking
>one of the "forbidden" libraries (-lcygwin, -lc, -lg...), so it seems there
>are at least dummy implementations, or do I misinterpret this?
>
>As it looks like now, my only alternatives are: Linking one of those
>"forbidden" libraries and getting a "multiple definition of `atexit'",
>or not linking them and getting that bunch of undefined references.
>
>What can I do here? I've been sitting on this problem for a week now, and
>I don't have any ideas what more to try.

You are mixing the Cygwin and MinGW environments. This *will not work*. The thing you are trying to compile does not appear to have been ported to allow it to run on native Windows, and to run it on Cygwin would require a Cygwin-compiled gtk+, which is a whole new can of worms.

You have 2 options, as far as I can see - give up, or devote lots of time to either porting GPA, or compiling a Cygwin gtk+ (and all its many dependencies.)

Max.



















































--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Conflict between libcygwin.a and GCC core libraries
  2002-11-20  2:21 Conflict between libcygwin.a and GCC core libraries Max Bowsher
@ 2002-11-20  2:23 ` Markus Gerwinski
  0 siblings, 0 replies; 11+ messages in thread
From: Markus Gerwinski @ 2002-11-20  2:23 UTC (permalink / raw)
  To: cygwin; +Cc: peter

Max Bowsher wrote:
> You are mixing the Cygwin and MinGW environments. This *will not work*. The
> thing you are trying to compile does not appear to have been ported to allow
> it to run on native Windows, and to run it on Cygwin would require a
> Cygwin-compiled gtk+, which is a whole new can of worms.
> 
> You have 2 options, as far as I can see - give up, or devote lots of time to
> either porting GPA, or compiling a Cygwin gtk+ (and all its many
> dependencies.)

Okay, I'll try another way.

Thanks alot for your help

  Markus

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Conflict between libcygwin.a and GCC core libraries
  2002-11-19 11:28             ` Max Bowsher
@ 2002-11-20  2:00               ` Markus Gerwinski
  0 siblings, 0 replies; 11+ messages in thread
From: Markus Gerwinski @ 2002-11-20  2:00 UTC (permalink / raw)
  To: cygwin

Max Bowsher wrote:
> Actually, pipe and kill might not be. Don't know. You'd have to look and
> find out.

Well, the undefined references to pipe and kill were "solved" by linking
one of the "forbidden" libraries (-lcygwin, -lc, -lg...), so it seems there
are at least dummy implementations, or do I misinterpret this?

As it looks like now, my only alternatives are: Linking one of those
"forbidden" libraries and getting a "multiple definition of `atexit'",
or not linking them and getting that bunch of undefined references.

What can I do here? I've been sitting on this problem for a week now, and
I don't have any ideas what more to try.

  Markus

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Conflict between libcygwin.a and GCC core libraries
  2002-11-19 10:32           ` Markus Gerwinski
@ 2002-11-19 11:28             ` Max Bowsher
  2002-11-20  2:00               ` Markus Gerwinski
  0 siblings, 1 reply; 11+ messages in thread
From: Max Bowsher @ 2002-11-19 11:28 UTC (permalink / raw)
  To: Markus Gerwinski, cygwin; +Cc: peter

Markus Gerwinski <markus@gerwinski.de> wrote:

> Max Bowsher wrote:
>>>> In short the error messages say, I get 'undefined reference's to
>>>> QUITE a lot of functions, among them some essential gcc functions
>>>> like __assert, __errno, pipe, kill, fork etc.
>> 'fork' isn't available under MinGW.
>
> Good to know... Anyway, the other ones should be there, don't they?

Actually, pipe and kill might not be. Don't know. You'd have to look and
find out.

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Conflict between libcygwin.a and GCC core libraries
  2002-11-19 10:16         ` Max Bowsher
@ 2002-11-19 10:32           ` Markus Gerwinski
  2002-11-19 11:28             ` Max Bowsher
  0 siblings, 1 reply; 11+ messages in thread
From: Markus Gerwinski @ 2002-11-19 10:32 UTC (permalink / raw)
  To: cygwin; +Cc: peter

Max Bowsher wrote:
> >> In short the error messages say, I get 'undefined reference's to
> >> QUITE a lot of functions, among them some essential gcc functions
> >> like __assert, __errno, pipe, kill, fork etc.
> 'fork' isn't available under MinGW.

Good to know... Anyway, the other ones should be there, don't they?

  Markus

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Conflict between libcygwin.a and GCC core libraries
  2002-11-19  9:53       ` Markus Gerwinski
@ 2002-11-19 10:16         ` Max Bowsher
  2002-11-19 10:32           ` Markus Gerwinski
  0 siblings, 1 reply; 11+ messages in thread
From: Max Bowsher @ 2002-11-19 10:16 UTC (permalink / raw)
  To: Markus Gerwinski, cygwin

Markus Gerwinski <markus@gerwinski.de> wrote:

>> Max Bowsher wrote:
>>> Post details of the errors with -mno-cygwin but without -lcygwin.
>> 
>> Okay. The full compiler call is attached in file log1, the error
>> message in log2. It's everything left from the whole output of
>> 'make'; all other jobs have already run fine.
>> 
>> In short the error messages say, I get 'undefined reference's to
>> QUITE a lot of functions, among them some essential gcc functions
>> like __assert, __errno, pipe, kill, fork etc.

'fork' isn't available under MinGW.


Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Conflict between libcygwin.a and GCC core libraries
  2002-11-19  8:56     ` Max Bowsher
@ 2002-11-19  9:53       ` Markus Gerwinski
  2002-11-19 10:16         ` Max Bowsher
  0 siblings, 1 reply; 11+ messages in thread
From: Markus Gerwinski @ 2002-11-19  9:53 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 458 bytes --]

Max Bowsher wrote:
> Post details of the errors with -mno-cygwin but without -lcygwin.

Okay. The full compiler call is attached in file log1, the error message in
log2. It's everything left from the whole output of 'make'; all other jobs have
already run fine.

In short the error messages say, I get 'undefined reference's to QUITE a lot of
functions, among them some essential gcc functions like __assert, __errno,
pipe, kill, fork etc.

Yours,

  Markus

[-- Attachment #2: log1 --]
[-- Type: text/plain, Size: 1502 bytes --]

gcc  -g -O2 -mno-cygwin -mms-bitfields  -I/mysoftware/atk-dev-1.0.3-20020821/include/atk-1.0 -I/mysoftware/glib-dev-2.0.6-20020802/include/glib-2.0 -I/mysoftware/glib-dev-2.0.6-20020802/lib/glib-2.0/include -I/mysoftware/gtk+-dev-2.0.6-20020921/include/gtk-2.0 -I/mysoftware/gtk+-dev-2.0.6-20020921/lib/gtk-2.0/include -I/mysoftare/pango-dev-1.0.4-20020928/include/pango-1.0 -I/mysoftware/pango-dev-1.0.4-20020928/include/pango-1.0 -I/mysoftware/zlib-1.1.4-lib/include -I/home/markus/gpgme-0.3.12/gpgme -DGTK_ENABLE_BROKEN -I/usr/local/include -Wall   -o gpa.exe  gpa.o gpawindowkeeper.o gtktools.o helpmenu.o optionsmenu.o icons.o gpawidgets.o gpafilesel.o fileman.o filesigndlg.o encryptdlg.o verifydlg.o keyring.o ownertrustdlg.o keysigndlg.o keyimportdlg.o keyimpseldlg.o keyexportdlg.o keygendlg.o keygenwizard.o qdchkpwd.o keyeditdlg.o expirydlg.o keydeletedlg.o keylist.o siglist.o gpawizard.o gpapastrings.o gpa_license.o keyserver.o w32reg.o simple-gettext.o hidewnd.o keytable.o gpgmetools.o gpgmeedit.o gpgmeparsers.o server_access.o -L ../jnlib -ljnlib ../intl/libintl.a  -lz -lm   -L/mysoftware/atk-dev-1.0.3-20020821/lib -L/mysoftware/glib-dev-2.0.6-20020802/lib -L/mysoftware/gtk+-dev-2.0.6-20020921/lib -L/mysoftare/pango-dev-1.0.4-20020928/lib -L/mysoftware/pango-dev-1.0.4-20020928/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv   -L/usr/local/lib -lgpgme -lpthread -lws2_32

[-- Attachment #3: log2 --]
[-- Type: text/plain, Size: 12086 bytes --]

gpafilesel.o(.text+0x84b9): In function `find_completion_dir':
/home/markus/gpa/src/gpafilesel.c:3605: undefined reference to `fnmatch'
gpafilesel.o(.text+0x86ec): In function `attempt_file_completion':
/home/markus/gpa/src/gpafilesel.c:3719: undefined reference to `fnmatch'
gpafilesel.o(.text+0x8785):/home/markus/gpa/src/gpafilesel.c:3767: undefined reference to `fnmatch'
server_access.o(.text+0x70): In function `parse_keyserver_uri':
/home/markus/gpa/src/server_access.c:73: undefined reference to `strsep'
server_access.o(.text+0xdf):/home/markus/gpa/src/server_access.c:91: undefined reference to `strsep'
server_access.o(.text+0x11e):/home/markus/gpa/src/server_access.c:102: undefined reference to `strsep'
/usr/local/lib/libgpgme.a(gpgme.o)(.text+0x239): In function `gpgme_cancel':
/home/markus/gpgme-0.3.12/gpgme/gpgme.c:119: undefined reference to `_impure_ptr'
/usr/local/lib/libgpgme.a(gpgme.o)(.text+0x33f): In function `gpgme_set_op_info':
/home/markus/gpgme-0.3.12/gpgme/gpgme.c:193: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(version.o)(.text+0x59): In function `parse_version_number':
/home/markus/gpgme-0.3.12/gpgme/version.c:55: undefined reference to `_imp___ctype_'
/usr/local/lib/libgpgme.a(version.o)(.text+0xa4):/home/markus/gpgme-0.3.12/gpgme/version.c:63: undefined reference to `_imp___ctype_'
/usr/local/lib/libgpgme.a(keylist.o)(.text+0x3d9): In function `set_userid_flags':
/home/markus/gpgme-0.3.12/gpgme/keylist.c:168: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(keylist.o)(.text+0xd6a): In function `keylist_colon_handler':
/home/markus/gpgme-0.3.12/gpgme/keylist.c:361: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(keylist.o)(.text+0xf3c): In function `gpgme_op_keylist_event_cb':
/home/markus/gpgme-0.3.12/gpgme/keylist.c:538: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(keylist.o)(.text+0x1254): In function `gpgme_op_keylist_next':
/home/markus/gpgme-0.3.12/gpgme/keylist.c:723: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(key.o)(.text+0x521): In function `gpgme_key_ref':
/home/markus/gpgme-0.3.12/gpgme/key.c:313: undefined reference to `_impure_ptr'
/usr/local/lib/libgpgme.a(key.o)(.text+0x755): In function `gpgme_key_release':
/home/markus/gpgme-0.3.12/gpgme/key.c:377: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(key.o)(.text+0xb97): In function `gpgme_key_append_name':
/home/markus/gpgme-0.3.12/gpgme/key.c:629: undefined reference to `_imp___ctype_'
/usr/local/lib/libgpgme.a(key.o)(.text+0xc49):/home/markus/gpgme-0.3.12/gpgme/key.c:573: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(data.o)(.text+0x271): In function `gpgme_data_new_from_file':
/home/markus/gpgme-0.3.12/gpgme/data.c:241: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(data.o)(.text+0x28e):/home/markus/gpgme-0.3.12/gpgme/data.c:248: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(data.o)(.text+0x2a8):/home/markus/gpgme-0.3.12/gpgme/data.c:251: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(data.o)(.text+0x2ff):/home/markus/gpgme-0.3.12/gpgme/data.c:217: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(data.o)(.text+0x3eb): In function `gpgme_data_new_from_filepart':
/home/markus/gpgme-0.3.12/gpgme/data.c:353: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(data.o)(.text+0x3f7):/home/markus/gpgme-0.3.12/gpgme/data.c:345: more undefined references to `__errno' follow
/usr/local/lib/libgpgme.a(data.o)(.text+0x6c5): In function `gpgme_data_set_mode':
/home/markus/gpgme-0.3.12/gpgme/data.c:492: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(data.o)(.text+0x702): In function `gpgme_data_get_mode':
/home/markus/gpgme-0.3.12/gpgme/data.c:500: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(data.o)(.text+0xb2f): In function `gpgme_data_append':
/home/markus/gpgme-0.3.12/gpgme/data.c:758: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(data.o)(.text+0xb53):/home/markus/gpgme-0.3.12/gpgme/data.c:758: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(data.o)(.text+0xb78):/home/markus/gpgme-0.3.12/gpgme/data.c:758: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(data.o)(.text+0xbb9):/home/markus/gpgme-0.3.12/gpgme/data.c:716: more undefined references to `__assert' follow
/usr/local/lib/libgpgme.a(data.o)(.text+0x1071): In function `gpgme_data_inbound_handler':
/home/markus/gpgme-0.3.12/gpgme/data.c:896: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(data.o)(.text+0x1168): In function `write_mem_data':
/home/markus/gpgme-0.3.12/gpgme/data.c:948: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(data.o)(.text+0x11b1):/home/markus/gpgme-0.3.12/gpgme/data.c:949: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(data.o)(.text+0x1323): In function `write_cb_data':
/home/markus/gpgme-0.3.12/gpgme/data.c:975: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(data.o)(.text+0x1367):/home/markus/gpgme-0.3.12/gpgme/data.c:976: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(data.o)(.text+0x13f7): In function `gpgme_data_outbound_handler':
/home/markus/gpgme-0.3.12/gpgme/data.c:996: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(data.o)(.text+0x1425):/home/markus/gpgme-0.3.12/gpgme/data.c:1008: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(signers.o)(.text+0xa8): In function `gpgme_signers_clear':
/home/markus/gpgme-0.3.12/gpgme/signers.c:61: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(signers.o)(.text+0xb2):/home/markus/gpgme-0.3.12/gpgme/signers.c:61: undefined reference to `_impure_ptr'
/usr/local/lib/libgpgme.a(signers.o)(.text+0x1f7): In function `gpgme_signers_enum':
/home/markus/gpgme-0.3.12/gpgme/signers.c:119: undefined reference to `_impure_ptr'
/usr/local/lib/libgpgme.a(signers.o)(.text+0x229):/home/markus/gpgme-0.3.12/gpgme/signers.c:119: undefined reference to `_impure_ptr'
/usr/local/lib/libgpgme.a(recipient.o)(.text+0x258): In function `gpgme_recipients_all_valid':
/home/markus/gpgme-0.3.12/gpgme/recipient.c:237: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(verify.o)(.text+0x25f): In function `add_notation':
/home/markus/gpgme-0.3.12/gpgme/verify.c:165: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(edit.o)(.text+0x258): In function `gpgme_op_edit_start':
/home/markus/gpgme-0.3.12/gpgme/edit.c:117: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(trustlist.o)(.text+0x1fc): In function `gpgme_op_trustlist_event_cb':
/home/markus/gpgme-0.3.12/gpgme/trustlist.c:149: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(trustlist.o)(.text+0x40e): In function `gpgme_op_trustlist_next':
/home/markus/gpgme-0.3.12/gpgme/trustlist.c:255: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(wait.o)(.text+0x2b7):/home/markus/gpgme-0.3.12/gpgme/wait.c:175: more undefined references to `__assert' follow
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0xcb): In function `gpgme_io_read':
/home/markus/gpgme-0.3.12/gpgme/posix-io.c:57: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0x22b): In function `gpgme_io_write':
/home/markus/gpgme-0.3.12/gpgme/posix-io.c:76: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0x283): In function `gpgme_io_pipe':
/home/markus/gpgme-0.3.12/gpgme/posix-io.c:87: undefined reference to `pipe'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0x2ae):/home/markus/gpgme-0.3.12/gpgme/posix-io.c:91: undefined reference to `fcntl'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0x458): In function `gpgme_io_set_close_notify':
/home/markus/gpgme-0.3.12/gpgme/posix-io.c:132: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0x480): In function `gpgme_io_set_nonblocking':
/home/markus/gpgme-0.3.12/gpgme/posix-io.c:141: undefined reference to `fcntl'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0x4a3):/home/markus/gpgme-0.3.12/gpgme/posix-io.c:145: undefined reference to `fcntl'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0x625): In function `gpgme_io_spawn':
/home/markus/gpgme-0.3.12/gpgme/posix-io.c:178: undefined reference to `fork'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0x696):/home/markus/gpgme-0.3.12/gpgme/posix-io.c:185: undefined reference to `fork'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0x7c0):/home/markus/gpgme-0.3.12/gpgme/posix-io.c:236: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0x7f0):/home/markus/gpgme-0.3.12/gpgme/posix-io.c:229: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0x820):/home/markus/gpgme-0.3.12/gpgme/posix-io.c:220: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0x85f):/home/markus/gpgme-0.3.12/gpgme/posix-io.c:204: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0x8e7):/home/markus/gpgme-0.3.12/gpgme/posix-io.c:166: undefined reference to `sigaction'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0x90f):/home/markus/gpgme-0.3.12/gpgme/posix-io.c:170: undefined reference to `sigemptyset'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0x92e):/home/markus/gpgme-0.3.12/gpgme/posix-io.c:172: undefined reference to `sigaction'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0xc7c): In function `gpgme_io_select':
/home/markus/gpgme-0.3.12/gpgme/posix-io.c:353: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0xc86):/home/markus/gpgme-0.3.12/gpgme/posix-io.c:357: undefined reference to `__errno'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0xe0e):/home/markus/gpgme-0.3.12/gpgme/posix-io.c:367: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0xe88):/home/markus/gpgme-0.3.12/gpgme/posix-io.c:341: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(posix-io.o)(.text+0x9f8): In function `gpgme_io_kill':
/home/markus/gpgme-0.3.12/gpgme/posix-io.c:293: undefined reference to `kill'
/usr/local/lib/libgpgme.a(conversion.o)(.text+0x124): In function `gpgme_decode_c_string':
/home/markus/gpgme-0.3.12/gpgme/conversion.c:133: undefined reference to `_imp___ctype_'
/usr/local/lib/libgpgme.a(debug.o)(.text+0x2a): In function `trim_spaces':
/home/markus/gpgme-0.3.12/gpgme/debug.c:59: undefined reference to `_imp___ctype_'
/usr/local/lib/libgpgme.a(debug.o)(.text+0x65):/home/markus/gpgme-0.3.12/gpgme/debug.c:63: undefined reference to `_imp___ctype_'
/usr/local/lib/libgpgme.a(debug.o)(.text+0x12b): In function `debug_init':
/home/markus/gpgme-0.3.12/gpgme/debug.c:89: undefined reference to `_impure_ptr'
/usr/local/lib/libgpgme.a(debug.o)(.text+0x15d):/home/markus/gpgme-0.3.12/gpgme/debug.c:97: undefined reference to `getuid'
/usr/local/lib/libgpgme.a(debug.o)(.text+0x164):/home/markus/gpgme-0.3.12/gpgme/debug.c:97: undefined reference to `geteuid'
/usr/local/lib/libgpgme.a(rungpg.o)(.text+0x4d8): In function `close_notify_handler':
/home/markus/gpgme-0.3.12/gpgme/rungpg.c:160: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(rungpg.o)(.text+0x8c8): In function `gpgme_gpg_enable_pipemode':
/home/markus/gpgme-0.3.12/gpgme/rungpg.c:353: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(rungpg.o)(.text+0x8e8):/home/markus/gpgme-0.3.12/gpgme/rungpg.c:353: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(rungpg.o)(.text+0x9b6): In function `gpgme_gpg_add_arg':
/home/markus/gpgme-0.3.12/gpgme/rungpg.c:369: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(rungpg.o)(.text+0x9d7):/home/markus/gpgme-0.3.12/gpgme/rungpg.c:369: undefined reference to `__assert'
/usr/local/lib/libgpgme.a(rungpg.o)(.text+0xa9a):/home/markus/gpgme-0.3.12/gpgme/rungpg.c:393: more undefined references to `__assert' follow
/usr/local/lib/libgpgme.a(ath.o)(.text+0x239): In function `gpgme_ath_select':
/home/markus/gpgme-0.3.12/gpgme/ath.c:134: undefined reference to `select'
/usr/local/lib/libgpgme.a(ath.o)(.text+0x2a1): In function `gpgme_ath_waitpid':
/home/markus/gpgme-0.3.12/gpgme/ath.c:144: undefined reference to `waitpid'
make: *** [gpa.exe] Error 1


[-- Attachment #4: Type: text/plain, Size: 214 bytes --]

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Conflict between libcygwin.a and GCC core libraries
  2002-11-19  8:50   ` Markus Gerwinski
@ 2002-11-19  8:56     ` Max Bowsher
  2002-11-19  9:53       ` Markus Gerwinski
  0 siblings, 1 reply; 11+ messages in thread
From: Max Bowsher @ 2002-11-19  8:56 UTC (permalink / raw)
  To: Markus Gerwinski, cygwin; +Cc: peter

Markus Gerwinski <markus@gerwinski.de> wrote:

> To be honest, as long as I end up with a runnable gpa.exe for
> Windows, I dont' care... I gave it a try using Cygwin.
> 
>> If Cygwin, drop the -mno-cygwin.
> 
> Then GTK+-2.0 refuses to link.

Ahh. You will need to use the same setting as your gtk+ was compiled with.
Based on what you say above, I think that you will need -mno-cygwin.

But, you will *not* solve anything by adding -lcygwin.

Post details of the errors with -mno-cygwin but without -lcygwin.

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Conflict between libcygwin.a and GCC core libraries
  2002-11-19  8:37 ` Max Bowsher
@ 2002-11-19  8:50   ` Markus Gerwinski
  2002-11-19  8:56     ` Max Bowsher
  0 siblings, 1 reply; 11+ messages in thread
From: Markus Gerwinski @ 2002-11-19  8:50 UTC (permalink / raw)
  To: cygwin; +Cc: peter

Max Bowsher wrote:
> > After changing some more stuff in the makefiles, compiling runs fine now,
> > but linking still causes trouble. First, I got a lot of `undefined
> > references' to functions as basic as `__assert'. To get rid of them, I
> > included "-lcygwin" by hand into the linker options.
> Aaargh! First you tell gcc to not use cygwin, then you tell it to sort-of
> use cygwin.
> No wonder its confused!

It seemed to be the only way to avoid the undefined references I had before.
I had tried some other ways, but they either didn't work at all or yielded
the same result. (Explicitly linking with -lc, for example, got me the same
error message; just "libcygwin.a" was replaced by "libc.a".)

> Solution: Don't do that.

Okay, but what else?

> Do you actually intend to compile GPA for MinGW or Cygwin?

To be honest, as long as I end up with a runnable gpa.exe for Windows, I
dont' care... I gave it a try using Cygwin.

> If Cygwin, drop the -mno-cygwin.

Then GTK+-2.0 refuses to link.

> If MinGW, make sure the gcc-mingw package is installed.

It is, at least the binaries.

Yours,

  Markus

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Conflict between libcygwin.a and GCC core libraries
  2002-11-19  8:27 Markus Gerwinski
@ 2002-11-19  8:37 ` Max Bowsher
  2002-11-19  8:50   ` Markus Gerwinski
  0 siblings, 1 reply; 11+ messages in thread
From: Max Bowsher @ 2002-11-19  8:37 UTC (permalink / raw)
  To: Markus Gerwinski, cygwin; +Cc: peter

Markus Gerwinski <markus@gerwinski.de> wrote:
> I'm currently trying to compile GPA (s.
> http://www.gnupg.org/gpa.html) on Cygwin. To get it up and running,
> first of all I had to insert "-mno-cygwin
> -mms-bitfields" into the compiler options.

If you add -mno-cygwin, then you are trying to compile GPA for MinGW, not
Cygwin.

> After changing some more
> stuff in the makefiles, compiling runs fine now, but linking still
> causes trouble. First, I got a lot of `undefined references' to
> functions as basic as `__assert'. To get rid of them, I included
> "-lcygwin" by hand into the linker options.

Aaargh! First you tell gcc to not use cygwin, then you tell it to sort-of
use cygwin.
No wonder its confused!

Solution: Don't do that.

Do you actually intend to compile GPA for MinGW or Cygwin?
If Cygwin, drop the -mno-cygwin.
If MinGW, make sure the gcc-mingw package is installed.



Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Conflict between libcygwin.a and GCC core libraries
@ 2002-11-19  8:27 Markus Gerwinski
  2002-11-19  8:37 ` Max Bowsher
  0 siblings, 1 reply; 11+ messages in thread
From: Markus Gerwinski @ 2002-11-19  8:27 UTC (permalink / raw)
  To: cygwin; +Cc: peter

Hi folks,

I'm currently trying to compile GPA (s. http://www.gnupg.org/gpa.html) on
Cygwin. To get it up and running, first of all I had to insert "-mno-cygwin
-mms-bitfields" into the compiler options. After changing some more stuff in
the makefiles, compiling runs fine now, but linking still causes trouble.
First, I got a lot of `undefined references' to functions as basic as
`__assert'. To get rid of them, I included "-lcygwin" by hand into the linker
options. Now, the undefined references have disappeared, but instead I get
the following error message:

  libcygwin.a: multiple definition of `atexit'
  crt2.o:crt1.c: first defined here

Since libcygwin and crt2 are both essential parts of the development
environment itself, I don't see a possibility how to solve this conflict.
Can anyone help me?

Thanks alot in advance

  Markus

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-11-20 10:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-20  2:21 Conflict between libcygwin.a and GCC core libraries Max Bowsher
2002-11-20  2:23 ` Markus Gerwinski
  -- strict thread matches above, loose matches on Subject: below --
2002-11-19  8:27 Markus Gerwinski
2002-11-19  8:37 ` Max Bowsher
2002-11-19  8:50   ` Markus Gerwinski
2002-11-19  8:56     ` Max Bowsher
2002-11-19  9:53       ` Markus Gerwinski
2002-11-19 10:16         ` Max Bowsher
2002-11-19 10:32           ` Markus Gerwinski
2002-11-19 11:28             ` Max Bowsher
2002-11-20  2:00               ` Markus Gerwinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).