From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25319 invoked by alias); 11 Aug 2003 20:30:03 -0000 Mailing-List: contact guile-gtk-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: guile-gtk-owner@sources.redhat.com Received: (qmail 25312 invoked from network); 11 Aug 2003 20:30:01 -0000 Received: from unknown (HELO octopussy.utanet.at) (213.90.36.45) by sources.redhat.com with SMTP; 11 Aug 2003 20:30:01 -0000 Received: from patricia.utanet.at ([213.90.36.8]) by octopussy.utanet.at with esmtp (Exim 4.12) id 19mJIm-0000Se-00 for guile-gtk@sources.redhat.com; Mon, 11 Aug 2003 22:30:00 +0200 Received: from dsl-238-57.utaonline.at ([212.152.238.57] helo=rotty-ipv4.yi.org) by patricia.utanet.at with esmtp (Exim 4.12) id 19mJIm-0005GG-00 for guile-gtk@sources.redhat.com; Mon, 11 Aug 2003 22:30:00 +0200 Received: from alice.rhinosaur.lan ([192.168.1.3] ident=mail) by rotty-ipv4.yi.org with esmtp (Exim 3.36 #1 (Debian)) id 19mJIx-00016v-00 for ; Mon, 11 Aug 2003 22:30:11 +0200 Received: from andy by alice.rhinosaur.lan with local (Exim 4.20) id 19mJIx-0003Fv-Io for guile-gtk@sources.redhat.com; Mon, 11 Aug 2003 22:30:11 +0200 To: guile-gtk@sources.redhat.com Subject: guile-gobject problem From: Andreas Rottmann Date: Mon, 11 Aug 2003 20:30:00 -0000 Message-ID: <87llu0vsx8.fsf@alice.rotty.yi.org> User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-q3/txt/msg00043.txt.bz2 Hi! Trying to use guile-gobject to create bindings for a library of mine, I always get C compiler errors, since there is a mapping generated from c-type none to , which causes the return type type in the wrapper to be declared of type 'none'. So I have in the log file: ,---- | Opaque types in the gw-dstw wrapset: c-name scm-name | | DSTWService* | gboolean | GType | char* | none | gunichar* | ... `---- Which leads to C code like this: ,---- | static char * gw__tmp246_dstw_servicetype_add_namestr = "dstw-servicetype-add"; | static SCM gw__tmp245_dstw_servicetype_add_wrapper (SCM gw__scm_arg0, SCM gw__scm_arg1 ) { | SCM gw__scm_result = SCM_UNSPECIFIED; | enum GW__ErrorStatus gw__error_status = GW__ERR_NONE; | SCM gw__error_data = SCM_UNSPECIFIED; | unsigned int gw__arg_pos = 0; | const char *gw__error_misc_msg = NULL; | none gw__c_result; | ... `---- My spec file: ,---- | (define-module (distwork server gw-dstw-spec) | :use-module (g-wrap) | :use-module (gnome gobject gw-glib-spec) | :use-module (gnome gobject defs-support) | :use-module (gnome gobject gw-spec-utils)) | | (let ((ws (gw:new-wrapset "gw-dstw"))) | | (gw:wrapset-set-guile-module! ws '(distwork server gw-dstw)) | | (gw:wrapset-add-cs-declarations! | ws | (lambda (wrapset client-wrapset) | (if (eq? client-wrapset wrapset) | '() | (list "#include \n")))) | | (load-defs ws "distwork/defs/dstw.defs") | | ws) `---- Hope somebody has a hint for me :-/ Thanks, An *frustrated* dy -- Andreas Rottmann | Rotty@ICQ | 118634484@ICQ | a.rottmann@gmx.at http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62 This reality is really just a fucked-up dream -- Papa Roach