Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* "malloc" problem when compiling Oracle Pro*c
@ 1996-02-27  5:00 Reza Abouk
  0 siblings, 0 replies; only message in thread
From: Reza Abouk @ 1996-02-27  5:00 UTC (permalink / raw)


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 <stdio.h>
#include <string.h>
 
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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-02-27  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-02-27  5:00 "malloc" problem when compiling Oracle Pro*c Reza Abouk

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