mailman | 1 Dec 2011 13:30

Guidelines for LINUX5250 mailing list

Monthly posting of the guidelines for participation in the LINUX5250
Mailing List.

Answers to common questions, including installation issues for FreeBSD,
Linux and Windows are included in the documentation in the README file
in the source tarball, the manual included with the Windows installer,
and the other documentation found on our web site at
http://tn5250.sourceforge.net

Answers to other questions which may have already been asked are available in
the linux5250 email list archive, which is available at
http://archive.midrange.com/linux5250/

Keep to the subject.  The topic of the list is the Linux Tn5250
Emulation project.   (Though, the name "Linux" is a misnomer, since
the software will work in Microsoft Windows and any modern Unix or
Unix-like operating system)

When quoting messages, do not quote the entire message.  Just quote the
parts that are needed to make the appropriate references.

Flames are absolutely prohibited.  If you disagree with someone, feel
free to argue the facts, but no personal attacks will be tolerated.

The official language of the LINUX5250 Mailing List is English.

Do not post personal messages.  Please use direct E-Mail.  This list is
international in scope and personal messages just end up costing money.

Please do not use HTML to format messages ... not everyone has a HTML
(Continue reading)

Porterfield, Sean | 12 Dec 2011 13:35

Ubuntu 11.10 SSLv2 error compiling

I recently installed Ubuntu 11.10 and have an error compiling tn5250.

make[2]: Entering directory `/home/sporter/src/tn5250/lp5250d'
gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -I../lib5250  -I/usr/include  -g -O2 -MT
scs2ascii.o -MD -MP -MF .deps/scs2ascii.Tpo -c -o scs2ascii.o scs2ascii.c
mv -f .deps/scs2ascii.Tpo .deps/scs2ascii.Po
/bin/bash ../libtool --tag=CC   --mode=link gcc  -g -O2   -o scs2ascii scs2ascii.o ../lib5250/lib5250.la
-lssl -lcrypto
libtool: link: gcc -g -O2 -o .libs/scs2ascii scs2ascii.o  ../lib5250/.libs/lib5250.so -lssl -lcrypto
../lib5250/.libs/lib5250.so: undefined reference to `SSLv2_client_method'
collect2: ld returned 1 exit status
make[2]: *** [scs2ascii] Error 1
make[2]: Leaving directory `/home/sporter/src/tn5250/lp5250d'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sporter/src/tn5250'
make: *** [all] Error 2

I think OpenSSL no longer includes SSLv2 support.  I also think I may be able to hack it to get it working, but I
have no idea the "right way" to fix this.  I suspect something in configure or just removing SSLv2 support completely.
--
Sean Porterfield

This email is confidential, intended only for the named recipient(s) above and may contain information
that is privileged.  If you have received this message in error or are not the named recipient(s), please
notify the sender immediately and delete this email message from your computer as any and all
unauthorized distribution or use of this message is strictly prohibited.  Thank you.
--

-- 
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250@...
To subscribe, unsubscribe, or change list options,
(Continue reading)

Scott Klement | 12 Dec 2011 18:26
Favicon

Re: Ubuntu 11.10 SSLv2 error compiling

hi Sean,

What version of OpenSSL are you using?  I don't really want to install 
Ubuntu just to figure out the solution. :-)

type: openssl version

On 12/12/2011 6:35 AM, Porterfield, Sean wrote:
> I recently installed Ubuntu 11.10 and have an error compiling tn5250.
>
> make[2]: Entering directory `/home/sporter/src/tn5250/lp5250d'
> gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -I../lib5250  -I/usr/include  -g -O2
-MT scs2ascii.o -MD -MP -MF .deps/scs2ascii.Tpo -c -o scs2ascii.o scs2ascii.c
> mv -f .deps/scs2ascii.Tpo .deps/scs2ascii.Po
> /bin/bash ../libtool --tag=CC   --mode=link gcc  -g -O2   -o scs2ascii scs2ascii.o ../lib5250/lib5250.la
-lssl -lcrypto
> libtool: link: gcc -g -O2 -o .libs/scs2ascii scs2ascii.o  ../lib5250/.libs/lib5250.so -lssl -lcrypto
> ../lib5250/.libs/lib5250.so: undefined reference to `SSLv2_client_method'
> collect2: ld returned 1 exit status
> make[2]: *** [scs2ascii] Error 1
> make[2]: Leaving directory `/home/sporter/src/tn5250/lp5250d'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/sporter/src/tn5250'
> make: *** [all] Error 2
>
> I think OpenSSL no longer includes SSLv2 support.  I also think I may be able to hack it to get it working, but I
have no idea the "right way" to fix this.  I suspect something in configure or just removing SSLv2 support completely.
> --
> Sean Porterfield
>
(Continue reading)

