× 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.



On Fri, 8 Oct 2004, Jack J. Woehr wrote:

Okay, commented past that and now:

if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"x5250\" -DVERSION=\"0.4.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1
-DHAVE_MEMSET=1 -DHAVE_SELECT=1  -I. -I.    -I/usr/openwin/include   -g -O2 -MT x5250.o 
-MD -MP -MF ".deps/x5250.Tpo" \
 -c -o x5250.o `test -f 'x5250.c' || echo './'`x5250.c; \
then mv -f ".deps/x5250.Tpo" ".deps/x5250.Po"; \
else rm -f ".deps/x5250.Tpo"; exit 1; \
fi
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.)
x5250.c: In function `place_graphics':
x5250.c:1170: error: structure has no member named `scrollbar'
x5250.c: In function `check_options':
x5250.c:1645: error: storage size of `options' isn't known
x5250.c:1649: error: `required_argument' undeclared (first use in this function)
x5250.c:1653: error: `no_argument' undeclared (first use in this function)
make[1]: *** [x5250.o] Error 1
make[1]: Leaving directory `/usr/local/src/x5250-0.4.1'
make: *** [all-recursive] Error 1

The LC_ALL comes from the setlocale() function. man setlocale says that LC_ALL is a constant defined in locale.h. What does Solaris want for the setlocale() function?


The scrollbar error is because I forgot to surround that section of code with:

#ifdef ENHANCED

scrollbars require a patch to tn5250 to work (and even then they don't actually work, rather it is proof of concept - but a "scrollbar" does show up on the screen). Looks like I need to fix that. In the mean time adding the #ifdef ENHANCED around that if statement should fix it for you.

The remaining problems look like they are a result of getopt_long() not being the same on solaris as it is on linux. On linux getopt_long looks like this:

       int getopt_long(int argc, char * const argv[],
                  const char *optstring,
                  const struct option *longopts, int *longindex);

and the option struct is:

          struct option {
              const char *name;
              int has_arg;
              int *flag;
              int val;
          };

What does Solaris want?

James Rich

It's not the software that's free; it's you.
        - billyskank on Groklaw

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.