OK, I've gotten configure to successfully run and create a Makefile for me. I
did have to edit that Makefile to include the location of the RTL headers, but
now I'm getting the following when I attempt to make. Note that I'm using the
latest of the PHP ARAPI source, RTL beta 3, and ARAPI 7.1 on a Linux 32-bit
machine.
[root@itdev2 php_arapi]# make
/bin/sh /root/php_arapi_build/php_arapi/libtool --mode=compile g++ -I. -I/root/php_arapi_build/php_arapi -DPHP_ATOM_INC -I/root/php_arapi_build/php_arapi/include -I/root/php_arapi_build/php_arapi/main -I/root/php_arapi_build/php_arapi -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/root/php_arapi_build/arapi/include -I/root/php_arapi_build/rtl -D_REENTRANT -DHAVE_CONFIG_H -malign-double -c /root/php_arapi_build/php_arapi/php_arapi.cpp -o php_arapi.lo
libtool: compile: g++ -I. -I/root/php_arapi_build/php_arapi -DPHP_ATOM_INC -I/root/php_arapi_build/php_arapi/include -I/root/php_arapi_build/php_arapi/main -I/root/php_arapi_build/php_arapi -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/root/php_arapi_build/arapi/include -I/root/php_arapi_build/rtl -D_REENTRANT -DHAVE_CONFIG_H -malign-double -c /root/php_arapi_build/php_arapi/php_arapi.cpp -fPIC -DPIC -o .libs/php_arapi.o
In file included from /root/php_arapi_build/php_arapi/php_arapi.cpp:32:
/root/php_arapi_build/rtl/Server.h: In member function âvoid rtl::Server::getField(rtl::AssignableT<ARFieldInfoStruct>&, const std::string&, ARInternalId, rtl::Server::FieldProperties)â:
/root/php_arapi_build/rtl/Server.h:560: error: cannot convert âARValueStruct*â to âunsigned int*â for argument â9â to âint ARGetField(ARControlStruct*, char*, ARInternalId, char*, ARFieldMappingStruct*, unsigned int*, unsigned int*, unsigned int*, unsigned int*, ARValueStruct*, ARPermissionList*, ARFieldLimitStruct*, ARDisplayInstanceList*, char**, ARTimestamp*, char*, char*, char**, ARStatusList*)â
/root/php_arapi_build/rtl/Server.h: In member function âvoid rtl::Server::getMultipleFields(rtl::AssignableT<ARFieldInfoList>&, const std::string&, const rtl::IdList&, rtl::Server::FieldProperties)â:
/root/php_arapi_build/rtl/Server.h:639: error: cannot convert âARValueList*â to âARUnsignedIntList*â for argument â11â to âint ARGetMultipleFields(ARControlStruct*, char*, ARInternalIdList*, ARBooleanList*, ARInternalIdList*, ARNameList*, ARFieldMappingList*, ARUnsignedIntList*, ARUnsignedIntList*, ARUnsignedIntList*, ARUnsignedIntList*, ARValueList*, ARPermissionListList*, ARFieldLimitList*, ARDisplayInstanceListList*, ARTextStringList*, ARTimestampList*, ARAccessNameList*, ARAccessNameList*, ARTextStringList*, ARStatusList*)â
/root/php_arapi_build/rtl/Server.h: In member function ârtl::Id rtl::Server::createField(const std::string&, const rtl::Field&, bool)â:
/root/php_arapi_build/rtl/Server.h:772: error: invalid conversion from âARValueStruct*â to âunsigned intâ
/root/php_arapi_build/rtl/Server.h:772: error: cannot convert âARPermissionList*â to âARValueStruct*â for argument â11â to âint ARCreateField(ARControlStruct*, char*, ARInternalId*, ARBoolean, char*, ARFieldMappingStruct*, unsigned int, unsigned int, unsigned int, unsigned int, ARValueStruct*, ARPermissionList*, ARFieldLimitStruct*, ARDisplayInstanceList*, char*, char*, char*, ARStatusList*)â
/root/php_arapi_build/rtl/Server.h: In member function âvoid rtl::Server::setField(const std::string&, const rtl::Field&, unsigned int)â:
/root/php_arapi_build/rtl/Server.h:828: error: cannot convert âARValueStruct*â to âunsigned int*â for argument â8â to âint ARSetField(ARControlStruct*, char*, ARInternalId, char*, ARFieldMappingStruct*, unsigned int*, unsigned int*, unsigned int*, ARValueStruct*, ARPermissionList*, ARFieldLimitStruct*, ARDisplayInstanceList*, char*, char*, char*, unsigned int, ARStatusList*)â
/root/php_arapi_build/rtl/Server.h: In member function âvoid rtl::Server::createRegularSchema(const std::string&)â:
/root/php_arapi_build/rtl/Server.h:1386: error: cannot convert âARStatusList*â to âARPropList*â for argument â16â to âint ARCreateSchema(ARControlStruct*, char*, ARCompoundSchema*, ARSchemaInheritanceList*, ARPermissionList*, ARInternalIdList*, AREntryListFieldList*, ARSortList*, ARIndexList*, ARArchiveInfoStruct*, ARAuditInfoStruct*, char*, char*, char*, char*, ARPropList*, ARStatusList*)â
/root/php_arapi_build/php_arapi/php_arapi.cpp: In function âvoid zif_arapi_initialization(int, zval*, zval**, zval*, int)â:
/root/php_arapi_build/php_arapi/php_arapi.cpp:352: warning: deprecated conversion from string constant to âchar*â
/root/php_arapi_build/php_arapi/php_arapi.cpp: In function âvoid zif_arapi_setserverport(int, zval*, zval**, zval*, int)â:
/root/php_arapi_build/php_arapi/php_arapi.cpp:441: warning: deprecated conversion from string constant to âchar*â
/root/php_arapi_build/php_arapi/php_arapi.cpp: In function âvoid zif_arapi_deleteentry(int, zval*, zval**, zval*, int)â:
/root/php_arapi_build/php_arapi/php_arapi.cpp:1064: warning: deprecated conversion from string constant to âchar*â
/root/php_arapi_build/php_arapi/php_arapi.cpp: In function âvoid zif_arapi_getentryblob(int, zval*, zval**, zval*, int)â:
/root/php_arapi_build/php_arapi/php_arapi.cpp:1122: warning: deprecated conversion from string constant to âchar*â
/root/php_arapi_build/php_arapi/php_arapi.cpp: In function âvoid zif_arapi_getselvalues(int, zval*, zval**, zval*, int)â:
/root/php_arapi_build/php_arapi/php_arapi.cpp:1182: warning: deprecated conversion from string constant to âchar*â
/root/php_arapi_build/php_arapi/php_arapi.cpp: At global scope:
/root/php_arapi_build/php_arapi/php_arapi.cpp:1417: warning: deprecated conversion from string constant to âchar*â
make: *** [php_arapi.lo] Error 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I thought RTL beta 3 contained the source code for 7.1. But now when I looked
through the code I see it is only for 6.3. There is a patch you can download
in the patch formum at RTL. There is also a note from me about one thing that
is wrong in that patch.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, I've gotten configure to successfully run and create a Makefile for me. I
did have to edit that Makefile to include the location of the RTL headers, but
now I'm getting the following when I attempt to make. Note that I'm using the
latest of the PHP ARAPI source, RTL beta 3, and ARAPI 7.1 on a Linux 32-bit
machine.
Hi,
I thought RTL beta 3 contained the source code for 7.1. But now when I looked
through the code I see it is only for 6.3. There is a patch you can download
in the patch formum at RTL. There is also a note from me about one thing that
is wrong in that patch.
I just applied the changes posted here and I was able to build, finally:
https://sourceforge.net/tracker/?func=detail&aid=1602167&group_id=155932&atid
=797756