Skip to Content.
Sympa Menu

freetds - [freetds] Error compiling FreeTDS 2.6 on Solaris 2.6

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: chiang.tan AT truenergy.com.au
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] Error compiling FreeTDS 2.6 on Solaris 2.6
  • Date: Tue, 16 May 2006 15:49:24 +1000

Hi
I got the following error message when I tried to compile freeTDS 0.63 on
Solaris 2.6
I have no idea what went wrong, can someone give me a hand?

configure: WARNING: dlfcn.h: present but cannot be compiled
configure: WARNING: dlfcn.h: check for missing prerequisite headers?
configure: WARNING: dlfcn.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf AT gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check

Here are som error messages I found in the config.log:

configure:2723: gcc -c -g -O2 -D_FREETDS_LIBRARY_SOURCE conftest.c >&5
In file included from configure:2681:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.1/include/stdio.h:36:27:
iso/stdio_iso.h: No such file or directory
In file included from configure:2681:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.1/include/stdio.h:194:
parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.1/include/stdio.h:229:
parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.1/include/stdio.h:230:
parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.1/include/stdio.h:236:
parse error before "size_t"
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.1/include/stdio.h:241:
parse error before "size_t"
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.1/include/stdio.h:250:
parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.1/include/stdio.h:252:
parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.1/include/stdio.h:276:
parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.1/include/stdio.h:285:
parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.1/include/stdio.h:286:
parse error before "FILE"
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.1/include/stdio.h:287:
parse error before '*' token
configure:2686: parse error before '*' token
configure:2686: warning: data definition has no type or storage class
configure:2705: parse error before "FILE"
configure:2705: `pairnames' declared as function returning a function
configure:2705: parse error before "int"
configure:2726: $? = 1
configure: failed program was:
| #line 2669 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "freetds"
| #define VERSION "0.63"
| #define _GNU_SOURCE 1
| /* end confdefs.h. */
| #include <stdarg.h>
| #include <stdio.h>
| #include <sys/types.h>
| #include <sys/stat.h>
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
| char **p;
| int i;
| {
| return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
| char *s;
| va_list v;
| va_start (v,p);
| s = g (p, va_arg (v,int));
| va_end (v);
| return s;
| }
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *,
int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
| ;
| return 0;
| }


Cheers,
Chiang Tan
--
We're excited by gas & electricity.NOTICEThis email and any files transmitted
with it may be confidential and are intended solely for the use of the
individual or entity to whom they are addressed. Any confidentiality is not
waived or lost because this email has been sent to you by mistake. This email
may contain personal information of individuals, and be subject to
Commonwealth and/or State privacy laws in Australia.This email is also
subject to copyright. If you are not the intended recipient, you must not
read, print, store, copy, forward or use this email for any reason, in
accordance with privacy and copyright laws. If you have received this email
in error, please notify the sender by return email, and delete this email
from your inbox.The recipient should check this email and any attachments for
the presence of viruses. We do not accept liability for any computer virus,
data corruption, delay, interruption, unauthorized access or unauthorised
amendment.TRUenergy Austra
lia Pty Ltd ABN 96 071 611 017

Message protected by MailGuard: e-mail anti-virus, anti-spam and content
filtering.
http://www.mailguard.com.au/mg





  • [freetds] Error compiling FreeTDS 2.6 on Solaris 2.6, chiang . tan, 05/16/2006

Archive powered by MHonArc 2.6.24.

Top of Page