Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7904183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:56:37+00:00 2026-06-03T09:56:37+00:00

While compiling a C program in LINUX, I get the foll. error: stream.h:1123: error:

  • 0

While compiling a C program in LINUX, I get the foll. error:

stream.h:1123: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
stream.h:1124: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mblk_t'
stream.h:1125: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mblk_t'

Line 1123,1124 and 1125 are given below:

__STREAMS_EXTERN int adjmsg(mblk_t *mp, register ssize_t length);
__STREAMS_EXTERN mblk_t *allocb(size_t size, unsigned int priority);
__STREAMS_EXTERN mblk_t *copyb(register mblk_t *mp);

The C program includes a header file which in turn includes stream.h
Any idea how this can be solved?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:56:44+00:00Added an answer on June 3, 2026 at 9:56 am

    It’s not really clear the context of your code but it seems to me that you’re using the OpenSSL library (or you’re doing copy & paste from that source code).

    The streams_fastcall macro is defined in the kmem.h header file. Did you include it? If you’re just doing copy & paste you simply have to add this lines before your STREAMS_EXTERN definition:

    #ifndef streams_fastcall
    #if defined __i386__ || defined __x86_64__ || defined __k8__
    #define streams_fastcall __attribute__((__regparm__(3)))
    #else
    #define streams_fastcall
    #endif
    #endif
    

    Note: streams_fastcall sounds like the Microsoft Specific (but widely used on Windows) calling convention named __fastcall. I guess they used that name because it uses
    the regparm attribute to specify that some arguments should be passed using registers instead of the stack and this is what __fastcall defines (or simply because it’s simply faster! lol)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When do we get l-value required error...while compiling C++ program???(i am using VC++ )
I am getting the following error while compiling a sample program in Qt 4.5
I am receiving this error while compiling a C program in MinGW. As far
I got the undefined reference to `SetTextColor@8' error while compiling a c++ program using
I am getting the error while compiling the following simple C++ class program .
While compiling a program in Java I got this big WARNING warning: [unchecked] unchecked
The following C++ code gives an error while compiling: #include<iostream> using namespace std; class
I am new to linux, while compiling with dynamic library I am getting the
Currently, while compiling a C program which uses pthread library function I have to
i am trying to read an excel file using java. while compiling the program

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.