Bonjour à tous,
J’ai installer une nouvelle vm avec la dernier version debian :
root@srv-intranet:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
Linux srv-intranet 4.19.0-8-686-pae #1 SMP Debian 4.19.98-1 (2020-01-26) i686 GNU/Linux
root@srv-intranet:~# odbcinst -j
unixODBC 2.3.6
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /root/.odbc.ini
SQLULEN Size.......: 4
SQLLEN Size........: 4
SQLSETPOSIROW Size.: 2
Et je bloque pour installer les drivers obdc de MS pour acceder à sqlserver
Au travers des différents tuto, il indique de passer la commande: pecl install sqlsrv mais a la fin j’ai cette erreur:
In file included from /tmp/pear/temp/sqlsrv/shared/xplat.h:99,
from /tmp/pear/temp/sqlsrv/shared/typedefs_for_linux.h:23,
from /tmp/pear/temp/sqlsrv/shared/xplat_winnls.h:24,
from /tmp/pear/temp/sqlsrv/shared/FormattedPrint.h:24,
from /tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:41,
from /tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:25,
from /tmp/pear/temp/sqlsrv/conn.cpp:24:
/tmp/pear/temp/sqlsrv/shared/xplat_intsafe.h:50:29: error: conflicting declaration ‘typedef windowsULong_t DWORD’
typedef windowsULong_t DWORD;
^~~~~
In file included from /usr/include/sql.h:19,
from /tmp/pear/temp/sqlsrv/shared/xplat.h:30,
from /tmp/pear/temp/sqlsrv/shared/typedefs_for_linux.h:23,
from /tmp/pear/temp/sqlsrv/shared/xplat_winnls.h:24,
from /tmp/pear/temp/sqlsrv/shared/FormattedPrint.h:24,
from /tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:41,
from /tmp/pear/temp/sqlsrv/php_sqlsrv_int.h:25,
from /tmp/pear/temp/sqlsrv/conn.cpp:24:
/usr/include/sqltypes.h:96:24: note: previous declaration as ‘typedef long unsigned int DWORD’
typedef unsigned long DWORD;
^~~~~
make: *** [Makefile:194: conn.lo] Error 1
ERROR: `make' failed
en recherchant sur internet il indique que cela peut provenir d’une valeur dans le fichier /user/include/unixodbc_conf.h mais je n’ai pas ce fichier. Celui est présent dans " /usr/include/i386-linux-gnu/unixodbc_conf.h"
(Passage de la valeur de 4 à 8)
#ifndef SIZEOF_LONG_INT
define SIZEOF_LONG_INT 8
#endif
Mais cela ne fonctionne pas.
Et donc je me permet de venir vers vous car je ne sais pas ou regarder maintenant
merci d’avance pour vos conseils