Advertisement
Guest User

psqlodbc compiling error under Solaris 10

a guest
Dec 13th, 2010
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.11 KB | None | 0 0
  1. Situation: attempting to configure the Postgresql odbc driver psqlodbc-09.00.0200 on Solaris 10 u9 x64 i386 using the 32-bit libraries. Downloaded the unixodbc 2.2.14 Solaris package from the Downloads section of http://www.unixodbc.org/ and installed it with pkgadd; this went off without errors. Then downloaded the PostgreSQL ODBC driver from http://www.postgresql.org/ftp/odbc/versions/src/ (for more info see http://psqlodbc.projects.postgresql.org/ ), unpacked it and ran ./configure but received an error. Now looking for solution.
  2.  
  3.  
  4. ./configure results in shell:
  5.  
  6.  
  7. ./configure --with-unixodbc=/usr/local/bin/odbc_config checking for a BSD-compatible install... config/install-sh -c
  8. checking whether build environment is sane... yes
  9. checking for gawk... no
  10. checking for mawk... no
  11. checking for nawk... nawk
  12. checking whether make sets $(MAKE)... yes
  13. checking whether to enable maintainer-specific portions of Makefiles... no
  14. configure: using /usr/local/include -L/usr/local/lib -lodbc
  15. checking for style of include used by make... GNU
  16. checking for gcc... gcc
  17. checking for C compiler default output file name... a.out
  18. checking whether the C compiler works... configure: error: cannot run C compiled programs.
  19. If you meant to cross compile, use `--host'.
  20. See `config.log' for more details.
  21.  
  22.  
  23. config.log contents:
  24.  
  25. This file contains any messages produced by compilers while
  26. running configure, to aid debugging if configure makes a mistake.
  27.  
  28. It was created by psqlodbc configure 09.00.0200, which was
  29. generated by GNU Autoconf 2.60.  Invocation command line was
  30.  
  31.   $ ./configure --with-unixodbc=/usr/local/bin/odbc_config --with-unixodbc=/usr/local/bin/odbcinst --with-unixodbc=/usr/local/lib/libodbc.so.1
  32.  
  33. ## --------- ##
  34. ## Platform. ##
  35. ## --------- ##
  36.  
  37. hostname = unknown
  38. uname -m = i86pc
  39. uname -r = 5.10
  40. uname -s = SunOS
  41. uname -v = Generic_142910-17
  42.  
  43. /usr/bin/uname -p = i386
  44. /bin/uname -X     = System = SunOS
  45. Node = unknown
  46. Release = 5.10
  47. KernelID = Generic_142910-17
  48. Machine = i86pc
  49. BusType = <unknown>
  50. Serial = <unknown>
  51. Users = <unknown>
  52. OEM# = 0
  53. Origin# = 1
  54. NumCPU = 1
  55.  
  56. /bin/arch              = i86pc
  57. /usr/bin/arch -k       = i86pc
  58. /usr/convex/getsysinfo = unknown
  59. /usr/bin/hostinfo      = unknown
  60. /bin/machine           = unknown
  61. /usr/bin/oslevel       = unknown
  62. /bin/universe          = unknown
  63.  
  64. PATH: /usr/sbin
  65. PATH: /usr/bin
  66. PATH: /usr/openwin/bin
  67. PATH: /usr/ucb
  68. PATH: //bin
  69. PATH: /usr/sbin
  70. PATH: /usr/bin
  71. PATH: /root/bin
  72. PATH: /usr/local/bin
  73. PATH: /usr/local/sbin
  74. PATH: /usr/sfw/lib
  75. PATH: /usr/sfw/libexec
  76. PATH: /bin
  77. PATH: /sbin
  78. PATH: /opt/csw/bin
  79. PATH: /opt/csw/sbin
  80. PATH: /opt/csw/gcc3/bin
  81. PATH: /usr/sfw/sbin
  82. PATH: /usr/sfw/bin
  83. PATH: /opt/csw/mysql15/bin
  84. PATH: /usr/ccs/bin
  85. PATH: /usr/local/lib
  86.  
  87.  
  88. ## ----------- ##
  89. ## Core tests. ##
  90. ## ----------- ##
  91.  
  92. configure:1991: checking for a BSD-compatible install
  93. configure:2047: result: config/install-sh -c
  94. configure:2058: checking whether build environment is sane
  95. configure:2101: result: yes
  96. configure:2166: checking for gawk
  97. configure:2196: result: no
  98. configure:2166: checking for mawk
  99. configure:2196: result: no
  100. configure:2166: checking for nawk
  101. configure:2182: found /usr/bin/nawk
  102. configure:2193: result: nawk
  103. configure:2204: checking whether make sets $(MAKE)
  104. configure:2225: result: yes
  105. configure:2412: checking whether to enable maintainer-specific portions of Makefiles
  106. configure:2421: result: no
  107. configure:2624: using  
  108. configure:2643: checking for style of include used by make
  109. configure:2671: result: GNU
  110. configure:2744: checking for gcc
  111. configure:2771: result: gcc
  112. configure:3009: checking for C compiler version
  113. configure:3016: gcc --version >&5
  114. gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
  115. Copyright (C) 2004 Free Software Foundation, Inc.
  116. This is free software; see the source for copying conditions.  There is NO
  117. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  118.  
  119. configure:3019: $? = 0
  120. configure:3026: gcc -v >&5
  121. Reading specs from /usr/sfw/lib/../lib/gcc/i386-pc-solaris2.10/3.4.3/specs
  122. Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
  123. Thread model: posix
  124. gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
  125. configure:3029: $? = 0
  126. configure:3036: gcc -V >&5
  127. gcc: `-V' option must have argument
  128. configure:3039: $? = 1
  129. configure:3062: checking for C compiler default output file name
  130. configure:3089: gcc   -I  conftest.c   >&5
  131. gcc: no input files
  132. configure:3092: $? = 1
  133. configure: failed program was:
  134. | /* confdefs.h.  */
  135. | #define PACKAGE_NAME "psqlodbc"
  136. | #define PACKAGE_TARNAME "psqlodbc"
  137. | #define PACKAGE_VERSION "09.00.0200"
  138. | #define PACKAGE_STRING "psqlodbc 09.00.0200"
  139. | #define PACKAGE_BUGREPORT "[email protected]"
  140. | #define PACKAGE "psqlodbc"
  141. | #define VERSION "09.00.0200"
  142. | #define WITH_UNIXODBC 1
  143. | /* end confdefs.h.  */
  144. |
  145. | int
  146. | main ()
  147. | {
  148. |
  149. |   ;
  150. |   return 0;
  151. | }
  152. configure:3131: error: C compiler cannot create executables
  153. See `config.log' for more details.
  154.  
  155. ## ---------------- ##
  156. ## Cache variables. ##
  157. ## ---------------- ##
  158.  
  159. ac_cv_env_CCC_set=
  160. ac_cv_env_CCC_value=
  161. ac_cv_env_CC_set=set
  162. ac_cv_env_CC_value=gcc
  163. ac_cv_env_CFLAGS_set=
  164. ac_cv_env_CFLAGS_value=
  165. ac_cv_env_CPPFLAGS_set=
  166. ac_cv_env_CPPFLAGS_value=
  167. ac_cv_env_CPP_set=
  168. ac_cv_env_CPP_value=
  169. ac_cv_env_CXXCPP_set=
  170. ac_cv_env_CXXCPP_value=
  171. ac_cv_env_CXXFLAGS_set=
  172. ac_cv_env_CXXFLAGS_value=
  173. ac_cv_env_CXX_set=
  174. ac_cv_env_CXX_value=
  175. ac_cv_env_F77_set=
  176. ac_cv_env_F77_value=
  177. ac_cv_env_FFLAGS_set=
  178. ac_cv_env_FFLAGS_value=
  179. ac_cv_env_LDFLAGS_set=
  180. ac_cv_env_LDFLAGS_value=
  181. ac_cv_env_build_alias_set=
  182. ac_cv_env_build_alias_value=
  183. ac_cv_env_host_alias_set=
  184. ac_cv_env_host_alias_value=
  185. ac_cv_env_target_alias_set=
  186. ac_cv_env_target_alias_value=
  187. ac_cv_prog_AWK=nawk
  188. ac_cv_prog_ac_ct_CC=gcc
  189. ac_cv_prog_make_make_set=yes
  190.  
  191. ## ----------------- ##
  192. ## Output variables. ##
  193. ## ----------------- ##
  194.  
  195. ACLOCAL='${SHELL} /Documents/psqlodbc-09.00.0200/config/missing --run aclocal-1.9'
  196. AMDEPBACKSLASH='\'
  197. AMDEP_FALSE='#'
  198. AMDEP_TRUE=''
  199. AMTAR='${SHELL} /Documents/psqlodbc-09.00.0200/config/missing --run tar'
  200. AR=''
  201. AS=''
  202. AUTOCONF='${SHELL} /Documents/psqlodbc-09.00.0200/config/missing --run autoconf'
  203. AUTOHEADER='${SHELL} /Documents/psqlodbc-09.00.0200/config/missing --run autoheader'
  204. AUTOMAKE='${SHELL} /Documents/psqlodbc-09.00.0200/config/missing --run automake-1.9'
  205. AWK='nawk'
  206. CC='gcc'
  207. CCDEPMODE=''
  208. CFLAGS=''
  209. CPP=''
  210. CPPFLAGS=' -I'
  211. CXX=''
  212. CXXCPP=''
  213. CXXDEPMODE=''
  214. CXXFLAGS=''
  215. CYGPATH_W='echo'
  216. DEFS=''
  217. DEPDIR='.deps'
  218. DLLTOOL=''
  219. ECHO='echo'
  220. ECHO_C=''
  221. ECHO_N='-n'
  222. ECHO_T=''
  223. EGREP=''
  224. EXEEXT=''
  225. F77=''
  226. FFLAGS=''
  227. GCC_FALSE=''
  228. GCC_TRUE=''
  229. GREP=''
  230. INSTALL_DATA='${INSTALL} -m 644'
  231. INSTALL_PROGRAM='${INSTALL}'
  232. INSTALL_SCRIPT='${INSTALL}'
  233. INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
  234. LDFLAGS=''
  235. LIBOBJS=''
  236. LIBS=' '
  237. LIBTOOL=''
  238. LN_S=''
  239. LTLIBOBJS=''
  240. MAINT='#'
  241. MAINTAINER_MODE_FALSE=''
  242. MAINTAINER_MODE_TRUE='#'
  243. MAKEINFO='${SHELL} /Documents/psqlodbc-09.00.0200/config/missing --run makeinfo'
  244. OBJDUMP=''
  245. OBJEXT=''
  246. ODBC_CONFIG='/usr/local/lib/libodbc.so.1'
  247. PACKAGE='psqlodbc'
  248. PACKAGE_BUGREPORT='[email protected]'
  249. PACKAGE_NAME='psqlodbc'
  250. PACKAGE_STRING='psqlodbc 09.00.0200'
  251. PACKAGE_TARNAME='psqlodbc'
  252. PACKAGE_VERSION='09.00.0200'
  253. PATH_SEPARATOR=':'
  254. PG_CONFIG=''
  255. RANLIB=''
  256. SET_MAKE=''
  257. SHELL='/bin/bash'
  258. STRIP=''
  259. VERSION='09.00.0200'
  260. ac_ct_CC='gcc'
  261. ac_ct_CXX=''
  262. ac_ct_F77=''
  263. am__fastdepCC_FALSE=''
  264. am__fastdepCC_TRUE=''
  265. am__fastdepCXX_FALSE=''
  266. am__fastdepCXX_TRUE=''
  267. am__include='include'
  268. am__leading_dot='.'
  269. am__quote=''
  270. am__tar='${AMTAR} chof - "$$tardir"'
  271. am__untar='${AMTAR} xf -'
  272. bindir='${exec_prefix}/bin'
  273. build=''
  274. build_alias=''
  275. build_cpu=''
  276. build_os=''
  277. build_vendor=''
  278. datadir='${datarootdir}'
  279. datarootdir='${prefix}/share'
  280. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  281. dvidir='${docdir}'
  282. enable_gss_FALSE=''
  283. enable_gss_TRUE=''
  284. enable_krb5_FALSE=''
  285. enable_krb5_TRUE=''
  286. enable_openssl_FALSE=''
  287. enable_openssl_TRUE=''
  288. enable_unicode_FALSE=''
  289. enable_unicode_TRUE=''
  290. exec_prefix='NONE'
  291. host=''
  292. host_alias=''
  293. host_cpu=''
  294. host_os=''
  295. host_vendor=''
  296. htmldir='${docdir}'
  297. includedir='${prefix}/include'
  298. infodir='${datarootdir}/info'
  299. install_sh='/Documents/psqlodbc-09.00.0200/config/install-sh'
  300. libdir='${exec_prefix}/lib'
  301. libexecdir='${exec_prefix}/libexec'
  302. localedir='${datarootdir}/locale'
  303. localstatedir='${prefix}/var'
  304. mandir='${datarootdir}/man'
  305. mkdir_p='$(install_sh) -d'
  306. oldincludedir='/usr/include'
  307. pdfdir='${docdir}'
  308. prefix='NONE'
  309. program_transform_name='s,x,x,'
  310. psdir='${docdir}'
  311. sbindir='${exec_prefix}/sbin'
  312. sharedstatedir='${prefix}/com'
  313. sysconfdir='${prefix}/etc'
  314. target_alias=''
  315.  
  316. ## ----------- ##
  317. ## confdefs.h. ##
  318. ## ----------- ##
  319.  
  320. #define PACKAGE_NAME "psqlodbc"
  321. #define PACKAGE_TARNAME "psqlodbc"
  322. #define PACKAGE_VERSION "09.00.0200"
  323. #define PACKAGE_STRING "psqlodbc 09.00.0200"
  324. #define PACKAGE_BUGREPORT "[email protected]"
  325. #define PACKAGE "psqlodbc"
  326. #define VERSION "09.00.0200"
  327. #define WITH_UNIXODBC 1
  328.  
  329. configure: exit 77
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement