wfleurant / sysupgrade-server

1 stars 0 forks source link

dep: psqlodbc: cant link: cant fix: on wrt-18 odbcapi30.c:121 #1

Open wfleurant opened 6 years ago

wfleurant commented 6 years ago

libtool: compile: ccache_cc -DHAVE_CONFIG_H -I. -I/dev/shm/lime-sdk/openwrt/x86/64/sdk/staging_dir/target-x86_64_musl/usr/include -I/dev/shm/lime-sdk/openwrt/x86/64/sdk/staging_dir/target-x86_64_musl/include -I/dev/shm/lime-sdk/openwrt/x86/64/sdk/staging_dir/toolchain-x86_64_gcc-7.3.0_musl/usr/include -I/dev/shm/lime-sdk/openwrt/x86/64/sdk/staging_dir/toolchain-x86_64_gcc-7.3.0_musl/include/fortify -I/dev/shm/lime-sdk/openwrt/x86/64/sdk/staging_dir/toolchain-x86_64_gcc-7.3.0_musl/include -I -I/dev/shm/lime-sdk/openwrt/x86/64/sdk/staging_dir/target-x86_64_musl/usr/include -I/dev/shm/lime-sdk/openwrt/x86/64/sdk/staging_dir/target-x86_64_musl/usr/include -DUNICODE_SUPPORT -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/dev/shm/lime-sdk/openwrt/x86/64/sdk/build_dir/target-x86_64_musl/psqlodbc-09.06.0310:psqlodbc-09.06.0310 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -MT psqlodbcw_la-odbcapi30.lo -MD -MP -MF .deps/psqlodbcw_la-odbcapi30.Tpo -c odbcapi30.c -fPIC -DPIC -o .libs/psqlodbcw_la-odbcapi30.o

odbcapi30.c:121:1: error: conflicting types for 'SQLColAttribute' SQLColAttribute(SQLHSTMT StatementHandle, ^~~~~~~ In file included from psqlodbc.h:93:0, from odbcapi30.c:21: /dev/shm/lime-sdk/openwrt/x86/64/sdk/staging_dir/target-x86_64_musl/usr/include/sql.h:613:24: note: previous declaration of 'SQLColAttribute' was here SQLRETURN SQL_API SQLColAttribute(SQLHSTMT StatementHandle, ^~~~~~~ Makefile:810: recipe for target 'psqlodbcw_la-odbcapi30.lo' failed

bazilxp commented 6 years ago

install -d -m0755 /var/build/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/root-ar71xx/tmp-psqlodbcw/usr/lib cp -fpR /var/build/openwrt/build_dir/target-mips_34kc_musl-1.1.16/psqlodbc-09.06.0410/ipkg-install/usr/lib/psqlodbcw.so* /var/build/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/root-ar71xx/tmp-psqlodbcw/usr/lib/ install -d -m0755 /var/build/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/root-ar71xx/tmp-psqlodbcw/etc/odbcinst.ini.d echo "[PostgreSQL Unicode]" > /var/build/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/root-ar71xx/tmp-psqlodbcw/etc/odbcinst.ini.d/psqlodbcw.ini echo "Description = PostgreSQL ODBC driver (Unicode version)" >> /var/build/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/root-ar71xx/tmp-psqlodbcw/etc/odbcinst.ini.d/psqlodbcw.ini echo "Driver = /usr/lib/psqlodbcw.so" >> /var/build/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/root-ar71xx/tmp-psqlodbcw/etc/odbcinst.ini.d/psqlodbcw.ini SHELL= flock /var/build/openwrt/tmp/.root-copy.flock -c 'cp -fpR /var/build/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/root-ar71xx/tmp-psqlodbcw/. /var/build/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/root-ar71xx/' rm -rf /var/build/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/root-ar71xx/tmp-psqlodbcw touch /var/build/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/root-ar71xx/stamp/.psqlodbcw_installed make[2]: Leaving directory /var/build/openwrt/feeds/packages/libs/psqlodbc' make[1]: Leaving directory/var/build/openwrt'

Take version psqlodbc-09.06.0410 :) There are many here... https://www.postgresql.org/ftp/odbc/versions/src/