[unixODBC-support] Solaris 10 - Sparc 64bits Sun Microsystem - make error

ithier.ctr at jdi.socom.mil ithier.ctr at jdi.socom.mil
Fri Jun 5 16:25:26 BST 2009


Hello:

I am new on unixodbc, I am running Sybase 12.5 on SPARC 64bits with
Solaris 10 OS.
I am using perl(sparc) 5.8.5, libiconv(sparc) 1.8, gcc-3-3.4.6,
DBI-1.48, and DBD-Sybase-1.07.
I am able to access the Sybase databases, using Apache Web Page and Perl
language.  The Sybase Server and Apache Web are in the same
Unix/Solaris10 server.

My new goal is to access other database on a Microsoft SQL 2005 Server
from my Unix server.
To accomplish my new goal, first I tried to install the DBD-ODBC-1.11,
but I get the error message that I need a driver manager.  Then I
decided to install unixODBC-2.2.14 to get the driver manager.

To compile this package I executed 'sh ./configure --enable-gui=no' and
worked fine, but the 'make' command failed.  The last lines of the
console are as follow:



if /bin/bash ../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"unixODBC\" -DVERSION=\"2.2.14\"
-DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_SEM_H=1 -DHAVE_DLFCN_H=1
-DHAVE_ICONV=1 -DICONV_CONST=const -DHAVE_LIBCRYPT=1 -DHAVE_SCANDIR=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_TIME_H=1 -DSIZEOF_LONG=4
-DHAVE_LONG_LONG=1 -DSIZEOF_LONG_INT=4 -DHAVE_STRCASECMP=1
-DHAVE_STRNCASECMP=1 -DHAVE_VSNPRINTF=1 -DHAVE_STRTOL=1 -DHAVE_ATOLL=1
-DHAVE_STRTOLL=1 -DHAVE_ENDPWENT=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_FTIME=1
-DHAVE_TIME=1 -DHAVE_LIBTHREAD=1 -D_REENTRANT=1 -DHAVE_LOCALTIME_R=1
-DHAVE_FTOK=1 -DHAVE_SEMGET=1 -DHAVE_SHMGET=1 -DHAVE_SEMOP=1
-DHAVE_SNPRINTF=1 -DNEED_SEMUNDO_UNION=1 -DCOLLECT_STATS=1
-DSTDC_HEADERS=1 -DHAVE_MALLOC_H=1 -DHAVE_UNISTD_H=1 -DHAVE_PWD_H=1
-DHAVE_CRYPT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYNCH_H=1 -DHAVE_STRINGS_H=1
-DHAVE_STRING_H=1 -DHAVE_LOCALE_H=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_SEM_H=1 -DHAVE_STDARG_H=1 -DHAVE_SYS_TIME_H=1
-DHAVE_SYS_TIMEB_H=1 -DHAVE_TIME_H=1 -DHAVE_DIRENT_H=1 -DHAVE_ALLOCA_H=1
-DHAVE_ALLOCA=1 -DHAVE_VPRINTF=1 -DHAVE_DOPRNT=1 -DHAVE_PUTENV=1
-DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1
-DHAVE_STRCHR=1 -DUNIXODBC_SOURCE=1  -I. -I. -I../include  -I../libltdl
-DSHLIBEXT=\".so\"  -DSYSTEM_FILE_PATH=\"/usr/local/etc\"
-DSYSTEM_LIB_PATH=\"/usr/local/lib\"  -DUNICODE_ENCODING=\"auto-search\"
-DUNIXODBC_SOURCE  -DASCII_ENCODING=\"auto-search\"     -g -O2
-DENABLE_INI_CACHING -MT __info.lo -MD -MP -MF ".deps/__info.Tpo" -c -o
__info.lo __info.c; \

then mv -f ".deps/__info.Tpo" ".deps/__info.Plo"; else rm -f
".deps/__info.Tpo"; exit 1; fi
 gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"unixODBC\"
-DVERSION=\"2.2.14\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SYS_SEM_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ICONV=1 -DICONV_CONST=const
-DHAVE_LIBCRYPT=1 -DHAVE_SCANDIR=1 -DTIME_WITH_SYS_TIME=1
-DHAVE_SYS_TIME_H=1 -DSIZEOF_LONG=4 -DHAVE_LONG_LONG=1
-DSIZEOF_LONG_INT=4 -DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1
-DHAVE_VSNPRINTF=1 -DHAVE_STRTOL=1 -DHAVE_ATOLL=1 -DHAVE_STRTOLL=1
-DHAVE_ENDPWENT=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_FTIME=1 -DHAVE_TIME=1
-DHAVE_LIBTHREAD=1 -D_REENTRANT=1 -DHAVE_LOCALTIME_R=1 -DHAVE_FTOK=1
-DHAVE_SEMGET=1 -DHAVE_SHMGET=1 -DHAVE_SEMOP=1 -DHAVE_SNPRINTF=1
-DNEED_SEMUNDO_UNION=1 -DCOLLECT_STATS=1 -DSTDC_HEADERS=1
-DHAVE_MALLOC_H=1 -DHAVE_UNISTD_H=1 -DHAVE_PWD_H=1 -DHAVE_CRYPT_H=1
-DHAVE_LIMITS_H=1 -DHAVE_SYNCH_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRING_H=1
-DHAVE_LOCALE_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_SEM_H=1
-DHAVE_STDARG_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMEB_H=1
-DHAVE_TIME_H=1 -DHAVE_DIRENT_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1
-DHAVE_VPRINTF=1 -DHAVE_DOPRNT=1 -DHAVE_PUTENV=1 -DHAVE_STRDUP=1
-DHAVE_STRSTR=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_STRCHR=1
-DUNIXODBC_SOURCE=1 -I. -I. -I../include -I../libltdl -DSHLIBEXT=\".so\"
-DSYSTEM_FILE_PATH=\"/usr/local/etc\"
-DSYSTEM_LIB_PATH=\"/usr/local/lib\" -DUNICODE_ENCODING=\"auto-search\"
-DUNIXODBC_SOURCE -DASCII_ENCODING=\"auto-search\" -g -O2
-DENABLE_INI_CACHING -MT __info.lo -MD -MP -MF .deps/__info.Tpo -c
__info.c  -fPIC -DPIC -o .libs/__info.o
__info.c:480:6: invalid preprocessing directive #char
*** Error code 1
make: Fatal error: Command failed for target `__info.lo'
Current working directory
/working/sybase.dbd/unixODBC-2.2.14/DriverManager
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='extras  log  lst  ini  libltdl  odbcinst  DriverManager  odbcinstQ
odbcinstQ4  exe  cur  DRVConfig  Drivers  include  doc  ODBCConfig
DataManager  DataManagerII  odbctest  autotest  samples'; for subdir in
$list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'


Please Advise,

Oscar


More information about the unixODBC-support mailing list