LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-24-2010, 09:20 PM   #1
pmirji
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
Linux STREAMS implemention on Red Hat Linux


Hello,

I am migrating solaris (SPARC) application coded in c/c++ to RHEL5 on
x86_64 platform. The solaris application uses transport layer interface (TLI) calls ( i mean STREAMS API's). But the same STREAMS implemention is not there in RHEL. RHEL uses standard BSD socket calls.

I found the open source implementation of Linux STREAMS on net and downloaded the source. I am not able to build it on Linux platform.

My question is:

Can I invest more time in building the linux streams on Linux platform? or Can I rewrite the solaris code with BSD sockets. Customer doesn't want to change the working code as they feel changing code is more risky.

If anybody has built the Linux STREAMS on Linux platform. please share your experience. Do you see any problems using Linux STREAMS on Linux in the long run.

Please share your thoughts and experience on Linux STREAMS - how should i move in. which is right way to go.

Thanks in advance.
prakash
 
Old 03-25-2010, 11:20 PM   #2
tommylovell
Member
 
Registered: Nov 2005
Distribution: Raspbian, Debian, Ubuntu
Posts: 386

Rep: Reputation: 105Reputation: 105
I think there is only one Linux Streams. I assume it's the one from www.gcom.com
(http://email.gcom.com/home/linux/lis/).

I have LiS-2.19 installed on 20 zLinux (IBM mainframe) servers. It was a prereq for IBM's
Comm Server product. The tarball for installation was supplied by IBM (it didn't come off
the gcom site).

It works. I guess that's all that matters. The install was typical of a mid '90s Linux package.
Why IBM can't package their stuff as RPM's is anyone's guess. ..but I rant.

I needed to install a few rpm's as pre-reqs, some for LiS and some for Comm Server. I think
kernel-devel, GCC and glibc-devel were the ones that LiS needed (over what we have in our
standard build). And it required manually adding a line, "#include <linux/autoconf.h>", to
/usr/src/kernels/2.6.18*/include/linux/module.h.

Much more involved than "yum install".

On the gcom site
Quote:
The LiS-2.18 version described by this documentation is the final version of LiS to be published on the Gcom FTP site. It is possible that others in the LiS community may organize a maintenance method for this package. To be apprised of developments in this area subscribe to the LiS discussion group and watch for announcements.
Doesn't really give you a warm fuzzy feeling that it'll always work as you upgrade the OS.
But it might be acceptable as a tactical solution.

Hope this helps.
 
Old 08-13-2013, 05:56 AM   #3
subashp
LQ Newbie
 
Registered: Aug 2013
Posts: 1

Rep: Reputation: Disabled
Hi,

Can you please let me know how did you resolved all this issue while installing the LiS in Red Hat Linux?..

I m not able to install the LiS in my RHEL 5 and getting some compilation errors.

Could someone help me to resolve this Urgently?

CC drivers/str/linux/relay.o
In file included from ///usr/src/kernels/2.6.18-238.el5-x86_64/include/asm/stat.h:37,
from ///usr/src/kernels/2.6.18-238.el5-x86_64/include/linux/stat.h:6,
from ///usr/src/kernels/2.6.18-238.el5-x86_64/include/linux/fs.h:293,
from /usr/src/LiS-2.19/include/sys/LiS/linux-mdep.h:152,
from /usr/src/LiS-2.19/include/sys/LiS/module.h:31,
from /usr/src/LiS-2.19/drivers/str/relay.c:39:
/usr/include/time.h:122: error: redefinition of 'struct timespec'
In file included from ///usr/src/kernels/2.6.18-238.el5-x86_64/include/linux/stat.h:6,
from ///usr/src/kernels/2.6.18-238.el5-x86_64/include/linux/fs.h:293,
from /usr/src/LiS-2.19/include/sys/LiS/linux-mdep.h:152,
from /usr/src/LiS-2.19/include/sys/LiS/module.h:31,
from /usr/src/LiS-2.19/drivers/str/relay.c:39:
///usr/src/kernels/2.6.18-238.el5-x86_64/include/asm/stat.h:44: error: conflicting types for 'dev_t'
///usr/src/kernels/2.6.18-238.el5-x86_64/include/linux/types.h:22: error: previous declaration of 'dev_t' was here
///usr/src/kernels/2.6.18-238.el5-x86_64/include/asm/stat.h:49: error: redefinition of typedef 'gid_t'
///usr/src/kernels/2.6.18-238.el5-x86_64/include/linux/types.h:39: error: previous declaration of 'gid_t' was here
///usr/src/kernels/2.6.18-238.el5-x86_64/include/asm/stat.h:55: error: redefinition of typedef 'ino_t'
///usr/src/kernels/2.6.18-238.el5-x86_64/include/linux/types.h:23: error: previous declaration of 'ino_t' was here
///usr/src/kernels/2.6.18-238.el5-x86_64/include/asm/stat.h:63: error: redefinition of typedef 'mode_t'
///usr/src/kernels/2.6.18-238.el5-x86_64/include/linux/types.h:24: error: previous declaration of 'mode_t' was here
///usr/src/kernels/2.6.18-238.el5-x86_64/include/asm/stat.h:68: error: redefinition of typedef 'nlink_t'
///usr/src/kernels/2.6.18-238.el5-x86_64/include/linux/types.h:25: error: previous declaration of 'nlink_t' was here
///usr/src/kernels/2.6.18-238.el5-x86_64/include/asm/stat.h:74: error: redefinition of typedef 'off_t'
///usr/src/kernels/2.6.18-238.el5-x86_64/include/linux/types.h:26: error: previous declaration of 'off_t' was here
///usr/src/kernels/2.6.18-238.el5-x86_64/include/asm/stat.h:82: error: redefinition of typedef 'uid_t'
///usr/src/kernels/2.6.18-238.el5-x86_64/include/linux/types.h:38: error: previous declaration of 'uid_t' was here
In file included from ///usr/src/kernels/2.6.18-238.el5-x86_64/include/linux/fs.h:293,
from /usr/src/LiS-2.19/include/sys/LiS/linux-mdep.h:152,
from /usr/src/LiS-2.19/include/sys/LiS/module.h:31,
from /usr/src/LiS-2.19/drivers/str/relay.c:39:
///usr/src/kernels/2.6.18-238.el5-x86_64/include/linux/stat.h:12:1: warning: "S_IFMT" redefined


from /usr/src/LiS-2.19/drivers/str/relay.c:39:
///usr/src/kernels/2.6.18-238.el5-x86_64/include/asm/compat.h:62: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
make[2]: *** [relay.o] Error 1
make[1]: *** [/usr/src/LiS-2.19/drivers/str/linux/drivers.o] Error 2
make: *** [.config_mk] Error 2
Error in make, buildLiS script aborting

Thanks
Subash P
 
Old 08-14-2013, 09:10 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,659

Rep: Reputation: 8146Reputation: 8146Reputation: 8146Reputation: 8146Reputation: 8146Reputation: 8146Reputation: 8146Reputation: 8146Reputation: 8146Reputation: 8146Reputation: 8146
Quote:
Originally Posted by subashp View Post
Hi,
Can you please let me know how did you resolved all this issue while installing the LiS in Red Hat Linux?..

I m not able to install the LiS in my RHEL 5 and getting some compilation errors. Could someone help me to resolve this Urgently?
Don't reopen old threads...this thread has been closed for THREE YEARS, and don't hijack someone elses thread with your own question. Both are against LQ Rules. Open your own thread for your own question.

Second...this is a volunteer forum...this is NOT an 'urgent' issue for anyone here, and asking for 'urgent' help is fairly rude. If you need 'urgent' help, then I suggest you CALL RED HAT SUPPORT, since you're using RHEL, you should be PAYING FOR IT. They're there for you 24/7.

You don't say where you got the code you're trying to compile, if you followed the instructions, or what you're typing in to get the message(s) below, so it's hard to give even a guess. Provide details and we can try to help...but another question would be, why not just install this from the packages via yum??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Should I use desktop Red Hat Linux or Server Red hat linux? niner710 Linux - Newbie 3 04-15-2008 10:42 PM
LXer: Red Hat to launch Red Hat Enterprise Linux 5 before March LXer Syndicated Linux News 0 12-30-2006 08:03 AM
Red Hat does not plan to release another product in the red hat linux line... Whitehat General 5 11-03-2003 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration