bugnyacc parser generator - Bugs: bug #63191, warning: possibly unbound variable...

 
 

bug #63191: warning: possibly unbound variable 'pamc_handle_t*'

Submitter:  Felix Lechner <lechner>
Submitted:  Sun 09 Oct 2022 10:24:04 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  In Progress
Privacy:  Public Assigned to:  mwette
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 30 Oct 2022 06:18:10 PM UTC, comment #3: 

I see what's going on.   Try adding the following to your .ffi file:

  (define pamc_handle_t* pamc_handle_t)

I'm not sure how to fix this right now.

Matt Wette <mwette>
Group administrator
Mon 10 Oct 2022 05:48:57 PM UTC, comment #2: 

Hi,

From looking at the Guile site library in the temporary profile created by 'guix shell' (see below) I believe I am using version 1.07.4.

That information was seemingly confirmed by this command:

$ guild compile-ffi --version
compile-ffi 1.07.4

Thanks for looking into it!

Kind regards
Felix Lechner


$ cat /gnu/store/pwwl1nlx8z78ka0vfgjasxsd025brzp1-profile/share/guile/site/3.0/nyacc/version.scm
;;; nyacc/version.scm

;; Copyright (C) 2017-2018,2020 Matthew R. Wette
;;
;; This library is free software; you can redistribute it and/or
;; modify it under the terms of the GNU Lesser General Public
;; License as published by the Free Software Foundation; either
;; version 3 of the License, or (at your option) any later version.
;;
;; This library is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
;; Lesser General Public License for more details.
;;
;; You should have received a copy of the GNU Lesser General Public License
;; along with this library; if not, see <http://www.gnu.org/licenses/>

;;; Code:

(define-module (nyacc version)
  #:export (nyacc-version)
  #:version (1 07 4))

(define nyacc-version "1.07.4")

;; --- last line ---

Felix Lechner <lechner>
Mon 10 Oct 2022 05:40:20 PM UTC, comment #1: 

Can you please provide the version of nyacc used?

Matt Wette <mwette>
Group administrator
Sun 09 Oct 2022 10:24:04 PM UTC, original submission:  

Hi,

I see a warning when compiling the FFI bindings generated for any recent version of linux-pam.

In Guix, you have to set --libdir as in #55762 or wait for the upstream release 1.5.3, which will ship my patch. Perhaps the simplest way to reproduce it is to run

  $ git clone https://codeberg.org/lechner/guile-pam.git
  $ cd git
  $ guix shell --development --file=guix.scm --pure --check
  $ autoreconf -fi
  $ ./configure
  $ make

Then you will see something like:

  ;;; pamc.scm:61:31: warning: possibly unbound variable `pamc_handle_t*'

Is there something I can do about that locally?

The generated file pamc.scm was attached to this message. Thank you!

Kind regards
Felix Lechner

Felix Lechner <lechner>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #53820:  pamc.scm added by lechner (4KiB - text/x-scheme)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mwette (Posted a comment)
  • -email is unavailable- added by lechner (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-10-10 mwette StatusNone In Progress
        Assigned toNone mwette
    2022-10-09 lechner Attached File- Added pamc.scm, #53820

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code