Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Wes Bauske" <wsb@paralleldata.com>
To: axp-list@redhat.com
Subject: Re: Problems with g++ and netdb functions
Date: Tue, 08 Sep 1998 22:36:26 +0000	[thread overview]
Message-ID: <35F5B16A.B05CE28B@paralleldata.com> (raw)
In-Reply-To: 199809081133.HAA02409@chmls05.mediaone.net

Jerry Feldman wrote:
> 
> I have an application that I am working on which runs on multiple
> platforms including Linux Intel, Solaris, NT, Windoz 9x. When calling
> any function in netdb, I get a seg fault on Linux Alpha (Red Hat 5.0
> with updated libraries).
> The following example code core dumps when compiled as a C++
> program, but runs when compiled as a C program:
> #if defined (__cplusplus)
> extern "C" {
> #endif
>         void setservent(int);
> #if defined (__cplusplus)
> }
> #endif
> int main(int argc, char **argv)
> {
>         setservent(1);
> }
> My gcc(g++) and glibc versions are:
> gcc version 2.7.2.3
> glibc-devel-2.0.7-19
> Kernel:2.0.30
> Platform:UDB 233MHz. (EV45 chip).
> 
> If anyone can suggest a viable solution, I would like to be able to
> continue working on this application on Alpha Linux.
> 

Works fine on RH5.0 w/egcs1.03a.


Wes


  parent reply	other threads:[~1998-09-08 22:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-08 11:33 Problems with g++ and netdb functions Jerry Feldman
1998-09-08 21:39 ` Brian Wood
1998-09-09 14:46   ` Charl Botha
1998-09-08 22:36 ` Wes Bauske [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-09-08 23:23 Greg Lindahl
1998-09-11  1:17 ` Jerry Feldman
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox