Skip Menu |

This queue is for tickets about the Event-Lib CPAN distribution.

Report information
The Basics
Id: 19293
Status: open
Priority: 0/
Queue: Event-Lib

People
Owner: Nobody in particular
Requestors: MTHURN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.00
Fixed in: (no value)



Subject: can not compile: LOG_LEVEL undeclared
I am using perl 5.9.2 on Solaris 8 with gcc 3.4.6 cc -c -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDEBUGGING -g -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -fPIC "-I/usr/local/lib/perl5/5.9.2/sun4-solaris/CORE" -DHAVE_CONFIG_H Lib.c Lib.c: In function `XS_Event__Lib_event_get_method': Lib.c:425: warning: assignment makes pointer from integer without a cast Lib.c: In function `XS_Event__Lib_event_get_version': Lib.c:442: warning: assignment makes pointer from integer without a cast Lib.xs: In function `boot_Event__Lib': Lib.xs:275: error: `LOG_LEVEL' undeclared (first use in this function) Lib.xs:275: error: (Each undeclared identifier is reported only once Lib.xs:275: error: for each function it appears in.) make: *** [Lib.o] Error 1 -- - - Martin 'Kingpin' Thurn
Subject: WG: [rt.cpan.org #19293] can not compile: LOG_LEVEL undeclared
Date: Fri, 02 Jun 2006 13:33:10 -0400
To: bug-Event-Lib [...] rt.cpan.org
From: Tassilo von Parseval <Tassilo.von.Parseval [...] rwth-aachen.de>
Thank you for the report. I cannot right now do much about this as I just moved to NYC and don't have many of the vital things yet (like a computer, for instance). I think the problem is a mis-placed '#ifdef HAVE_LOG_CALLBACK'. The one in line 276 of Lib.xs should in fact be three lines further up to include the assignment to LOG_LEVEL. Another (probably better) fix is to use a more recent version of libevent and make sure that it's used by Makefile.PL: perl Makefile.PL INC=-I/path/to/include LIBS="-L/path/to/lib -levent" where /path/to is the portion that points to where you have libevent installed. Cheers, Tassilo Show quoted text
----- Originalnachricht ----- Von: Martin Thurn via RT <bug-Event-Lib@rt.cpan.org> Datum: Dienstag, Mai 16, 2006 4:17 pm Betreff: [rt.cpan.org #19293] can not compile: LOG_LEVEL undeclared
> > Tue May 16 16:17:43 2006: Request 19293 was acted upon. > Transaction: Ticket created by MTHURN > Queue: Event-Lib > Subject: can not compile: LOG_LEVEL undeclared > Broken in: 1.00 > Severity: Normal > Owner: Nobody > Requestors: MTHURN@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=19293 > > > > I am using perl 5.9.2 on Solaris 8 with gcc 3.4.6 > > cc -c -fno-strict-aliasing -pipe -I/usr/local/include - > I/opt/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - > DDEBUGGING -g -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -fPIC "- > I/usr/local/lib/perl5/5.9.2/sun4-solaris/CORE" -DHAVE_CONFIG_H Lib.c > Lib.c: In function `XS_Event__Lib_event_get_method': > Lib.c:425: warning: assignment makes pointer from integer without > a cast > Lib.c: In function `XS_Event__Lib_event_get_version': > Lib.c:442: warning: assignment makes pointer from integer without > a cast > Lib.xs: In function `boot_Event__Lib': > Lib.xs:275: error: `LOG_LEVEL' undeclared (first use in this function) > Lib.xs:275: error: (Each undeclared identifier is reported only once > Lib.xs:275: error: for each function it appears in.) > make: *** [Lib.o] Error 1 > > -- > - - Martin 'Kingpin' Thurn > >
OK I installed libevent-1.1a.tar.gz and it fixed this problem. -- - - Martin 'Kingpin' Thurn