trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vipul Bhasin <vipul...@gmail.com>
Subject ubuntu tcl include problems and -Werror
Date Thu, 05 Nov 2009 02:14:12 GMT
Hello,

I got the configure script to work on ubuntu 9.10 after installing the
following packages :

- g++
- libssl-dev
- tcl  (current version : 8.4)
- tcl-dev  (current version : 8.4)
- expat
- libexpat-dev
- libdb4.7
- libdb4.7-dev

However, the make script fails when trying to include <tcl.h> included from
ink_hash_table.h.

This is probably because on debian based distros, the default install
location for tcl is : /usr/include/tcl/tcl.h and so the "#include <tcl.h>"
causes ::

....
In file included from inktomi++.h:90,
                 from Allocator.cc:32:
ink_hash_table.h:48:17: error: tcl.h: No such file or directory
In file included from inktomi++.h:90,
                 from Allocator.cc:32:
ink_hash_table.h:50: error: ‘Tcl_HashTable’ does not name a type
ink_hash_table.h:51: error: ‘Tcl_HashEntry’ does not name a type
....

Changing "#include <tcl.h>" to "#include <tcl/tcl.h>" (temporary solution)
seemed to solve this problem. However, further down, make fails with the
following error message :

.....
/usr/bin/g++ -DPACKAGE_NAME=\"Traffic\ Server\"
-DPACKAGE_TARNAME=\"trafficserver\" -DPACKAGE_VERSION=\"2.0.0\"
-DPACKAGE_STRING=\"Traffic\ Server\ 2.0.0\" -DPACKAGE_BUGREPORT=\"
trafficserver-dev@incubator.apache.org\" -DPACKAGE_URL=\"\"
-DPACKAGE=\"trafficserver\" -DVERSION=\"2.0.0\" -DHOST_OS=linux
-DBUILD_PERSON=\"vipul\" -DBUILD_MACHINE=\"vipul\" -DMODULARIZED=1
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE=1 -D_REENTRANT=1 -DHAVE_LIBSSL=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 -DHTTP_CACHE=1 -I.     -g -m32 -Wall
-Werror -Wno-char-subscripts -Wno-write-strings -O3
-feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof
 -march=pentium -MT ink_stack_trace.o -MD -MP -MF .deps/ink_stack_trace.Tpo
-c -o ink_stack_trace.o ink_stack_trace.cc
cc1plus: warnings being treated as errors
ink_stack_trace.cc: In function ‘void ink_stack_trace_dump(int)’:
ink_stack_trace.cc:84: error: ignoring return value of ‘ssize_t write(int,
const void*, size_t)’, declared with attribute warn_unused_result
ink_stack_trace.cc:85: error: ignoring return value of ‘ssize_t write(int,
const void*, size_t)’, declared with attribute warn_unused_result
make[1]: *** [ink_stack_trace.o] Error 1
....

A missing : '-Wno-unused-result' in flags ?

How should one report these problems ? Also, what is the best way to submit
patches going forward ?

thanks,
Vipul

Mime
View raw message