From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 11562 invoked from network); 8 Sep 1998 11:33:47 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 8 Sep 1998 11:33:47 -0000 Received: from chmls05.mediaone.net (ne.mediaone.net [24.128.1.70]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id HAA21157 for ; Tue, 8 Sep 1998 07:34:30 -0400 Received: from gaf (gaf.ne.mediaone.net [24.128.31.76]) by chmls05.mediaone.net (8.8.7/8.8.7) with SMTP id HAA02409 for ; Tue, 8 Sep 1998 07:33:44 -0400 (EDT) Message-Id: <199809081133.HAA02409@chmls05.mediaone.net> From: "Jerry Feldman" To: axp-list@redhat.com Date: Tue, 8 Sep 1998 07:33:55 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Problems with g++ and netdb functions Priority: normal X-mailer: Pegasus Mail for Win32 (v3.01b) 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. +----------------------------------------------+ Gerald Feldman Boston Computer Solutions and Consulting ICQ#156300