PL/SQL (MOSC)

MOSC Banner

Compile extproc library

in PL/SQL (MOSC) 1 commentAnswered

Hello,

I'm on linux 64 bit.

I've managed to setup the test case as described here:

10 Steps to Create and Run a Sample External Procedure Program on Unix (Doc ID 312564.1)

But actually I want to use extproc to determine the modification date of a file.

The problem is, that whenever I have a C function that returns a value, I get a sigseg from the extproc.

This is the sample code:

square_of.c

#include<stdio.h>

#include<stdlib.h>

#include<string.h>

int squareof(int x)

{

 return 1;

}


cc  -fPIC -c square_of.c

ld -shared -o square_of.so square_of.o

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center