Re: [Chicken-users] Re: Trouble with easyffi

2009-06-26 Thread Peter Bex
On Fri, Jun 26, 2009 at 03:28:45PM -0400, bill wrote:
> Hi,
> 
> If this does not help, I can put together a small app that I can send 
> you.

Well, it's all rather fragmentary and hard to tell what's wrong.
Did you try trunk chicken, BTW?

> One of the failing programs is my own editor and a bit too big 
> to send - although I have no qualms in doing  so.

That doesn't appeal much to me :)  A simple test case would be more
useful.  Try chicken trunk first!

> Again, all of this worked before moving to Xubunto and Chicken 4.0.
> Could some library be missing?

Not likely.  You'd probably get an error in that case.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
-- Donald Knuth


pgp7fhiUGpZvx.pgp
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Re: Trouble with easyffi

2009-06-26 Thread bill

Hi,

I think we're talking at cross purposes here.I thought you meant 
when I compiled (installed) easyffi.  

I have two old programs that worked fine on Gentoo (with I believe 
chicken 3.4).   Both link into Gtk.  I have recently tried running a 
little app to test Cairo.


All of these give me no errors with I compile them.   The only error 
comes when I try to run them - the 'foreign parse' error.


On the Gtk programs most of the code is just calling scheme described 
call to Gtk.For instance:


  #>?
GtkWidget *gtk_hpaned_new(void);

void gtk_widget_set_size_request(GtkWidget *widget, int width, int 
height);

  <#

which are used thus in chicken:

(define hpane   (gtk_hpaned_new))  
(gtk_widget_set_size_request hpane 1200 650))


Some of the code is actual C code snippets that are defined as this:

  #>!

 char *get_text(GtkTextBuffer *tbuffer)
 {
   GtkTextIter s_iter;
   GtkTextIter e_iter;

   gtk_text_buffer_get_start_iter(tbuffer, &s_iter);
   gtk_text_buffer_get_end_iter(tbuffer, &e_iter);
  
   return gtk_text_buffer_get_text(tbuffer, &s_iter, &e_iter, FALSE);

 }

 <#


If this does not help, I can put together a small app that I can send 
you.One of the failing programs is my own editor and a bit too big 
to send - although I have no qualms in doing  so.


Again, all of this worked before moving to Xubunto and Chicken 4.0.
Could some library be missing?


Bill


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Re: Trouble with easyffi

2009-06-25 Thread Peter Bex
On Thu, Jun 25, 2009 at 03:44:51PM -0400, bill wrote:
> Hi again,
> 
> I removed easyffi and started over.   These are the warning I get when I 
> compile:

I'm not sure, did I miss something?  Where is the code you're trying to
compile?

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
-- Donald Knuth


pgpsmaDVOlwOi.pgp
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Re: Trouble with easyffi

2009-06-25 Thread bill

Hi again,

I removed easyffi and started over.   These are the warning I get when I 
compile:


Warning: redefinition of imported value binding: lexer-init-buffer-len

Warning: redefinition of imported value binding: lexer-integer-newline

Warning: redefinition of imported value binding: lexer-raw-IS-maker

Warning: redefinition of imported value binding: lexer-make-IS

Warning: redefinition of imported value binding: lexer-get-func-getc

Warning: redefinition of imported value binding: lexer-get-func-ungetc

Warning: redefinition of imported value binding: lexer-get-func-line

Warning: redefinition of imported value binding: lexer-get-func-column

Warning: redefinition of imported value binding: lexer-get-func-offset

Warning: redefinition of imported value binding: lexer-make-tree-lexer

Warning: redefinition of imported value binding: lexer-make-char-lexer

Warning: redefinition of imported value binding: lexer-make-code-lexer

Warning: redefinition of imported value binding: lexer-make-lexer

Warning: redefinition of imported value binding: lexer

Warning: local assignment to unused variable `easyffi-base#lexer-getc' may be 
unintended

Warning: global variable `easyffi-base#lexer-getc' is never used

Warning: local assignment to unused variable `easyffi-base#lexer-ungetc' may be 
unintended

Warning: global variable `easyffi-base#lexer-ungetc' is never used
 /usr/bin/csc -feature compiling-extension  -host -s -O2 -d0 
easyffi-base.import.scm
 /usr/bin/csc -feature compiling-extension  -host -s -O2 -d0 easyffi.scm -j 
easyffi

Warning: redefinition of imported syntax binding: foreign-declare
 /usr/bin/csc -feature compiling-extension  -host -s -O2 -d0 easyffi.import.scm
 /usr/bin/csc -feature compiling-extension  -host -O2 -d0 chicken-wrap.scm

Warning: extension `easyffi-base' is currently not installed

Warning: local assignment to unused variable `##compiler#debugging-chicken' may 
be unintended

The compile does run to the end without errors.   And when I run chicken-status 
I get:

chicken-wrap 
.
 version: 1.95
easyffi 
..
 version: 1.95
easyffi-base 
.
 version: 1.95
matchable 
...
 version: 2.4.2
silex 
.
 version: 1.2
xlib 
..
 version: 1.2

I really need this back - so any ideas you can give me will be greatly appreciated.


Bill



___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users