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 17:19:54 -0500

Finally, with the snapshot from www.schemamania.org, the file
"include/config.h" was generated OK.

The only detail now is that "include/config.h" defines #HAVE_SYS_SELECT_H
and my previous patch expects #HAVE_SELECT_H.
#HAVE_SYS_SELECT_H seems to be a better option, so I send another patch to
correct this. (the patch is for src/tds/login.c, src/tds/write.c and
src/tds/read.c)

I hope you can apply it.
Thanks a lot,
Pablo.

-----Original Message-----
From: Lowden, James K [mailto:LowdenJK AT bernstein.com]
Sent: Monday, July 21, 2003 2:37 PM
To: 'FreeTDS Development Group'
Subject: RE: [freetds] COMPILATION UNDER QNX 4.25

> From: GUTIERREZ Pablo TESIS-TAMSA [mailto:Tesgup AT tamsa.com.mx]
> Sent: July 21, 2003 3:19 PM
>
> QNX4 doesn't have any iconv library, so my build uses
> src/replacementes/iconv.c, and at least in that file EILSEQ is used.

Right, OK, thanks. That's my handiwork. Now I begin to understand the
problem.

In GNU libiconv, they have to deal with systems like yours, that lack
EILSEQ. There are about 60 lines of m4 macro code to DTRT in their
distribution, cf. m4/eilseq.m4. They specifically avoid defining EILSEQ as
EINVAL.

For now for yourself, you could define EILSEQ as EINVAL. That will get you
compiling. I'm going to follow GNU's lead and use a more general approach.
I'll borrow GNU's m4 code -- Thank you, Bruno Haible! -- and when I'm done,
our configure script will notice you're missing EILSEQ and add one
appropriately.

--jkl

-----------------------------------------
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that we do not accept account orders and/or
instructions by e-mail, and therefore will not be responsible for carrying
out such orders and/or instructions.


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

diff -ru tds/login.c tds_qnx/login.c
--- tds/login.c Sat Jul 19 19:39:47 2003
+++ tds_qnx/login.c Mon Jul 21 16:13:42 2003
@@ -73,9 +73,9 @@
#include <sys/ioctl.h>
#endif /* HAVE_SYS_IOCTL_H */

-#if HAVE_SELECT_H
+#if HAVE_SYS_SELECT_H
#include <sys/select.h>
-#endif /* HAVE_SELECT_H */
+#endif /* HAVE_SYS_SELECT_H */

#include "tds.h"
#include "tdsiconv.h"
diff -ru tds/read.c tds_qnx/read.c
--- tds/read.c Sat Jul 19 19:39:47 2003
+++ tds_qnx/read.c Mon Jul 21 16:13:42 2003
@@ -54,7 +54,7 @@
#include <unistd.h>
#endif /* HAVE_UNISTD_H */

-#if HAVE_SELECT_H
+#if HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif /* HAVE_SELECT_H */

Only in tds: unittests
diff -ru tds/write.c tds_qnx/write.c
--- tds/write.c Sat Jul 19 19:39:47 2003
+++ tds_qnx/write.c Mon Jul 21 16:13:42 2003
@@ -56,9 +56,9 @@
#include <unistd.h>
#endif /* HAVE_UNISTD_H */

-#if HAVE_SELECT_H
+#if HAVE_SYS_SELECT_H
#include <sys/select.h>
-#endif /* HAVE_SELECT_H */
+#endif /* HAVE_SYS_SELECT_H */

#include "tds.h"
#include "tdsiconv.h"



Archive powered by MHonArc 2.6.24.

Top of Page