Porterfield, Sean | 12 Dec 2011 19:39

Re: Ubuntu 11.10 SSLv2 error compiling

OpenSSL 1.0.0e 6 Sep 2011

For my purposes, I just commented out the section referencing ssl2 in sslstream.c
--
Sean Porterfield
________________________________________
From: Scott Klement

hi Sean,

What version of OpenSSL are you using?  I don't really want to install
Ubuntu just to figure out the solution. :-)

type: openssl version

On 12/12/2011 6:35 AM, Porterfield, Sean wrote:
> I recently installed Ubuntu 11.10 and have an error compiling tn5250.
>
> make[2]: Entering directory `/home/sporter/src/tn5250/lp5250d'
> gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -I../lib5250  -I/usr/include  -g -O2
-MT scs2ascii.o -MD -MP -MF .deps/scs2ascii.Tpo -c -o scs2ascii.o scs2ascii.c
> mv -f .deps/scs2ascii.Tpo .deps/scs2ascii.Po
> /bin/bash ../libtool --tag=CC   --mode=link gcc  -g -O2   -o scs2ascii scs2ascii.o ../lib5250/lib5250.la
-lssl -lcrypto
> libtool: link: gcc -g -O2 -o .libs/scs2ascii scs2ascii.o  ../lib5250/.libs/lib5250.so -lssl -lcrypto
> ../lib5250/.libs/lib5250.so: undefined reference to `SSLv2_client_method'
> collect2: ld returned 1 exit status
> make[2]: *** [scs2ascii] Error 1
> make[2]: Leaving directory `/home/sporter/src/tn5250/lp5250d'
> make[1]: *** [all-recursive] Error 1
(Continue reading)

Carey Evans | 12 Dec 2011 20:13
Picon
Favicon
Gravatar

Re: Ubuntu 11.10 SSLv2 error compiling

On 13 December 2011 06:26, Scott Klement <tn5250@...> wrote:

> What version of OpenSSL are you using?  I don't really want to install
> Ubuntu just to figure out the solution. :-)
>

Debian disabled SSLv2 at compile time in version 1.0.0c. (
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=589706)

Ubuntu version 11.10 ships with OpenSSL 1.0.0e, including that change. (
http://packages.ubuntu.com/oneiric/openssl)
--

-- 
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250@...
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: LINUX5250-request@...
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.

Scott Klement | 12 Dec 2011 20:36
Favicon

Re: Ubuntu 11.10 SSLv2 error compiling

Hi Sean,

I can't reproduce the problem, locally.  The newest copy of OpenSSL that 
I have is 1.0.0d, which might be the reason why I can't reproduce it. 
But, tn5250 seems to build without issue.

Given the symptom, I'm thinking there's only one minor change that would 
be needed in sslstream.c

Currently, it we have this:

    strcpy(methstr,"auto");
    if (This->config!=NULL &&
         tn5250_config_get (This->config, "ssl_method")) {
         strncpy(methstr, tn5250_config_get (This->config,
             "ssl_method"), 4);
         methstr[4] = '\0';
    }

    if (!strcmp(methstr, "ssl2")) {
         meth = SSLv2_client_method();
         TN5250_LOG(("SSL Method = SSLv2_client_method()\n"));
    } else if (!strcmp(methstr, "ssl3")) {
         meth = SSLv3_client_method();
         TN5250_LOG(("SSL Method = SSLv3_client_method()\n"));
    } else {
         meth = SSLv23_client_method();
         TN5250_LOG(("SSL Method = SSLv23_client_method()\n"));
    }

(Continue reading)

Porterfield, Sean | 12 Dec 2011 20:51

Re: Ubuntu 11.10 SSLv2 error compiling

That's exactly what I did, and it works great.  I misspoke slightly when I said I commented out the section,
since I clearly had to modify the if/else structure as you show.
--
Sean Porterfield
________________________________________
From:Scott Klement

Hi Sean,

I can't reproduce the problem, locally.  The newest copy of OpenSSL that
I have is 1.0.0d, which might be the reason why I can't reproduce it.
But, tn5250 seems to build without issue.

Given the symptom, I'm thinking there's only one minor change that would
be needed in sslstream.c

Currently, it we have this:

    strcpy(methstr,"auto");
    if (This->config!=NULL &&
         tn5250_config_get (This->config, "ssl_method")) {
         strncpy(methstr, tn5250_config_get (This->config,
             "ssl_method"), 4);
         methstr[4] = '\0';
    }

    if (!strcmp(methstr, "ssl2")) {
         meth = SSLv2_client_method();
         TN5250_LOG(("SSL Method = SSLv2_client_method()\n"));
    } else if (!strcmp(methstr, "ssl3")) {
(Continue reading)

Porterfield, Sean | 29 Dec 2011 02:43

Ubuntu 11.10 x5250 compile error

Background: new computer, fresh Ubuntu 11.10 install, compiled tn5250 from cvs source.

I resolved the obvious issues by installing missing -dev packages but still have one I haven't figured out.

I get a bunch of error from make like:
x5250.c:1896: undefined reference to `tn5250_config_parse_argv'

