gcode-mirror / logstalgia

Automatically exported from code.google.com/p/logstalgia
0 stars 0 forks source link

Error when execute make command #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I install logstalgia on CentOS 5 x86_64. Everything OK with ./configure but 
when I execute make command, I get an error message:

depbase=`echo src/core/seeklog.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
    g++ -DPACKAGE_NAME=\"Logstalgia\" -DPACKAGE_TARNAME=\"logstalgia\" -DPACKAGE_VERSION=\"1.0.3\" -DPACKAGE_STRING=\"Logstalgia\ 1.0.3\" -DPACKAGE_BUGREPORT=\"acaudwell@gmail.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"logstalgia\" -DVERSION=\"1.0.3\" -DHAVE_PTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLU_H=1 -DHAVE_LIBPNG=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBPCRE=1 -I.   -DSDLAPP_RESOURCE_DIR=\"/usr/local/share/logstalgia\"   -g -O2 -pthread -pthread -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/FTGL -I/usr/include/freetype2   -MT src/core/seeklog.o -MD -MP -MF $depbase.Tpo -c -o src/core/seeklog.o src/core/seeklog.cpp &&\
    mv -f $depbase.Tpo $depbase.Po
src/core/seeklog.cpp: In member function ‘void SeekLog::seekTo(float)’:
src/core/seeklog.cpp:162: warning: passing ‘float’ for argument 1 to 
‘std::fpos<_StateT>::fpos(std::streamoff) [with _StateT = __mbstate_t]’
src/core/seeklog.cpp:167: error: ambiguous overload for ‘operator!=’ in 
‘mem_pointer != 0’
src/core/seeklog.cpp:167: note: candidates are: operator!=(std::streamoff, int) 
<built-in>
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/postyp
es.h:143: note:                 bool std::fpos<_StateT>::operator!=(const 
std::fpos<_StateT>&) const [with _StateT = __mbstate_t]
make: *** [src/core/seeklog.o] Error 1

I google this error but I can't find any information help me slove this issue. 
Do anyone know this error messagge? Plz help me.

Original issue reported on code.google.com by tonyha1...@gmail.com on 2 May 2013 at 1:43

GoogleCodeExporter commented 9 years ago
Try changing line 167 to:

 if(mem_pointer != (std::streampos)0) {

Next release will use a newer version of seeklog.cpp that fixes this issue.

Original comment by acaudw...@gmail.com on 4 May 2013 at 4:20

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for your reply. With your advice, I passed make and make install step. 
After install logstalgia, I run command logstalgia /home/vynt/_logs/access.log 
and I get error message "Segmentation fault". I check /var/log/message and I 
got the message "kernel: logstalgia[12635]: segfault at 00000000000002d8 rip 
00000032e0432c18 rsp 00007fff0fd85b20 error 6" . Is it the bugs when install 
logstalgia on CentOS 5.x ?

Thanks! 

Original comment by vynguyen...@gmail.com on 4 May 2013 at 12:49

GoogleCodeExporter commented 9 years ago
Does the machine it is being run on have a video card?

Original comment by acaudw...@gmail.com on 4 May 2013 at 9:44