Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 165 by ashish.thusoo: memcached trunk fails to build in case htonll is not present on the platform
http://code.google.com/p/memcached/issues/detail?id=165

What steps will reproduce the problem?
1. ./autogen.sh (on a platform that does not have htonll + using gcc for compilation)
2. ./configure
3. make

What is the expected output? What do you see instead?
During configure the check for htonll succeeds even if htonll is not present in the system. The check succeeds because gcc returns with an implicit declaration warning and as the compilation is done without -Werror flag, it succeeds. Sample output is as follows:

configure:6608: checking for htonll
configure:6640: gcc -std=gnu99 -o conftest -g -O2 -pthread -I/usr/local/include/c-client-src -L/usr/local/lib conftest.c -levent -lzookeeper_st >&5
conftest.c: In function 'main':
conftest.c:36: warning: implicit declaration of function 'htonll'
configure:6646: $? = 0
configure:6672: result: yes


What version of the product are you using? On what operating system?
I am building this off trunk on snow leopard. The platform information from my configure run is as follows:

name -m = i386
uname -r = 10.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 2.00 gigabytes
Default processor set: 109 tasks, 463 threads, 2 processors

I don't intend to run this on the machine.. Am just playing around with memcached on my laptop..

Please provide any additional information below.



Reply via email to