[CPAN] SNMP::Extension::PassPersist fails with missing Sys::Syslog openlog

Abierto
#2,022 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java, perl
Área
backend, testing

Línea de trabajo

Start by tracing how PerlOnJava implements the bundled Sys::Syslog import and exports openlog, then compare that behavior with system Perl. Reproduce the failure with the CPAN dependency overlay on both backends and inspect the project’s existing tests for a suitable place for the regression test. Done means the three upstream failing test files pass on both backends and the project-owned test covers the missing import behavior.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area:runtime bug

Summary

SNMP::Extension::PassPersist 0.07 fails three upstream test files under PerlOnJava because openlog imported by use Sys::Syslog is undefined when run() executes. The failure reproduces on both the JVM and interpreter backends. The same upstream tests pass under system Perl.

The evidence points to an import/export problem in PerlOnJava's bundled Sys::Syslog path. Please trace why SNMP::Extension::PassPersist::openlog is not installed by use Sys::Syslog; the direct failure is an undefined subroutine, rather than an error in the test's SNMP output handling.

Reproduction and results

CPAN random tester run 20261109-091152-39587, distribution SNMP-Extension-PassPersist-0.07:

  • PerlOnJava: 61/67 assertions passed; 6 failed across t/10-synopsis-pass.t, t/10-synopsis-passpersist.t, and t/12-run.t.
  • JVM and interpreter: the focused t/10-synopsis-pass.t test reproduces the same failure using the distribution's recorded dependency overlay.
  • System Perl: the archived oracle passed the full suite (68 tests). A focused rerun of all three failing test files also passed (16 tests).
  • Failure text: Undefined subroutine &SNMP::Extension::PassPersist::openlog called at the openlog(...) call in SNMP::Extension::PassPersist::run.
  • t/50-walk.t was skipped because IPC::Run was unavailable; that skip is unrelated to the failing assertions.

The PerlOnJava reproduction was run at checkout 4aca25e9fc5ebe26fb0081173a0cc9e3339c9c60 on macOS 26.7.1 with Temurin OpenJDK 24.0.2. The archived system-Perl oracle used Perl 5.42.2. The target distribution contains no XS/C source; XS notices in the CPAN log concern dependencies and are not the failing code path.

Acceptance

  • The upstream distribution suite passes under both PerlOnJava backends with the same CPAN dependency overlay.
  • The system Perl result remains passing.
  • Add a project-owned regression test for the missing Sys::Syslog import behavior.
Lenguaje dominante
Perl
Estrellas
67
Forks
8
Merge medio
6 h 14 min
PR fusionados (30 d)
143

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de fglock/PerlOnJava

Todos los issues de fglock/PerlOnJava

Issues similares

Más issues de Perl

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.