Skip Menu |
 

This queue is for tickets about the Syntax-Highlight-Universal CPAN distribution.

Report information
The Basics
Id: 13662
Status: resolved
Priority: 0/
Queue: Syntax-Highlight-Universal

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

Bug Information
Severity: Critical
Broken in: 0.4
Fixed in: (no value)



Subject: colorer/common/Hashtable.h
Download (untitled) / with headers
text/plain 2.8k
perl, v5.8.5 built for i368-linux-thread-multi CentOS release 4.1 (Final) I tied perl -MCPAN =e 'install Syntax::Highlight::Universal;' but that errored out with the same thing so I tried the manual make dance and get the same error (I used gcc, g++, cc, c++ all with the same results) This was also seen by the CPAN testers: http://www.nntp.perl.org/group/perl.cpan.testers/190795 Any idea what I'm missing and what need sdone to get 'er going? Thank you very much! :) [root@yoda Syntax-Highlight-Universal-0.4]# perl Makefile.PL Writing Makefile for Syntax::Highlight::Universal [root@yoda Syntax-Highlight-Universal-0.4]# make gcc -c -Icolorer -w -o Universal.o -O2 -DVERSION=\"0.4\" -DXS_VERSION=\"0.4\" -fPIC "-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE" Universal.cpp In file included from colorer/xml/xmldom.h:5, from colorer/colorer/parsers/HRCParserImpl.h:4, from CachingHRCParser.h:4, from Universal.xs:9: colorer/common/Hashtable.h: In member function `T Hashtable<T>::get(const String*) const': colorer/common/Hashtable.h:22: error: `capacity' undeclared (first use this function) colorer/common/Hashtable.h:22: error: (Each undeclared identifier is reported only once for each function it appears in.) colorer/common/Hashtable.h:23: error: `bucket' undeclared (first use this function) colorer/common/Hashtable.h: In member function `T Hashtable<T>::enumerate() const': colorer/common/Hashtable.h:33: error: there are no arguments to `enumerate_int' that depend on a template parameter, so a declaration of `enumerate_int' must be available colorer/common/Hashtable.h:33: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) colorer/common/Hashtable.h: In member function `T Hashtable<T>::next() const': colorer/common/Hashtable.h:42: error: there are no arguments to `next_int' that depend on a template parameter, so a declaration of `next_int' must be available colorer/common/Hashtable.h: In member function `const T* HashtableWOnulls<T>::get(const String*) const': colorer/common/Hashtable.h:64: error: `capacity' undeclared (first use this function) colorer/common/Hashtable.h:65: error: `bucket' undeclared (first use this function) colorer/common/Hashtable.h: In member function `T* HashtableWOnulls<T>::enumerate() const': colorer/common/Hashtable.h:75: error: there are no arguments to `enumerate_int' that depend on a template parameter, so a declaration of `enumerate_int' must be available colorer/common/Hashtable.h: In member function `T* HashtableWOnulls<T>::next() const': colorer/common/Hashtable.h:82: error: there are no arguments to `next_int' that depend on a template parameter, so a declaration of `next_int' must be available make: *** [Universal.o] Error 1 [root@yoda Syntax-Highlight-Universal-0.4]#
Download (untitled) / with headers
text/plain 3.2k
On Tue Jul 12 11:34:48 2005, DMUEY wrote: Show quoted text
> perl, v5.8.5 built for i368-linux-thread-multi > CentOS release 4.1 (Final) > > I tied > > perl -MCPAN =e 'install Syntax::Highlight::Universal;' > > but that errored out with the same thing so I tried the manual make > dance and get the same error (I used gcc, g++, cc, c++ all with the > same results) > > This was also seen by the CPAN testers: > http://www.nntp.perl.org/group/perl.cpan.testers/190795 > > Any idea what I'm missing and what need sdone to get 'er going? > > Thank you very much! :) > > [root@yoda Syntax-Highlight-Universal-0.4]# perl Makefile.PL > Writing Makefile for Syntax::Highlight::Universal > [root@yoda Syntax-Highlight-Universal-0.4]# make > gcc -c -Icolorer -w -o Universal.o -O2 -DVERSION=\"0.4\" > -DXS_VERSION=\"0.4\" -fPIC "-I/usr/lib/perl5/5.8.5/i386-linux-thread- > multi/CORE" Universal.cpp > In file included from colorer/xml/xmldom.h:5, > from colorer/colorer/parsers/HRCParserImpl.h:4, > from CachingHRCParser.h:4, > from Universal.xs:9: > colorer/common/Hashtable.h: In member function `T > Hashtable<T>::get(const String*) const': > colorer/common/Hashtable.h:22: error: `capacity' undeclared (first use > this function) > colorer/common/Hashtable.h:22: error: (Each undeclared identifier is > reported only once for each function it appears in.) > colorer/common/Hashtable.h:23: error: `bucket' undeclared (first use > this function) > colorer/common/Hashtable.h: In member function `T > Hashtable<T>::enumerate() const': > colorer/common/Hashtable.h:33: error: there are no arguments to > `enumerate_int' that depend on a template parameter, so a declaration > of `enumerate_int' must be available > colorer/common/Hashtable.h:33: error: (if you use `-fpermissive', G++ > will accept your code, but allowing the use of an undeclared name is > deprecated) > colorer/common/Hashtable.h: In member function `T Hashtable<T>::next() > const': > colorer/common/Hashtable.h:42: error: there are no arguments to > `next_int' that depend on a template parameter, so a declaration of > `next_int' must be available > colorer/common/Hashtable.h: In member function `const T* > HashtableWOnulls<T>::get(const String*) const': > colorer/common/Hashtable.h:64: error: `capacity' undeclared (first use > this function) > colorer/common/Hashtable.h:65: error: `bucket' undeclared (first use > this function) > colorer/common/Hashtable.h: In member function `T* > HashtableWOnulls<T>::enumerate() const': > colorer/common/Hashtable.h:75: error: there are no arguments to > `enumerate_int' that depend on a template parameter, so a declaration > of `enumerate_int' must be available > colorer/common/Hashtable.h: In member function `T* > HashtableWOnulls<T>::next() const': > colorer/common/Hashtable.h:82: error: there are no arguments to > `next_int' that depend on a template parameter, so a declaration of > `next_int' must be available > make: *** [Universal.o] Error 1 > [root@yoda Syntax-Highlight-Universal-0.4]#
You can fix this by using the src/shared/common/HashTable.h from the Colorer beta4 release in place of this module's colorer/common/HashTable.h . Applying the attached diff should have the same result. With that change, I have no problems compiling it.
Download diff
application/octet-stream 2.3k

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 379b
Show quoted text
> You can fix this by using the src/shared/common/HashTable.h from the > Colorer beta4 release in place of this module's > colorer/common/HashTable.h . Applying the attached diff should have the > same result. With that change, I have no problems compiling it.
Thanks, that seemed to have done the trick :) This should stay open so it can be resolved in the next version eh?
Fixed in 0.5.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.