{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/msphpsql/issues/174","repository_url":"https://api.github.com/repos/Microsoft/msphpsql","labels_url":"https://api.github.com/repos/Microsoft/msphpsql/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/msphpsql/issues/174/comments","events_url":"https://api.github.com/repos/Microsoft/msphpsql/issues/174/events","html_url":"https://github.com/Microsoft/msphpsql/issues/174","id":184641455,"number":174,"title":"Compile error in centos 6.8","user":{"login":"epoxa","id":9610552,"avatar_url":"https://avatars.githubusercontent.com/u/9610552?v=3","gravatar_id":"","url":"https://api.github.com/users/epoxa","html_url":"https://github.com/epoxa","followers_url":"https://api.github.com/users/epoxa/followers","following_url":"https://api.github.com/users/epoxa/following{/other_user}","gists_url":"https://api.github.com/users/epoxa/gists{/gist_id}","starred_url":"https://api.github.com/users/epoxa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epoxa/subscriptions","organizations_url":"https://api.github.com/users/epoxa/orgs","repos_url":"https://api.github.com/users/epoxa/repos","events_url":"https://api.github.com/users/epoxa/events{/privacy}","received_events_url":"https://api.github.com/users/epoxa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-22T16:59:59Z","updated_at":"2016-10-24T18:24:15Z","closed_at":null,"body":"Trying to compile under centos 6.8 I always get an error\r\n`[root@centosdev php-7.0.12]# make\r\n/bin/sh /root/php-7.0.12/libtool --silent --preserve-dup-deps --mode=compile c++ -I/root/php-7.0.12/ext -std=c++11 -Iext/pdo_sqlsrv/ -I/root/php-7.0.12/ext/pdo_sqlsrv/ -DPHP_ATOM_INC -I/root/php-7.0.12/include -I/root/php-7.0.12/main -I/root/php-7.0.12 -I/root/php-7.0.12/ext/date/lib -I/usr/include/libxml2 -I/root/php-7.0.12/ext/sqlite3/libsqlite -I/root/php-7.0.12/TSRM -I/root/php-7.0.12/Zend    -std=c++11   -c /root/php-7.0.12/ext/pdo_sqlsrv/core_conn.cpp -o ext/pdo_sqlsrv/core_conn.lo \r\n/root/php-7.0.12/ext/pdo_sqlsrv/core_conn.cpp: In function ‘sqlsrv_conn* core_sqlsrv_connect(sqlsrv_context&, sqlsrv_context&, driver_conn_factory, const char*, const char*, const char*, HashTable*, error_callback, const connection_option*, void*, const char*)’:\r\n/root/php-7.0.12/ext/pdo_sqlsrv/core_conn.cpp:205:12: error: expected type-specifier\r\n/root/php-7.0.12/ext/pdo_sqlsrv/core_conn.cpp:205:30: error: expected unqualified-id before ‘const’\r\n/root/php-7.0.12/ext/pdo_sqlsrv/core_conn.cpp:205:30: error: expected ‘)’ before ‘const’\r\n/root/php-7.0.12/ext/pdo_sqlsrv/core_conn.cpp:205:30: error: expected ‘{’ before ‘const’\r\n/root/php-7.0.12/ext/pdo_sqlsrv/core_conn.cpp:205:40: error: expected initializer before ‘)’ token\r\n/root/php-7.0.12/ext/pdo_sqlsrv/core_conn.cpp:212:5: error: expected primary-expression before ‘catch’\r\n/root/php-7.0.12/ext/pdo_sqlsrv/core_conn.cpp:212:5: error: expected ‘;’ before ‘catch’\r\n/root/php-7.0.12/ext/pdo_sqlsrv/core_conn.cpp:219:5: error: expected primary-expression before ‘catch’\r\n/root/php-7.0.12/ext/pdo_sqlsrv/core_conn.cpp:219:5: error: expected ‘;’ before ‘catch’\r\nmake: *** [ext/pdo_sqlsrv/core_conn.lo] Error 1\r\n`\r\nI believe gcc is used. My gcc version is:\r\ngcc version 4.7.2 20121015 (Red Hat 4.7.2-5) (GCC)\r\nConfigured with: ../configure --prefix=/opt/centos/devtoolset-1.1/root/usr --mandir=/opt/centos/devtoolset-1.1/root/usr/share/man --infodir=/opt/centos/devtoolset-1.1/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --disable-build-with-cxx --disable-build-poststage1-with-cxx --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,fortran,lto --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj --with-ppl --with-cloog --with-mpc=/home/centos/rpm/BUILD/gcc-4.7.2-20121015/obj-x86_64-redhat-linux/mpc-install --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux\r\nThread model: posix\r\n\r\nWhat can be the issue there? Thanks"},"comment":{"url":"https://api.github.com/repos/Microsoft/msphpsql/issues/comments/255823635","html_url":"https://github.com/Microsoft/msphpsql/issues/174#issuecomment-255823635","issue_url":"https://api.github.com/repos/Microsoft/msphpsql/issues/174","id":255823635,"user":{"login":"v-kigos","id":16545402,"avatar_url":"https://avatars.githubusercontent.com/u/16545402?v=3","gravatar_id":"","url":"https://api.github.com/users/v-kigos","html_url":"https://github.com/v-kigos","followers_url":"https://api.github.com/users/v-kigos/followers","following_url":"https://api.github.com/users/v-kigos/following{/other_user}","gists_url":"https://api.github.com/users/v-kigos/gists{/gist_id}","starred_url":"https://api.github.com/users/v-kigos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-kigos/subscriptions","organizations_url":"https://api.github.com/users/v-kigos/orgs","repos_url":"https://api.github.com/users/v-kigos/repos","events_url":"https://api.github.com/users/v-kigos/events{/privacy}","received_events_url":"https://api.github.com/users/v-kigos/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T18:24:15Z","updated_at":"2016-10-24T18:24:15Z","body":"I am able to build sqlsrv / pdo_sqlsqrv on CentOS 6.8.\r\n\r\nCan you confirm:\r\n$ cat /etc/redhat-release \r\nCentOS release 6.8 (Final)\r\n\r\n$ gcc -v\r\nThread model: posix\r\ngcc version 4.8.2 20140120 (Red Hat 4.8.2-15) (GCC) \r\n\r\n$ odbcinst -j\r\nunixODBC 2.3.1\r\nDRIVERS............: /etc/odbcinst.ini\r\nSYSTEM DATA SOURCES: /etc/odbc.ini\r\nFILE DATA SOURCES..: /etc/ODBCDataSources\r\nUSER DATA SOURCES..: /home/user/.odbc.ini\r\nSQLULEN Size.......: 8\r\nSQLLEN Size........: 8\r\nSQLSETPOSIROW Size.: 8\r\n\r\n"}}
{"actor":{"display_login":"v-kigos"}}