× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



James,

When I try to build x5250, I get two errors.

FIRST ERROR:

x5250.c: In function `main':
x5250.c:148: error: `LC_ALL' undeclared (first use in this function)
x5250.c:148: error: (Each undeclared identifier is reported only once
x5250.c:148: error: for each function it appears in.)

On my system, LC_ALL is declared in the file called locale.h.  In x5250.c
you have the following code:

#ifdef HAVE_LOCALE_H
#include <locale.h>
#endif

However, there's no code in configure.ac that would cause "HAVE_LOCALE_H"
to be defined.  I can fix this problem by applying the following patch to
configure.ac:

--- x5250-0.4.1.old/configure.ac    Tue Jun 29 14:29:50 2004
+++ x5250-0.4.1/configure.ac        Thu Oct 21 23:29:58 2004
@@ -47,7 +47,7 @@
 # Checks for header files.
 #
 AC_HEADER_STDC
-AC_CHECK_HEADERS([stdlib.h unistd.h])
+AC_CHECK_HEADERS([stdlib.h unistd.h locale.h])

 #
 # Checks for typedefs, structures, and compiler characteristics.


SECOND ERROR:

After solving the first error, I ./autogen.sh && configure && make and I
get the following error:

x5250.c: In function `place_graphics':
x5250.c:1170: error: structure has no member named `scrollbar'
*** Error code 1

Obviously, you must've patched lib5250 and added a scrollbar to the
Tn5250Terminal structure.  However, I can't find this patch on your Web
site. I'm running the latest tn5250 from CVS (I just checked it out again
to make sure) so I'm stuck.

Thanks for any assistance!


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.