[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]pnet build fix?

From: S11001001
Subject: [DotGNU]pnet build fix?
Date: Sun, 31 Mar 2002 01:19:35 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:0.9.9+) Gecko/20020326

To all those whose libffi doesn't work (this is for you, MisterP), there are better sources at GCC's Savannah repository.

Now, could someone please share some instructions on how to use this information w/o actually building all of gcc3?

Anyway, here are my experiences. (C-style comments)

First, save patchfile.dif (attached) in your base pnet directory.

/* outside pnet tree */
$ cvs -d:pserver:address@hidden:/cvsroot/gcc login
$ cvs -z3 -d:pserver:address@hidden:/cvsroot/gcc co gcc/libffi
$ cd gcc
$ cvs up -l
$ cd libffi
/* can't change, because weird aclocal changes */
$ emacs configure
/* go to line 3921 and take out a ../ before */
/* make sure to save */
$ ./configure
$ make
/* gcc emits error gcc: unrecognized option `-shared-libgcc', but no matter? */
/* also builds a test program, ffitest. You can run this...WFM */
/* no need to install... */

/* change to pnet directory */
$ ln -s (LIBFFI-DIRECTORY) ./libffi
$ patch -p0 < patchfile.dif
/* rebuild, and try it out! */

BTW: this is a good new sig:

(ildb) help
Undefined command: "help".  Try "help".
                --from `ildb', Southern Storm's IL Debugger

here's the regular linuxcookie sig

> What does ELF stand for (in respect to Linux?)
ELF is the first rock group that Ronnie James Dio performed with back in
the early 1970's.  In constrast, a.out is a misspelling  of the French word
for the month of August.  What the two have in common is beyond me, but
Linux users seem to use the two words together.
        -- seen on c.o.l.misc
# Patch created by sirian
# Date: Sun Mar 31 01:15:13 CST 2002
# Repository: pnet
# Comments:
# Fix to work with new libffi.
#### End of Preamble ####

#### Patch data follows ####
Index: engine/pinvoke.c
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/pinvoke.c,v
retrieving revision 1.5
diff -u -3 -p -c -r1.5 pinvoke.c
*** engine/pinvoke.c    22 Jan 2002 00:54:42 -0000      1.5
--- engine/pinvoke.c    31 Mar 2002 07:12:42 -0000
*** 20,26 ****
  #include "engine.h"
  #include "ffi.h"
- #include "ffi_private.h"
   * The hard work is done using "libffi", which is a generic library
--- 20,25 ----
#### End of Patch data ####

reply via email to

[Prev in Thread] Current Thread [Next in Thread]