All reference tn5250_ something, so I'm guessing it can't find my lib5250.

`locate lib5250` gives me, in addition to the source:
/usr/local/lib/lib5250.a
/usr/local/lib/lib5250.la
/usr/local/lib/lib5250.so
/usr/local/lib/lib5250.so.0
/usr/local/lib/lib5250.so.0.0.0

Is there something special I need to do for it to find it?  Or does this perhaps go back to that packageconfig
issue I vaguely recall?
--
Sean Porterfield

This email is confidential, intended only for the named recipient(s) above and may contain information
that is privileged.  If you have received this message in error or are not the named recipient(s), please
notify the sender immediately and delete this email message from your computer as any and all
unauthorized distribution or use of this message is strictly prohibited.  Thank you.
--

-- 
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250@...
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
(Continue reading)

Porterfield, Sean | 29 Dec 2011 18:20

Re: Ubuntu 11.10 x5250 compile error

I'm having trouble with my theory, since configure seems to have found lib5250.  Why wouldn't make?

checking for macro support in lib5250... yes
checking for enhanced 5250 support in lib5250... yes

--
Sean Porterfield
________________________________________
From: linux5250-bounces@...
[linux5250-bounces@...] On Behalf Of Porterfield, Sean [SPorterfield@...]
Sent: Wednesday, December 28, 2011 20:43
To: Linux 5250 Development Project
Subject: [LINUX5250] Ubuntu 11.10 x5250 compile error

Background: new computer, fresh Ubuntu 11.10 install, compiled tn5250 from cvs source.

I resolved the obvious issues by installing missing -dev packages but still have one I haven't figured out.

I get a bunch of error from make like:
x5250.c:1896: undefined reference to `tn5250_config_parse_argv'

All reference tn5250_ something, so I'm guessing it can't find my lib5250.

`locate lib5250` gives me, in addition to the source:
/usr/local/lib/lib5250.a
/usr/local/lib/lib5250.la
/usr/local/lib/lib5250.so
/usr/local/lib/lib5250.so.0
/usr/local/lib/lib5250.so.0.0.0

(Continue reading)

James Rich | 30 Dec 2011 01:24

Re: Ubuntu 11.10 x5250 compile error

On Wed, 28 Dec 2011, Porterfield, Sean wrote:

> Background: new computer, fresh Ubuntu 11.10 install, compiled tn5250 
> from cvs source.
>
> I resolved the obvious issues by installing missing -dev packages but 
> still have one I haven't figured out.
>
> I get a bunch of error from make like:
> x5250.c:1896: undefined reference to `tn5250_config_parse_argv'

Sounds to me like you have done everything correctly, but I'm wondering if 
cvs is missing some code.  I can't seem to get cvs to work right now, but 
here is a copy I have of tn5250 that should work:

http://www.chowhouse.com/~james/x5250/tn5250-cvs.tar.gz

Please report back if this fixes your problems and I'll see what I can do 
about cvs.

James Rich

if you want to understand why that is, there are many good books on
the design of operating systems. please pass them along to redmond
when you're done reading them :)
 	- Paul Davis on ardour-dev
--

-- 
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250@...
To subscribe, unsubscribe, or change list options,
(Continue reading)


Gmane