public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libobjc/23215] New: libobjc doesn't work on windows.
@ 2005-08-03 13:49 jeremy at deadbeef dot com
  2005-08-03 13:57 ` [Bug libobjc/23215] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jeremy at deadbeef dot com @ 2005-08-03 13:49 UTC (permalink / raw)
  To: gcc-bugs

2 problems:

I noticed that thr-win32.c has no implementation, only stubs.  There is a 
version that has implementation at http://savannah.gnu.org/cgi-
bin/viewcvs/gnustep/gnustep/dev-libs/libobjc/thr-win32.c?rev=HEAD&content-
type=text/vnd.viewcvs-markup
That is not my code, and I am not the copyright holder, so I don't know what 
you need to do to get this into gcc.

second problem, libobjc isn't built as a dll on windows, and it needs to be so 
that other dlls can use objective-c.

Solve those two problems, and objc on win32 will be perfect!

-- 
           Summary: libobjc doesn't work on windows.
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libobjc
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jeremy at deadbeef dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: mingw32
  GCC host triplet: mingw32
GCC target triplet: mingw32


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23215


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

* [Bug libobjc/23215] libobjc doesn't work on windows.
  2005-08-03 13:49 [Bug libobjc/23215] New: libobjc doesn't work on windows jeremy at deadbeef dot com
@ 2005-08-03 13:57 ` pinskia at gcc dot gnu dot org
  2005-08-03 14:18 ` jeremy at deadbeef dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-03 13:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-03 13:57 -------
libobjc inside GCC does not use thr-*.c (except for thr-objc.c which is just a wrapper around the gthr-
*.h files) at all but gthr-win32.h inside the gcc directory which is also used by libstdc++.

Did you try --enable-shared as I think building shared libraries on win32 is disabled by default?
And if you want to report a bug about that, well that is really a libtool bug.

So I think this can be considered a non bug if --enabled-shared works for you.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23215


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

* [Bug libobjc/23215] libobjc doesn't work on windows.
  2005-08-03 13:49 [Bug libobjc/23215] New: libobjc doesn't work on windows jeremy at deadbeef dot com
  2005-08-03 13:57 ` [Bug libobjc/23215] " pinskia at gcc dot gnu dot org
@ 2005-08-03 14:18 ` jeremy at deadbeef dot com
  2005-08-03 17:32 ` jeremy at deadbeef dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jeremy at deadbeef dot com @ 2005-08-03 14:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jeremy at deadbeef dot com  2005-08-03 14:17 -------
Subject: Re:  libobjc doesn't work on windows.

I did try --enable-shared, and it still did not compile as a dll.  Either 
the configure in the CVS repos is not up to date and needs to be regenerated 
from configure.ac or else something else is wrong.

----- Original Message ----- 
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: <jeremy@deadbeef.com>
Sent: Wednesday, August 03, 2005 8:57 AM
Subject: [Bug libobjc/23215] libobjc doesn't work on windows.


>
> ------- Additional Comments From pinskia at gcc dot gnu dot org 
> 2005-08-03 13:57 -------
> libobjc inside GCC does not use thr-*.c (except for thr-objc.c which is 
> just a wrapper around the gthr-
> *.h files) at all but gthr-win32.h inside the gcc directory which is also 
> used by libstdc++.
>
> Did you try --enable-shared as I think building shared libraries on win32 
> is disabled by default?
> And if you want to report a bug about that, well that is really a libtool 
> bug.
>
> So I think this can be considered a non bug if --enabled-shared works for 
> you.
>
> -- 
>           What    |Removed                     |Added
> ----------------------------------------------------------------------------
>           Severity|normal                      |minor
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23215
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
> 



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23215


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

* [Bug libobjc/23215] libobjc doesn't work on windows.
  2005-08-03 13:49 [Bug libobjc/23215] New: libobjc doesn't work on windows jeremy at deadbeef dot com
  2005-08-03 13:57 ` [Bug libobjc/23215] " pinskia at gcc dot gnu dot org
  2005-08-03 14:18 ` jeremy at deadbeef dot com
@ 2005-08-03 17:32 ` jeremy at deadbeef dot com
  2005-08-03 17:35 ` pinskia at gcc dot gnu dot org
  2005-08-03 20:05 ` jeremy at deadbeef dot com
  4 siblings, 0 replies; 6+ messages in thread
From: jeremy at deadbeef dot com @ 2005-08-03 17:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jeremy at deadbeef dot com  2005-08-03 17:32 -------
Sorry that this is not a nice diff, but I am working from unclean sources 
(mingw 3.4.4 snapshot source)

It appears that libobjc/Makefile.in needs a target like this:
libobjc.la: $(OBJS)
	$(LIBTOOL_LINK) $(CC) -o $@ $(OBJS) \
		-rpath $(glibcpp_toolexeclibdir) \
		-version-info $(LIBOBJC_VERSION) -no-undefined

And then libtool has a bug also, in archive_expsym_cmds it checks to see if 
the first line of the def file has EXPORTS= in it, but in export_symbols_cmds 
it removed the EXPORTS line using sed.

Then --enable-shared might work.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23215


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

* [Bug libobjc/23215] libobjc doesn't work on windows.
  2005-08-03 13:49 [Bug libobjc/23215] New: libobjc doesn't work on windows jeremy at deadbeef dot com
                   ` (2 preceding siblings ...)
  2005-08-03 17:32 ` jeremy at deadbeef dot com
@ 2005-08-03 17:35 ` pinskia at gcc dot gnu dot org
  2005-08-03 20:05 ` jeremy at deadbeef dot com
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-03 17:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-03 17:35 -------
libobjc already have that target:
libobjc$(libext).la: $(OBJS)
        $(LIBTOOL_LINK) $(CC) -o $@ $(OBJS) \
                -rpath $(toolexeclibdir) \
                -version-info $(LIBOBJC_VERSION)

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23215


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

* [Bug libobjc/23215] libobjc doesn't work on windows.
  2005-08-03 13:49 [Bug libobjc/23215] New: libobjc doesn't work on windows jeremy at deadbeef dot com
                   ` (3 preceding siblings ...)
  2005-08-03 17:35 ` pinskia at gcc dot gnu dot org
@ 2005-08-03 20:05 ` jeremy at deadbeef dot com
  4 siblings, 0 replies; 6+ messages in thread
From: jeremy at deadbeef dot com @ 2005-08-03 20:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jeremy at deadbeef dot com  2005-08-03 20:05 -------
Sorry, the key was the -no-undefined bit.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23215


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

end of thread, other threads:[~2005-08-03 20:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-03 13:49 [Bug libobjc/23215] New: libobjc doesn't work on windows jeremy at deadbeef dot com
2005-08-03 13:57 ` [Bug libobjc/23215] " pinskia at gcc dot gnu dot org
2005-08-03 14:18 ` jeremy at deadbeef dot com
2005-08-03 17:32 ` jeremy at deadbeef dot com
2005-08-03 17:35 ` pinskia at gcc dot gnu dot org
2005-08-03 20:05 ` jeremy at deadbeef dot com

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).