Skip to Content.
Sympa Menu

freetds - RE: [freetds] COMPILATION UNDER QNX 4.25

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: GUTIERREZ Pablo TESIS-TAMSA <Tesgup AT tamsa.com.mx>
  • To: 'FreeTDS Development Group' <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] COMPILATION UNDER QNX 4.25
  • Date: Mon, 21 Jul 2003 11:30:06 -0500

Hi james,

The ./configure script that you generated
(http://www.schemamania.org/projects/freetds/configure )
ran fine in my QNX machine and detected sys/select.h:

# ./configure | grep -e select
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes

but I can't see a #define HAVE_SELECT_H 1 in include/config.h.

It also detected both _vbprintf() and _bprintf functions OK (the same issue
in the config.h file).

(I cannot see the patch that I sent in the Nightly Snapshot, but I do see it
if I browse the CVS copy via WWW).

ANOTHER ISSUE===================================
When trying to compile the latest Nightly Snapshot available I also get a
new error:

It seems that src/replacements/iconv.h was recently re written (yes, I known
it for sure, since I read related messages), and one of the new lines uses
the EILSEQ errno value (line 203).

The problem is that QNX4 errno.h doesn't have that definition (EILSEQ).
What about a:

#if defined (__QNX__) && !defined(EILSEQ)
#define EILSEQ EINVAL
#endif
in include/tds_sysdep_private.h

and a

#include "tds_sysdep_private.h"
in src/replacements/iconv.h

?


-----Original Message-----
From: James K. Lowden [mailto:jklowden AT schemamania.org]
Sent: Saturday, July 19, 2003 7:34 PM
To: FreeTDS Development Group
Subject: Re: [freetds] COMPILATION UNDER QNX 4.25

On Sat, 19 Jul 2003 19:06:44 -0500, GUTIERREZ Pablo TESIS-TAMSA
<Tesgup AT tamsa.com.mx> wrote:
> I think that "defined (__WATCOMC__)" is necessary because this patches
> are targeted only to QNX 4 (WATCOM COMPILER is the only compiler
> available for QNX4 - QNX4 and Watcom compiler are very linked).
>
> QNX 6 (the newest QNX) is completely different. Headers are different
> and it comes with a non-watcom compiler (and it also supports gnu
> compilers).(WATCOM stopped producing QNX compilers). If a QNX6 user
> tries to compile freetds it will match __QNX__ and the compilation will
> fail when trying to use a WATCOM function (such as _bprintf)

Understood. That's why my tests are formed the way they are:

> #if defined (__QNX__)
> # if !HAVE_VSNPRINTF && HAVE__VBPRINTF
> # define vsnprintf _vbprintf

Disregarding the compiler, we substitute _vbprintf for vsnprintf only if
we have one and not the other (and only for QNX). I'm testing directly
for the existence of the functions; you're using the compiler as a proxy
for the version of QNX. It's not impossible that Watcom will reënter the
market, or that someone using Watcom would have added vsnprintf(3).

> What's more for making the patch that I posted minutes ago, I had to
> port gnu diff first, since QNX diff is very limited (no context
> information, and no patch application)

Thank you for going to the trouble. Your patch applied perfectly.

> I hope these long paragraphs didn't bore you. ;-)

Not at all. I learn portability through vicarious experience. (!)

> For those reasons I wont be able to generate a configure script.

http://www.schemamania.org/projects/freetds/configure

Use it in good health.

--jkl

_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds




Archive powered by MHonArc 2.6.24.

Top of Page