{"action":"created","issue":{"url":"https://api.github.com/repos/CUCmehp/occiwrapper/issues/1","labels_url":"https://api.github.com/repos/CUCmehp/occiwrapper/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/CUCmehp/occiwrapper/issues/1/comments","events_url":"https://api.github.com/repos/CUCmehp/occiwrapper/issues/1/events","html_url":"https://github.com/CUCmehp/occiwrapper/issues/1","id":71220259,"number":1,"title":"1.0.2 \"make\" error on Suse11","user":{"login":"haih","id":5799542,"avatar_url":"https://avatars.githubusercontent.com/u/5799542?v=3","gravatar_id":"","url":"https://api.github.com/users/haih","html_url":"https://github.com/haih","followers_url":"https://api.github.com/users/haih/followers","following_url":"https://api.github.com/users/haih/following{/other_user}","gists_url":"https://api.github.com/users/haih/gists{/gist_id}","starred_url":"https://api.github.com/users/haih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haih/subscriptions","organizations_url":"https://api.github.com/users/haih/orgs","repos_url":"https://api.github.com/users/haih/repos","events_url":"https://api.github.com/users/haih/events{/privacy}","received_events_url":"https://api.github.com/users/haih/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-27T08:40:54Z","updated_at":"2015-04-29T04:45:01Z","closed_at":null,"body":"\"make\" on  Suse11, show the error as follow:\r\nMaking all in .\r\nmake[1]: Entering directory `/home/haihu/occiwrapper/occiwrapper-1.0.2'\r\n/bin/sh ./libtool --tag=CXX   --mode=compile g++ -DPACKAGE_NAME=\\\"\\\" -DPACKAGE_TARNAME=\\\"\\\" -DPACKAGE_VERSION=\\\"\\\" -DPACKAGE_STRING=\\\"\\\" -DPAC\"\\\" -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_AVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\\\".libs/\\\" -DHAVE_LIMITS_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1E_R=1 -DHAVE_MEMMOVE=1 -I. -I. -I./include -I/home/haihu/occiwrapper/instantclient-sdk-linux/instantclient_12_1/sdk/include/ -std=gnu++0x   -gFactory.lo -MD -MP -MF .deps/SessionFactory.Tpo -c -o SessionFactory.lo SessionFactory.cpp\r\nlibtool: compile:  g++ -DPACKAGE_NAME=\\\"\\\" -DPACKAGE_TARNAME=\\\"\\\" -DPACKAGE_VERSION=\\\"\\\" -DPACKAGE_STRING=\\\"\\\" -DPACKAGE_BUGREPORT=\\\"\\\" -DSTDCE_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_STDINTTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\\\".libs/\\\" -DHAVE_LIMITS_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_LOCALTIME_R=1 -DHA -I. -I./include -I/home/haihu/occiwrapper/instantclient-sdk-linux/instantclient_12_1/sdk/include/ -std=gnu++0x -g -O2 -MT SessionFactory.lo -/SessionFactory.Tpo -c SessionFactory.cpp  -fPIC -DPIC -o .libs/SessionFactory.o\r\nIn file included from ./include/OcciWrapper/AbstractBinding.h:3,\r\n                 from ./include/OcciWrapper/Binding.h:3,\r\n                 from ./include/OcciWrapper/StatementImpl.h:9,\r\n                 from ./include/OcciWrapper/Session.h:6,\r\n                 from ./include/OcciWrapper/SessionFactory.h:4,\r\n                 from SessionFactory.cpp:1:\r\n./include/OcciWrapper/TypeHandler.h: In static member function ‘static void occiwrapper::TypeHandler<T>::extract(size_t, occiwrapper::Abstract\r\n./include/OcciWrapper/TypeHandler.h:337: 错误：‘malloc’的实参不依赖模板参数，所以‘malloc’的声明必须可用\r\n./include/OcciWrapper/TypeHandler.h:337: 错误：(如果您使用‘-fpermissive’，G++ 会接受您的代码，但是允许使用未定义的名称是不建议使用的风格)\r\n./include/OcciWrapper/TypeHandler.h:339: 错误：‘malloc’的实参不依赖模板参数，所以‘malloc’的声明必须可用\r\n./include/OcciWrapper/TypeHandler.h:341: 错误：‘malloc’的实参不依赖模板参数，所以‘malloc’的声明必须可用\r\n./include/OcciWrapper/TypeHandler.h: In static member function ‘static void occiwrapper::TypeHandler<std::basic_string<char, std::char_traits<cator<char> > >::extract(size_t, occiwrapper::AbstractExtractor*)’:\r\n./include/OcciWrapper/TypeHandler.h:393: 错误：‘malloc’在此作用域中尚未声明\r\n./include/OcciWrapper/TypeHandler.h: In static member function ‘static void occiwrapper::TypeHandler<tm>::extract(size_t, occiwrapper::Abstrac\r\n./include/OcciWrapper/TypeHandler.h:450: 错误：‘malloc’在此作用域中尚未声明\r\n./include/OcciWrapper/TypeHandler.h: In static member function ‘static void occiwrapper::TypeHandler<std::vector<T, std::allocator<_CharT> > >onst std::vector<T, std::allocator<_CharT> >&, occiwrapper::AbstractBinder*)’:\r\n./include/OcciWrapper/TypeHandler.h:1262: 错误：‘malloc’的实参不依赖模板参数，所以‘malloc’的声明必须可用\r\n......\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CUCmehp/occiwrapper/issues/comments/97302926","html_url":"https://github.com/CUCmehp/occiwrapper/issues/1#issuecomment-97302926","issue_url":"https://api.github.com/repos/CUCmehp/occiwrapper/issues/1","id":97302926,"user":{"login":"CUCmehp","id":6789242,"avatar_url":"https://avatars.githubusercontent.com/u/6789242?v=3","gravatar_id":"","url":"https://api.github.com/users/CUCmehp","html_url":"https://github.com/CUCmehp","followers_url":"https://api.github.com/users/CUCmehp/followers","following_url":"https://api.github.com/users/CUCmehp/following{/other_user}","gists_url":"https://api.github.com/users/CUCmehp/gists{/gist_id}","starred_url":"https://api.github.com/users/CUCmehp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CUCmehp/subscriptions","organizations_url":"https://api.github.com/users/CUCmehp/orgs","repos_url":"https://api.github.com/users/CUCmehp/repos","events_url":"https://api.github.com/users/CUCmehp/events{/privacy}","received_events_url":"https://api.github.com/users/CUCmehp/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T04:45:01Z","updated_at":"2015-04-29T04:45:01Z","body":"g++ 4.3的一个兼容性问题，是由于gcc 4.3取消了头文件多层关联造成的。\r\n在TyperHandler中使用了malloc，但未声明<malloc.h>，因此在gcc 4.3编译中出现该问题。\r\n己解决：在TypeHander.h上添加了<malloc.h>头文件引用，下载最近代码即可。"}}