Bug 156756 - databases/libmemcached tests fail with gcc46
Summary: databases/libmemcached tests fail with gcc46
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Vanilla I. Shu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-01 18:10 UTC by Olivier - interfaSys sàrl
Modified: 2011-05-23 13:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier - interfaSys sàrl 2011-05-01 18:10:12 UTC
No problem to compile 0.48, but impossible to compile 0.49 as tests fail with this:


  CC     tests/atomsmasher.o
  CXX    tests/tests_hash_plus-hash_plus.o
  CC     tests/start.o
  CXX    tests/basic.o
  CXX    tests/deprecated.o
  CXX    tests/error_conditions.o
  CC     tests/tests_testapp-mem_functions.o
  CXX    tests/parser.o
  CXX    tests/pool.o
  CXX    tests/print.o
  CXX    tests/replication.o
  CXX    tests/string.o
tests/basic.cc: In function 'test_return_t basic_reset_stack_clone_test(memcached_st*)':
tests/basic.cc:107:34: error: 'memset' was not declared in this scope
gmake[1]: *** [tests/basic.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
clients/memparse.cc: In function 'int main(int, char**)':
clients/memparse.cc:57:65: error: 'strlen' was not declared in this scope
gmake[1]: *** [clients/memparse.o] Error 1
tests/pool.cc: In function 'test_return_t memcached_pool_test(memcached_st*)':
tests/pool.cc:59:78: error: 'strlen' was not declared in this scope
tests/pool.cc:60:152: error: 'strerror' was not declared in this scope
gmake[1]: *** [tests/pool.o] Error 1
tests/parser.cc: In function 'test_return_t __check_host(memcached_st*, const scanner_string_st&)':
tests/parser.cc:92:53: error: 'strcmp' was not declared in this scope
tests/parser.cc: In function 'test_return_t __check_prefix_key(memcached_st*, const scanner_string_st&)':
tests/parser.cc:107:53: error: 'strcmp' was not declared in this scope
gmake[1]: *** [tests/parser.o] Error 1
gmake[1]: Leaving directory `/usr/ports/databases/libmemcached/work/libmemcached-0.49'
gmake: *** [all] Error 2

I've tried with various CFLAGS, but couldn't succeed.

How-To-Repeat: Install gcc46, compile libmemcached
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-05-01 21:14:34 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vanilla

Fix synopsis and assign.
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-05-23 13:48:32 UTC
vanilla     2011-05-23 12:48:19 UTC

  FreeBSD ports repository

  Modified files:
    databases/libmemcached Makefile 
    databases/libmemcached/files patch-configure 
  Added files:
    databases/libmemcached/files patch-clients__memparse.cc 
                                 patch-libtest__test.h 
  Log:
  Fix compile problem with gcc46.
  
  PR:             ports/156756
  Submitted by:   Olivier <software-freebsd@interfasys dot ch>
  
  Revision  Changes    Path
  1.41      +1 -1      ports/databases/libmemcached/Makefile
  1.1       +10 -0     ports/databases/libmemcached/files/patch-clients__memparse.cc (new)
  1.9       +5 -5      ports/databases/libmemcached/files/patch-configure
  1.1       +10 -0     ports/databases/libmemcached/files/patch-libtest__test.h (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Vanilla I. Shu freebsd_committer freebsd_triage 2011-05-23 13:48:54 UTC
State Changed
From-To: open->closed

Committed, thanks.