Menu

Compilation problem with 0.82 on FC10

Help
B.T.
2009-02-26
2013-05-15
  • B.T.

    B.T. - 2009-02-26

    Anybody seen/resolved the following error?

    Procedure:
    tar -zxf htmlcxx-0.82.tar.g
    cd htmlcxx-0.82
    cp ../htmlcxx-0.82.tar.gz ~/rpmbuild/SOURCES/
    cp htmlcxx.spec ~/rpmbuild/SPECS/
    cd !$

    changed 0.80 to 0.82 on first line of specfile, left the rest the same.

    [root@gridiron SPECS]# rpmbuild -bb htmlcxx.spec
    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.bqSPR1
    + umask 022
    + cd /root/rpmbuild/BUILD
    + LANG=C
    + export LANG
    + unset DISPLAY
    + rm -Rf /root/rpmbuild/BUILDROOT/htmlcxx-0.82-1.i386
    + cd /root/rpmbuild/BUILD
    + rm -rf htmlcxx-0.82
    + /usr/bin/gzip -dc /root/rpmbuild/SOURCES/htmlcxx-0.82.tar.gz
    + /bin/tar -xvvf -
    drwxrwxrwx 1000/1000         0 2007-08-11 18:25 htmlcxx-0.82/
    -rw-r--r-- 1000/1000      4238 2004-06-17 14:17 htmlcxx-0.82/ChangeLog
    -rw-r--r-- 1000/1000      3654 2006-06-16 10:23 htmlcxx-0.82/htmlcxxapp.vcproj
    -rw-r--r-- 1000/1000      4155 2005-03-23 21:58 htmlcxx-0.82/htmlcxx.cc
    drwxrwxrwx 1000/1000         0 2007-08-11 18:25 htmlcxx-0.82/css/
    -rw-r--r-- 1000/1000       119 2004-03-27 07:56 htmlcxx-0.82/css/css_lex.h
    -rw-r--r-- 1000/1000       694 2004-03-27 07:56 htmlcxx-0.82/css/parser.c
    -rw-r--r-- 1000/1000     73040 2006-06-16 10:23 htmlcxx-0.82/css/css_lex.c
    -rw-r--r-- 1000/1000       803 2004-03-27 07:56 htmlcxx-0.82/css/parser.h
    -rw-r--r-- 1000/1000      2190 2005-02-21 22:47 htmlcxx-0.82/css/parser_pp.h
    -rw-r--r-- 1000/1000       499 2005-02-21 22:47 htmlcxx-0.82/css/Makefile.am
    -rw-r--r-- 1000/1000      6972 2005-02-21 22:47 htmlcxx-0.82/css/parser_pp.cc
    -rw-r--r-- 1000/1000     12889 2005-02-21 22:47 htmlcxx-0.82/css/css_syntax.y
    -rw-r--r-- 1000/1000      1065 2006-06-16 10:23 htmlcxx-0.82/css/css_syntax.h
    -rw-r--r-- 1000/1000     19824 2007-08-11 18:24 htmlcxx-0.82/css/Makefile.in
    -rw-r--r-- 1000/1000      3859 2005-02-21 22:47 htmlcxx-0.82/css/css_lex.l
    -rw-r--r-- 1000/1000      4846 2005-02-21 22:47 htmlcxx-0.82/css/default.css
    -rw-r--r-- 1000/1000     53645 2006-06-16 10:23 htmlcxx-0.82/css/css_syntax.c
    -rwxr-xr-x 1000/1000    705266 2007-08-11 18:24 htmlcxx-0.82/configure
    -rwxr-xr-x 1000/1000     11135 2007-08-11 18:05 htmlcxx-0.82/missing
    -rw-r--r-- 1000/1000     17992 2006-06-16 10:23 htmlcxx-0.82/COPYING
    -rw-r--r-- 1000/1000      8476 2005-02-21 22:47 htmlcxx-0.82/wingetopt.c
    -rwxr-xr-x 1000/1000     45126 2007-08-11 18:05 htmlcxx-0.82/config.guess
    drwxrwxrwx 1000/1000         0 2007-08-11 18:25 htmlcxx-0.82/html/
    -rw-r--r-- 1000/1000      2064 2005-02-21 22:47 htmlcxx-0.82/html/Node.h
    -rw-r--r-- 1000/1000       767 2005-02-21 22:47 htmlcxx-0.82/html/ParserDom.h
    -rw-r--r-- 1000/1000     11154 2006-06-16 10:23 htmlcxx-0.82/html/utils.cc
    -rw-r--r-- 1000/1000       396 2004-06-16 11:38 htmlcxx-0.82/html/Extensions.h
    -rw-r--r-- 1000/1000      1171 2005-02-21 22:47 htmlcxx-0.82/html/ci_string.h
    -rw-r--r-- 1000/1000      3208 2005-02-21 22:47 htmlcxx-0.82/html/tld.h
    -rw-r--r-- 1000/1000      1433 2005-03-23 21:58 htmlcxx-0.82/html/ParserSax.h
    -rw-r--r-- 1000/1000       945 2005-02-21 22:47 htmlcxx-0.82/html/debug.h
    -rw-r--r-- 1000/1000      2148 2005-03-23 21:58 htmlcxx-0.82/html/uriTests.cc
    -rw-r--r-- 1000/1000      6501 2006-06-16 10:45 htmlcxx-0.82/html/tld.list
    -rw-r--r-- 1000/1000      2434 2005-02-21 22:47 htmlcxx-0.82/html/Node.cc
    -rw-r--r-- 1000/1000      3551 2005-02-21 22:47 htmlcxx-0.82/html/ParserDom.cc
    -rw-r--r-- 1000/1000      3656 2005-02-21 22:47 htmlcxx-0.82/html/Uri.h
    -rw-r--r-- 1000/1000      1136 2005-02-21 22:47 htmlcxx-0.82/html/utils.h
    -rw-r--r-- 1000/1000       851 2005-03-23 21:58 htmlcxx-0.82/html/Makefile.am
    -rw-r--r-- 1000/1000       721 2004-06-16 11:38 htmlcxx-0.82/html/Extensions.cc
    -rw-r--r-- 1000/1000       325 2005-02-21 22:47 htmlcxx-0.82/html/wincstring.h
    -rw-r--r-- 1000/1000       189 2005-02-21 22:47 htmlcxx-0.82/html/ParserSax.cc
    -rw-r--r-- 1000/1000      8353 2007-08-11 18:04 htmlcxx-0.82/html/ParserSax.tcc
    -rwxr-xr-x 1000/1000       873 2006-06-16 10:45 htmlcxx-0.82/html/gen_tld.pl
    -rw-r--r-- 1000/1000      7538 2005-02-21 22:47 htmlcxx-0.82/html/tests.cc
    -rw-r--r-- 1000/1000     15625 2005-03-23 21:58 htmlcxx-0.82/html/Uri.cc
    -rw-r--r-- 1000/1000     63478 2005-02-21 22:47 htmlcxx-0.82/html/tree.h
    -rw-r--r-- 1000/1000       550 2005-02-21 22:47 htmlcxx-0.82/html/CharsetConverter.h
    -rw-r--r-- 1000/1000     27665 2007-08-11 18:24 htmlcxx-0.82/html/Makefile.in
    -rw-r--r-- 1000/1000      1326 2004-06-16 11:38 htmlcxx-0.82/html/CharsetConverter.cc
    -rw-r--r-- 1000/1000       828 2007-08-11 18:23 htmlcxx-0.82/configure.ac
    -rw-r--r-- 1000/1000      9416 2007-08-11 18:05 htmlcxx-0.82/INSTALL
    -rwxr-xr-x 1000/1000     17574 2007-08-11 18:05 htmlcxx-0.82/depcomp
    -rw-r--r-- 1000/1000       101 2003-12-13 19:27 htmlcxx-0.82/AUTHORS
    -rw-r--r-- 1000/1000       246 2006-06-16 10:23 htmlcxx-0.82/Makefile.am
    -rw-r--r-- 1000/1000         0 2003-12-13 19:27 htmlcxx-0.82/NEWS
    -rw-r--r-- 1000/1000      4047 2006-06-16 10:23 htmlcxx-0.82/htmlcxx.vcproj
    -rw-r--r-- 1000/1000       560 2005-02-21 22:47 htmlcxx-0.82/wingetopt.h
    -rw-r--r-- 1000/1000    200488 2007-01-07 14:02 htmlcxx-0.82/ltmain.sh
    -rw-r--r-- 1000/1000      3368 2005-03-23 21:58 htmlcxx-0.82/README
    -rwxr-xr-x 1000/1000     32931 2007-08-11 18:05 htmlcxx-0.82/config.sub
    -rwxr-xr-x 1000/1000      6193 2007-08-11 18:05 htmlcxx-0.82/ylwrap
    -rw-r--r-- 1000/1000      2224 2007-08-11 18:25 htmlcxx-0.82/config.h.in
    -rw-r--r-- 1000/1000     23845 2007-08-11 18:24 htmlcxx-0.82/Makefile.in
    -rw-r--r-- 1000/1000    265114 2007-08-11 18:24 htmlcxx-0.82/aclocal.m4
    -rw-r--r-- 1000/1000     11358 2006-06-16 10:23 htmlcxx-0.82/ASF-2.0
    -rwxr-xr-x 1000/1000     13184 2007-08-11 18:05 htmlcxx-0.82/install-sh
    -rw-r--r-- 1000/1000      1189 2006-06-16 10:23 htmlcxx-0.82/htmlcxx.spec
    + STATUS=0
    + '[' 0 -ne 0 ']'
    + cd htmlcxx-0.82
    + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
    + mkdir /root/rpmbuild/BUILDROOT/htmlcxx-0.82-1.i386
    + mkdir /root/rpmbuild/BUILDROOT/htmlcxx-0.82-1.i386/usr
    + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
    + export CFLAGS
    + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
    + export CXXFLAGS
    + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -I/usr/lib/gfortran/modules'
    + export FFLAGS
    + ./configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --prefix=/usr
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for i686-pc-linux-gnu-g++... no
    checking for i686-pc-linux-gnu-c++... no
    checking for i686-pc-linux-gnu-gpp... no
    checking for i686-pc-linux-gnu-aCC... no
    checking for i686-pc-linux-gnu-CC... no
    checking for i686-pc-linux-gnu-cxx... no
    checking for i686-pc-linux-gnu-cc++... no
    checking for i686-pc-linux-gnu-cl.exe... no
    checking for i686-pc-linux-gnu-FCC... no
    checking for i686-pc-linux-gnu-KCC... no
    checking for i686-pc-linux-gnu-RCC... no
    checking for i686-pc-linux-gnu-xlC_r... no
    checking for i686-pc-linux-gnu-xlC... no
    checking for g++... g++
    checking for C++ compiler default output file name... a.out
    checking whether the C++ compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking for style of include used by make... GNU
    checking dependency style of g++... gcc3
    checking for i686-pc-linux-gnu-gcc... no
    checking for gcc... gcc
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking for flex... flex
    checking lex output file root... lex.yy
    checking lex library... -lfl
    checking whether yytext is a pointer... yes
    checking for bison... bison -y
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    checking how to recognise dependent libraries... pass_all
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking how to run the C++ preprocessor... g++ -E
    checking for i686-pc-linux-gnu-g77... no
    checking for i686-pc-linux-gnu-xlf... no
    checking for i686-pc-linux-gnu-f77... no
    checking for i686-pc-linux-gnu-frt... no
    checking for i686-pc-linux-gnu-pgf77... no
    checking for i686-pc-linux-gnu-cf77... no
    checking for i686-pc-linux-gnu-fort77... no
    checking for i686-pc-linux-gnu-fl32... no
    checking for i686-pc-linux-gnu-af77... no
    checking for i686-pc-linux-gnu-xlf90... no
    checking for i686-pc-linux-gnu-f90... no
    checking for i686-pc-linux-gnu-pgf90... no
    checking for i686-pc-linux-gnu-pghpf... no
    checking for i686-pc-linux-gnu-epcf90... no
    checking for i686-pc-linux-gnu-gfortran... no
    checking for i686-pc-linux-gnu-g95... no
    checking for i686-pc-linux-gnu-xlf95... no
    checking for i686-pc-linux-gnu-f95... no
    checking for i686-pc-linux-gnu-fort... no
    checking for i686-pc-linux-gnu-ifort... no
    checking for i686-pc-linux-gnu-ifc... no
    checking for i686-pc-linux-gnu-efc... no
    checking for i686-pc-linux-gnu-pgf95... no
    checking for i686-pc-linux-gnu-lf95... no
    checking for i686-pc-linux-gnu-ftn... no
    checking for g77... no
    checking for xlf... no
    checking for f77... no
    checking for frt... no
    checking for pgf77... no
    checking for cf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for xlf90... no
    checking for f90... no
    checking for pgf90... no
    checking for pghpf... no
    checking for epcf90... no
    checking for gfortran... gfortran
    checking whether we are using the GNU Fortran 77 compiler... yes
    checking whether gfortran accepts -g... yes
    checking the maximum length of command line arguments... 32768
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for objdir... .libs
    checking for i686-pc-linux-gnu-ar... no
    checking for ar... ar
    checking for i686-pc-linux-gnu-ranlib... no
    checking for ranlib... ranlib
    checking for i686-pc-linux-gnu-strip... no
    checking for strip... strip
    checking for correct ltmain.sh version... yes
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by g++... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC
    checking if g++ PIC flag -fPIC works... yes
    checking if g++ static flag -static works... yes
    checking if g++ supports -c -o file.o... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    appending configuration tag "F77" to libtool
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    checking for gfortran option to produce PIC... -fPIC
    checking if gfortran PIC flag -fPIC works... yes
    checking if gfortran static flag -static works... yes
    checking if gfortran supports -c -o file.o... yes
    checking whether the gfortran linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking for main in -lfl... yes
    checking for ANSI C header files... (cached) yes
    checking for stdbool.h that conforms to C99... yes
    checking for _Bool... yes
    checking for an ANSI C-conforming const... yes
    checking for inline... inline
    checking for size_t... yes
    checking whether time.h and sys/time.h may both be included... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating html/Makefile
    config.status: creating css/Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    + exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Y4BmMD
    + umask 022
    + cd /root/rpmbuild/BUILD
    + cd htmlcxx-0.82
    + LANG=C
    + export LANG
    + unset DISPLAY
    + make
    make  all-recursive
    make[1]: Entering directory `/root/rpmbuild/BUILD/htmlcxx-0.82'
    Making all in html
    make[2]: Entering directory `/root/rpmbuild/BUILD/htmlcxx-0.82/html'
    /bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DDEFAULT_CSS="\"/usr/share/htmlcxx/css/default.css\"" -MT libhtmlcxx_la-ParserSax.lo -MD -MP -MF .deps/libhtmlcxx_la-ParserSax.Tpo -c -o libhtmlcxx_la-ParserSax.lo `test -f 'ParserSax.cc' || echo './'`ParserSax.cc
    mkdir .libs
    g++ -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DDEFAULT_CSS=\"/usr/share/htmlcxx/css/default.css\" -MT libhtmlcxx_la-ParserSax.lo -MD -MP -MF .deps/libhtmlcxx_la-ParserSax.Tpo -c ParserSax.cc  -fPIC -DPIC -o .libs/libhtmlcxx_la-ParserSax.o
    In file included from ParserSax.h:64,
                     from ParserSax.cc:2:
    ParserSax.tcc:20: warning: deprecated conversion from string constant to 'char*'
    ParserSax.tcc:20: warning: deprecated conversion from string constant to 'char*'
    ParserSax.tcc:20: warning: deprecated conversion from string constant to 'char*'
    ParserSax.tcc:20: warning: deprecated conversion from string constant to 'char*'
    ParserSax.tcc:20: warning: deprecated conversion from string constant to 'char*'
    ParserSax.tcc: In member function 'void htmlcxx::HTML::ParserSax::parse(_Iterator&, _Iterator&, std::forward_iterator_tag)':
    ParserSax.tcc:75: error: there are no arguments to 'strcmp' that depend on a template parameter, so a declaration of 'strcmp' must be available
    ParserSax.tcc:75: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    ParserSax.tcc: In member function 'void htmlcxx::HTML::ParserSax::parseHtmlTag(_Iterator, _Iterator)':
    ParserSax.tcc:296: error: there are no arguments to 'strcasecmp' that depend on a template parameter, so a declaration of 'strcasecmp' must be available
    ParserSax.tcc: In function '_Iterator htmlcxx::HTML::find_next_quote(_Iterator, _Iterator, char) [with _Iterator = const char*]':
    ParserSax.tcc:354: error: 'memchr' was not declared in this scope
    ParserSax.tcc: At global scope:
    ParserSax.tcc:358: error: explicit template specialization cannot have a storage class
    ParserSax.tcc: In member function 'void htmlcxx::HTML::ParserSax::parse(_Iterator&, _Iterator&, std::forward_iterator_tag) [with _Iterator = const char*]':
    ParserSax.tcc:26:   instantiated from 'void htmlcxx::HTML::ParserSax::parse(_Iterator, _Iterator) [with _Iterator = const char*]'
    ParserSax.cc:6:   instantiated from here
    ParserSax.tcc:43: warning: statement has no effect
    ParserSax.tcc:26:   instantiated from 'void htmlcxx::HTML::ParserSax::parse(_Iterator, _Iterator) [with _Iterator = const char*]'
    ParserSax.cc:6:   instantiated from here
    ParserSax.tcc:75: error: 'strcmp' was not declared in this scope
    ParserSax.tcc: In member function 'void htmlcxx::HTML::ParserSax::parseHtmlTag(_Iterator, _Iterator) [with _Iterator = const char*]':
    ParserSax.tcc:129:   instantiated from 'void htmlcxx::HTML::ParserSax::parse(_Iterator&, _Iterator&, std::forward_iterator_tag) [with _Iterator = const char*]'
    ParserSax.tcc:26:   instantiated from 'void htmlcxx::HTML::ParserSax::parse(_Iterator, _Iterator) [with _Iterator = const char*]'
    ParserSax.cc:6:   instantiated from here
    ParserSax.tcc:291: warning: comparison between signed and unsigned integer expressions
    ParserSax.tcc:296: error: 'strcasecmp' was not declared in this scope
    make[2]: *** [libhtmlcxx_la-ParserSax.lo] Error 1
    make[2]: Leaving directory `/root/rpmbuild/BUILD/htmlcxx-0.82/html'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/root/rpmbuild/BUILD/htmlcxx-0.82'
    make: *** [all] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.Y4BmMD (%build)

    RPM build errors:
        Bad exit status from /var/tmp/rpm-tmp.Y4BmMD (%build)

     
    • B.T.

      B.T. - 2009-02-26

      actually- this looks resolved in CVS.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.