freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] make error: latest snapshot; Solaris
- From: "Thompson, Bill D (London)" <bill_d_thompson AT ml.com>
- To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] make error: latest snapshot; Solaris
- Date: Thu, 7 Jul 2005 11:39:39 +0100
cheers freddy - that helped.
2 things :
in src/tds/query.c - function tds_put_n_as_ucs2() we use a function
"alloca"
this is not supported in my C compiler - is it gnu only ? I've replaced
with malloc().
in src/dblib/bcp.c - function bcp_exec() there is a declaration "RETCODE
ret = 0;" which needs moving to the top...
Bill
-----Original Message-----
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of ZIGLIO,
Frediano, VF-IT
Sent: 07 July 2005 10:11
To: FreeTDS Development Group
Subject: Re: [freetds] make error: latest snapshot; Solaris
>
> Hi all,
>
> I've got past this problem now.
>
> The solution was to set the LD environment variable to the same as the
> CC environment variable, e.g. :
>
> setenv CC /apps/dev/tools/sun5/SUNWspro/bin/cc
> setenv LD $CC
>
> Now I'm getting a compilation error on dblib.c
>
> "dblib.c", line 192: undefined symbol:
> PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
> "dblib.c", line 192: warning: {}-enclosed initializer required
> "dblib.c", line 192: non-constant initializer: op "NAME"
> "dblib.c", line 192: warning: syntax error: empty declaration
> "dblib.c", line 227: cannot recover from previous errors
>
> which comes from dblib.c line 192:
>
> static TDS_MUTEX_DECLARE_RECURSIVE(dblib_mutex);
>
> TDS_MUTEX_DECLARE_RECURSIVE is #defined in tdsthread.h :
>
> #define TDS_MUTEX_DECLARE_RECURSIVE(name) pthread_mutex_t name =
> PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
>
> I can't find PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP #defined anywhere
> else...
>
> Any ideas ?
>
> Bill
>
Try this patch (it seems that snapshot is not updated today).
freddy77
--------------------------------------------------------
If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy, retain or
redistribute it. Click here for important additional terms relating to this
e-mail. http://www.ml.com/email_terms/
--------------------------------------------------------
-
[freetds] make error: latest snapshot; Solaris,
Thompson, Bill D (London), 07/01/2005
- <Possible follow-up(s)>
- Re: [freetds] make error: latest snapshot; Solaris, ZIGLIO, Frediano, VF-IT, 07/01/2005
- Re: [freetds] make error: latest snapshot; Solaris, Lowden, James K, 07/01/2005
-
Re: [freetds] make error: latest snapshot; Solaris,
Thompson, Bill D (London), 07/05/2005
- Re: [freetds] make error: latest snapshot; Solaris, James K. Lowden, 07/05/2005
-
Re: [freetds] make error: latest snapshot; Solaris,
Thompson, Bill D (London), 07/06/2005
- Re: [freetds] make error: latest snapshot; Solaris, James K. Lowden, 07/06/2005
- Re: [freetds] make error: latest snapshot; Solaris, ZIGLIO, Frediano, VF-IT, 07/06/2005
- Re: [freetds] make error: latest snapshot; Solaris, ZIGLIO, Frediano, VF-IT, 07/07/2005
- Re: [freetds] make error: latest snapshot; Solaris, Thompson, Bill D (London), 07/07/2005
- Re: [freetds] make error: latest snapshot; Solaris, ZIGLIO, Frediano, VF-IT, 07/07/2005
- Re: [freetds] make error: latest snapshot; Solaris, Lowden, James K, 07/07/2005
Archive powered by MHonArc 2.6.24.