From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,274d2795cf33c6cf,start X-Google-Attributes: gidfee84,public From: rabouk@mcimail.com (Reza Abouk) Subject: "malloc" problem when compiling Oracle Pro*c Date: 1996/02/27 Message-ID: <4gv9mu$cd7@news.internetmci.com>#1/1 X-Deja-AN: 141397431 organization: MCI Telecommunication newsgroups: comp.unix.osf.osf1 Hi, I am getting an error while compiling a Pro*C program on OSF1 V3.2b, Have anybody out there experienced similar problem or is there anything inherently wrong with the code or the options. database admins. on comp.databases.oracle did not respond. so I am turning to Server admins for answer. Any help will be highly appreciated. Feel free to call or e-mail. Here's the Pro*C program which comes up with an error. ------------------------------- #include #include EXEC SQL INCLUDE sqlca; char *uid = "tams/tams"; void sql_error(char *errorpoint) { printf("SQL Error during %s\n", errorpoint); } main() { EXEC SQL BEGIN DECLARE SECTION; int spec_id; char description[200]; EXEC SQL END DECLARE SECTION; EXEC SQL WHENEVER SQLERROR DO sql_error("Connect"); EXEC SQL CONNECT :uid; puts("Connected to database"); EXEC SQL WHENEVER SQLERROR DO sql_error("Set Transaction"); EXEC SQL SET TRANSACTION READ ONLY; EXEC SQL WHENEVER SQLERROR DO sql_error("Select"); EXEC SQL WHENEVER NOT FOUND DO break; while (1) { EXEC SQL SELECT SPEC_ID, DESCRIPTION INTO :spec_id, :description FROM BILLING_SPEC; printf("%d %s\n", spec_id, description); } EXEC SQL COMMIT RELEASE; exit(0); } ------------------------------------- Here is the ERROR ------------------------------------ dragon% make -f $a/proc.mk EXE=testgcs OBJS="testgcs.o" /usr1/users/oracle/bin/proc iname=testgcs.pc Pro*C: Release 2.0.6.0.0 - Production on Mon Feb 12 14:43:53 1996 Copyright (c) Oracle Corporation 1979, 1994. All rights reserved. System default option values taken from: /usr1/users/oracle/proc/pmscfg.h cc -I. -O -DA_OSF -I/usr1/users/oracle/sqllib/public -c testgcs.c cc -L/usr1/users/oracle/lib "-s" -O2 -o testgcs testgcs.o -lsql /usr1/users/ora cle/lib/osntab.o -lsqlnet -lora -losn -lora -lsqlnet -lora -losn -lora -lnlsrt l -lcv6 --lcore -lnlsrtl -lcv6 -lcore -lm -lrt `cat /usr1/users/oracle/rdbms/lib /sysliblist` ld: Cannot malloc memory *** Exit 1 Stop. dragon% Regards, Reza Abouk Sr. Systems Analyst Network Systems Integration Lab - Automation M.C.I Telecommunications (214) 918-2268 rabouk@mcimail.com