[Gambas-user] Returning an integer from an external function broken?
Audiossis
audiossis at ...867...
Mon Feb 25 06:05:48 CET 2008
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 24 Feb 2008 09:13:49 +0100
> From: Benoit Minisini <gambas at ...1...>
> Subject: Re: [Gambas-user] Release of Gambas 2.1
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID: <200802240913.49422.gambas at ...1...>
> Content-Type: text/plain; charset="utf-8"
>
> On dimanche 24 f?vrier 2008, Steven Drinnan wrote:
> > I am sure rpm query
> >
> > libffi-3.0.1-1.fc8
> > and
> > libffi-devel-3.0.1-1.fc8
> >
> > and i am running Fedora 8
> >
> > where they are installed - the default location as I installed via RPM
> >
> > As for the config file I thought I attached it to the email last time
> > but you can download it here
> >
> > www.sjdsoft.hk/outputconfig.txt
> >
> > Many thanks for your help
> >
> > Steven
> >
>
> Where are the libffi headers installed on Fedora 8?
>
> --
> Benoit Minisini
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 24 Feb 2008 09:16:13 +0100
> From: Benoit Minisini <gambas at ...1...>
> Subject: Re: [Gambas-user] Returning an integer from an external
> function broken? Gambas 2.1.0 and 2.2.0
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID: <200802240916.13529.gambas at ...1...>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On dimanche 24 f?vrier 2008, Audiossis wrote:
> > Hi all,
> > Sorry to report that in Gambas 2.1.0 and 2.2.0 (Fedora 7),
> > returning an
> > integer from an external function appears to be broken.
> >
> > I updated from Gambas 2.0.0 where my code (see below) worked fine, to
> > Gambas
> > 2.1.0 where it no longer works, and then subsequently to Gambas 2.2.0
> > where
> > it still doesn't work.
> >
> > Snippet......
> >
> >
> >
> >
> > PUBLIC rInit AS Integer
> > LIBRARY "libusb-0.1"
> >
> > PRIVATE EXTERN usb_init() AS Integer
> >
> > PUBLIC FUNCTION init()
> >
> > rInit = usb_init()
> >
> > END
> >
> >
> >
> >
> >
> > In versions previous to Gambas 2.1.0 the external function returns an
> > integer
> > to the rInit variable, letting me know of the success or failure of the
> > libusb init routine.
> >
> > In Gambas 2.1.0 and above, this code returns the error "Type mismatch:
> > Wanted
> > Integer, got Function instead."
> >
> > This error is not related to the particular function being called and
> > happens
> > with ALL external functions I am calling from the libusb library. I
> > even
> > regressed back to Gambas 2.0.0 just to verify that I hadn't
> > accidentally
> > screwed up my code and sure enough the program started working again.
> >
> > Is this a bug with the new version? or has the syntax for returning an
> > integer/string/variant from an external function changed?
> >
> > Any help would be appreciated!
> >
> > Thanks in advance,
> >
> > Ben
>
> This is a bug. What a shame if was not detected before...
>
> --
> Benoit Minisini
>
>
>
> ------------------------------
>
> Message: 3
> Date: Sun, 24 Feb 2008 09:30:08 +0100
> From: Benoit Minisini <gambas at ...1...>
> Subject: Re: [Gambas-user] Returning an integer from an external
> function broken? Gambas 2.1.0 and 2.2.0
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID: <200802240930.08515.gambas at ...1...>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On dimanche 24 f?vrier 2008, Benoit Minisini wrote:
> > On dimanche 24 f?vrier 2008, Audiossis wrote:
> > > Hi all,
> > > Sorry to report that in Gambas 2.1.0 and 2.2.0 (Fedora 7),
> > > returning an
> > > integer from an external function appears to be broken.
> > >
> > > I updated from Gambas 2.0.0 where my code (see below) worked fine, to
> > > Gambas
> > > 2.1.0 where it no longer works, and then subsequently to Gambas 2.2.0
> > > where
> > > it still doesn't work.
> > >
> > > Snippet......
> > >
> > >
> > >
> > >
> > > PUBLIC rInit AS Integer
> > > LIBRARY "libusb-0.1"
> > >
> > > PRIVATE EXTERN usb_init() AS Integer
> > >
> > > PUBLIC FUNCTION init()
> > >
> > > rInit = usb_init()
> > >
> > > END
> > >
> > >
> > >
> > >
> > >
> > > In versions previous to Gambas 2.1.0 the external function returns an
> > > integer
> > > to the rInit variable, letting me know of the success or failure of the
> > > libusb init routine.
> > >
> > > In Gambas 2.1.0 and above, this code returns the error "Type mismatch:
> > > Wanted
> > > Integer, got Function instead."
> > >
> > > This error is not related to the particular function being called and
> > > happens
> > > with ALL external functions I am calling from the libusb library. I
> > > even
> > > regressed back to Gambas 2.0.0 just to verify that I hadn't
> > > accidentally
> > > screwed up my code and sure enough the program started working again.
> > >
> > > Is this a bug with the new version? or has the syntax for returning an
> > > integer/string/variant from an external function changed?
> > >
> > > Any help would be appreciated!
> > >
> > > Thanks in advance,
> > >
> > > Ben
> >
> > This is a bug. What a shame if was not detected before...
>
> I catched the guilty guy. Laurent found fun to disable the external function
> management just for OpenBSD, but he actually disabled it for every OS! He
> fixed the problem, but just after the release of Gambas 2.2.
>
> Well let's make gambas 2.2.1...
>
> --
> Benoit Minisini
>
>
>
> ------------------------------
>
> Message: 4
> Date: Sun, 24 Feb 2008 10:38:57 +0100
> From: Benoit Minisini <gambas at ...1...>
> Subject: Re: [Gambas-user] Returning an integer from an external
> function broken? Gambas 2.1.0 and 2.2.0
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID: <200802241038.57274.gambas at ...1...>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On dimanche 24 f?vrier 2008, Benoit Minisini wrote:
> > On dimanche 24 f?vrier 2008, Benoit Minisini wrote:
> > > On dimanche 24 f?vrier 2008, Audiossis wrote:
> > > > Hi all,
> > > > Sorry to report that in Gambas 2.1.0 and 2.2.0 (Fedora 7),
> > > > returning an
> > > > integer from an external function appears to be broken.
> > > >
> > > > I updated from Gambas 2.0.0 where my code (see below) worked fine, to
> > > > Gambas
> > > > 2.1.0 where it no longer works, and then subsequently to Gambas 2.2.0
> > > > where
> > > > it still doesn't work.
> > > >
> > > > Snippet......
> > > >
> > > >
> > > >
> > > >
> > > > PUBLIC rInit AS Integer
> > > > LIBRARY "libusb-0.1"
> > > >
> > > > PRIVATE EXTERN usb_init() AS Integer
> > > >
> > > > PUBLIC FUNCTION init()
> > > >
> > > > rInit = usb_init()
> > > >
> > > > END
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > In versions previous to Gambas 2.1.0 the external function returns an
> > > > integer
> > > > to the rInit variable, letting me know of the success or failure of the
> > > > libusb init routine.
> > > >
> > > > In Gambas 2.1.0 and above, this code returns the error "Type mismatch:
> > > > Wanted
> > > > Integer, got Function instead."
> > > >
> > > > This error is not related to the particular function being called and
> > > > happens
> > > > with ALL external functions I am calling from the libusb library. I
> > > > even
> > > > regressed back to Gambas 2.0.0 just to verify that I hadn't
> > > > accidentally
> > > > screwed up my code and sure enough the program started working again.
> > > >
> > > > Is this a bug with the new version? or has the syntax for returning an
> > > > integer/string/variant from an external function changed?
> > > >
> > > > Any help would be appreciated!
> > > >
> > > > Thanks in advance,
> > > >
> > > > Ben
> > >
> > > This is a bug. What a shame if was not detected before...
> >
> > I catched the guilty guy. Laurent found fun to disable the external
> > function management just for OpenBSD, but he actually disabled it for every
> > OS! He fixed the problem, but just after the release of Gambas 2.2.
> >
> > Well let's make gambas 2.2.1...
>
> The bug has been fixed. I have just uploaded the 2.2.1 source archive on
> sourceforge.
>
> --
> Benoit Minisini
>
>
>
> ------------------------------
>
> Message: 5
> Date: Sun, 24 Feb 2008 11:35:17 +0000
> From: Guillermo Ballester Valor <gbv at ...1076...>
> Subject: Re: [Gambas-user] Returning an integer from an external
> function broken? Gambas 2.1.0 and 2.2.0
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID: <200802241135.17571.gbv at ...1076...>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
>
> El Sunday 24 February 2008 08:30:08 Benoit Minisini escribi?:
> > On dimanche 24 f?vrier 2008, Benoit Minisini wrote:
> >
> > I catched the guilty guy. Laurent found fun to disable the external
> > function management just for OpenBSD, but he actually disabled it for every
> > OS! He fixed the problem, but just after the release of Gambas 2.2.
> >
> > Well let's make gambas 2.2.1...
>
> Just after build the 2.2.0 rpm packages for x86_64. Must I to wait to
> release the rpms after 2.2.1 ?
>
> Guillermo
>
> --
> Guillermo Ballester Valor
> gbv at ...1076...
> http://www.oxixares.com/~gbv
> Ogijares, Granada - SPAIN
>
>
>
> ------------------------------
>
> Message: 6
> Date: Sun, 24 Feb 2008 12:40:58 +0100
> From: Benoit Minisini <gambas at ...1...>
> Subject: Re: [Gambas-user] Returning an integer from an external
> function broken? Gambas 2.1.0 and 2.2.0
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID: <200802241240.58788.gambas at ...1...>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On dimanche 24 f?vrier 2008, Guillermo Ballester Valor wrote:
> > El Sunday 24 February 2008 08:30:08 Benoit Minisini escribi?:
> > > On dimanche 24 f?vrier 2008, Benoit Minisini wrote:
> > >
> > > I catched the guilty guy. Laurent found fun to disable the external
> > > function management just for OpenBSD, but he actually disabled it for
> > > every OS! He fixed the problem, but just after the release of Gambas 2.2.
> > >
> > > Well let's make gambas 2.2.1...
> >
> > Just after build the 2.2.0 rpm packages for x86_64. Must I to wait to
> > release the rpms after 2.2.1 ?
> >
> > Guillermo
>
> 2.2.0 is broken, you must make the packages again! Sorry for that...
>
> --
> Benoit Minisini
>
>
>
> ------------------------------
>
> Message: 7
> Date: Sun, 24 Feb 2008 11:41:13 +0000
> From: Guillermo Ballester Valor <gbv at ...1076...>
> Subject: Re: [Gambas-user] Returning an integer from an external
> function broken? Gambas 2.1.0 and 2.2.0
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID: <200802241141.13987.gbv at ...1076...>
> Content-Type: text/plain; charset="iso-8859-1"
>
> El Sunday 24 February 2008 09:38:57 Benoit Minisini escribi?:
> > > Well let's make gambas 2.2.1...
> >
> > The bug has been fixed. I have just uploaded the 2.2.1 source archive on
> > sourceforge.
>
> Well, lets begin again to build 2.2.1 rpms packages for opensSUSE 10.3 x86_64.
> Fortunately I had not released the rpms for 2.2.0.
>
> Guillermo
>
> --
> Guillermo Ballester Valor
> gbv at ...1076...
> http://www.oxixares.com/~gbv
> Ogijares, Granada - SPAIN
>
>
>
> ------------------------------
>
> Message: 8
> Date: Sun, 24 Feb 2008 11:50:17 +0000
> From: Guillermo Ballester Valor <gbv at ...1076...>
> Subject: Re: [Gambas-user] Returning an integer from an external
> function broken? Gambas 2.1.0 and 2.2.0
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID: <200802241150.17860.gbv at ...1076...>
> Content-Type: text/plain; charset="iso-8859-1"
>
> El Sunday 24 February 2008 11:40:58 Benoit Minisini escribi?:
> > On dimanche 24 f?vrier 2008, Guillermo Ballester Valor wrote:
> > > El Sunday 24 February 2008 08:30:08 Benoit Minisini escribi?:
> > > > On dimanche 24 f?vrier 2008, Benoit Minisini wrote:
> > > >
> > > > I catched the guilty guy. Laurent found fun to disable the external
> > > > function management just for OpenBSD, but he actually disabled it for
> > > > every OS! He fixed the problem, but just after the release of Gambas
> > > > 2.2.
> > > >
> > > > Well let's make gambas 2.2.1...
> > >
> > > Just after build the 2.2.0 rpm packages for x86_64. Must I to wait to
> > > release the rpms after 2.2.1 ?
> > >
> > > Guillermo
> >
> > 2.2.0 is broken, you must make the packages again! Sorry for that...
>
> Don't worry, these things usually happen. ;-)
>
> Regards,
>
> Guillermo
>
>
> --
> Guillermo Ballester Valor
> gbv at ...1076...
> http://www.oxixares.com/~gbv
> Ogijares, Granada - SPAIN
>
>
Thanks guys, that got it working!!
Regards
Ben.
More information about the User
mailing list