[Mono-devel-list] RE: build error Re: Cocoa Bindings for Mono

Urs Muff umuff at QUARK.com
Fri May 21 09:31:52 EDT 2004


This seems to be defined and used in mono/wrapper.c, io-layer/processes.c,
metadata/icall.c.  all using extern char**environ instead of a include!

 

- Urs C. Muff
Software Architect             - Research Lab,
<http://umuff-nt/FlexWiki/default.aspx/Quark.Projects.QuarkEIF.QuarkEIF>
Quark EIF
Quark Inc.

UMuff at Quark.Com              - X6360
+1 (303) 894 3360

CONFIDENTIALITY NOTICE

This e-mail transmission and any documents, files, or previous e-mail
messages appended or attached to it, may contain information that is
confidential or legally privileged. If you are not the intended recipient,
or a person responsible for delivering it to the intended recipient, you are
hereby notified that you must not read this transmission and that any
disclosure, copying, printing, distribution, or use of the information
contained or attached to this transmission is STRICTLY PROHIBITED. If you
have received this transmission in error, please immediately notify the
sender by telephone +1 (303) 894-3360 or return e-mail message
<mailto:umuff at quark.com> umuff at quark.com and delete the original
transmission, its attachments, and any copies without reading or saving in
any manner. Thank you.

 

  _____  

From: Adhamh Findlay [mailto:adhamh at apple.com] 
Sent: Friday, May 21, 2004 6:43 AM
To: Urs Muff; 'Miguel de Icaza'
Subject: Re: build error Re: Cocoa Bindings for Mono

 

So I did find out what was going on. I have Urs' bridge building as a Cocoa
Framework now. 

 

The problem is that libmint doesn't have _environ defined. I still need to
play with that source and determine where to add: 

 

#if defined (__APPLE__) 

#include <crt_externs.h> 

#define environ (* _NSGetEnviron()) 

#endif 

 

The short term fix was to pass the linker this flag: "-undefined
dynamic_lookup" 

 

I'll look at the mono source today and determine where the ifdefs need to
go. 

 

Adhamh 

 

PS: Jordan is a BSD guy he doesn't touch xcode, its got a gui. :-) 

 

Adhamh 

 

On May 21, 2004, at 7:11 AM, Urs Muff wrote: 

 

Try asking this question on mono-dev list (mono-devel-list at ximian.com) or on


IRC GIMPnet #mono, most hackers are pretty helpful... 

 

Jordan might even know what's going on. 

 

- Urs 

 

-----Original Message----- 

From: Adhamh Findlay [mailto:adhamh at apple.com] 

Sent: Thursday, May 20, 2004 6:00 PM 

To: Urs Muff 

Subject: Re: build error Re: Cocoa Bindings for Mono 

 

Still no luck on this... I'll keep digging. 

 

Adhamh 

On May 20, 2004, at 10:37 AM, Urs Muff wrote: 

 

You should only need mint for now, since I'm using mono interpreter 

for now, 

to get dependencies you should be able to do: 

pkg-config --libs mint         for linker dependencies 

pkg-config --cflags mint        for compiler dependencies 

 

let me know if you need more info. 

 

- URS C. MUFF 

SOFTWARE ARCHITECT              - RESEARCH LAB, QUARK EIF 

QUARK INC. 

UMUFF at QUARK.COM         - X6360 

+1 (303) 894 3360 

CONFIDENTIALITY NOTICE 

This e-mail transmission and any documents, files, or previous e-mail 

messages appended or attached to it, may contain information that is 

confidential or legally privileged. If you are not the intended 

recipient, 

or a person responsible for delivering it to the intended recipient, 

you are 

hereby notified that you must not read this transmission and that any 

disclosure, copying, printing, distribution, or use of the information 

contained or attached to this transmission is STRICTLY PROHIBITED. If 

you 

have received this transmission in error, please immediately notify the 

sender by telephone +1 (303) 894-3360 or return e-mail message 

umuff at quark.com and delete the original transmission, its attachments, 

and 

any copies without reading or saving in any manner. Thank you. 

 

-----Original Message----- 

From: Adhamh Findlay [mailto:adhamh at apple.com] 

Sent: Wednesday, May 19, 2004 8:23 PM 

To: Urs Muff 

Subject: Re: build error Re: Cocoa Bindings for Mono 

 

On May 18, 2004, at 10:37 PM, Urs Muff wrote: 

Further turning the static library into a apple framework bundle/dylib 

so 

that it can be referred to by other projects more easily. (I have NO 

idea 

how to do that). 

 

So I wanted to have a little more success and I am working on this. I 

got it going pretty good, but I am getting this error: 

 

ld: Undefined symbols: 

_environ 

/usr/bin/libtool: internal link edit command failed 

 

I haven't been able to determine why dylib I need. I'm already linking 

against libmono, libmint, and libglib. I've also tried to link against 

libguile and libgc. 

 

Not resolves the error. Do you know what I need to link against? 





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040521/ac66ffb5/attachment.html 


More information about the Mono-devel-list mailing list