SUBROUTINE Call Fail

579 views
Skip to first unread message

Karthik Sekar

unread,
Dec 16, 2005, 12:22:04 AM12/16/05
to jB...@googlegroups.com
Dear All,
I am Having a strange issue with jBASE4.0. I need your expert help in this.

When i put a jshow for a routine I am getting an output as shown below

jsh glo ~ -->jshow -c XYZ
Subroutine: /data/glo/bnk/bnk.run/mylib/lib175.so.2
jBC XYZ version 4.0 Tue Apr 12 20:30:11 2005
jBC XYZ source file BP

But when i call my routine XYZ from any of the application I am
getting the following error.

** Error [ SUBROUTINE_CALL_FAIL ] **
Unable to perform CALL to subroutine XYZ
Trap from an error message, error message name = SUBROUTINE_CALL_FAIL

Please advice. I recompiled it many times but found the same error
ocurring again and again.


--
Karthik Sekar

Simon Verona

unread,
Dec 16, 2005, 4:49:46 AM12/16/05
to jB...@googlegroups.com
Check that the directory that your jbase object libraries are stored in is
in your JBCOBJECTLIST environment variable. (I hope that it's the same on
the Globus only 4.0 release of jBASE!).

So for example, if your subroutine is created in /u/mydir/lib then you need
to have JBCOBJECTLIST=$JBCOBJECTLIST;/u/mydir/lib for example.

Hope this helps

=======================================
Simon Verona
Dealer Management Services Ltd
Stewart House
Centurion Office Park
Julian Way
Sheffield
S9 1GD

Email: si...@dmservices.co.uk
Tel: 0870 080 2300
Fax: 0870 169 6747

mike ryder

unread,
Dec 16, 2005, 11:14:18 AM12/16/05
to jBASE
This looks like "subroutine with wrong name"
As describedin the jBase documentation, if you compile a subroutine
where the name and the SUBROUTINE line contain different names, it
corrupts the dll.

Your best bet is to check all of the subroutines in your library,
delete the library and recompile them all again.

hth
Mike

Simon Verona

unread,
Dec 16, 2005, 11:21:03 AM12/16/05
to jB...@googlegroups.com
Ooops I should learn to read messages properly... It is probably a
subroutine mis-match as mike says.

Regards
Simon

=======================================
Simon Verona
Dealer Management Services Ltd
Stewart House
Centurion Office Park
Julian Way
Sheffield
S9 1GD

Email: si...@dmservices.co.uk
Tel: 0870 080 2300
Fax: 0870 169 6747

-----Original Message-----
From: jB...@googlegroups.com [mailto:jB...@googlegroups.com] On Behalf Of

Karthik Sekar

unread,
Dec 16, 2005, 11:39:22 PM12/16/05
to jB...@googlegroups.com
Hi Mike & Simon,


Thanks for your prompt reply. I saw the variable JBCOBJECTLIST, this
was set as pescribed. Unfourtunately I cannot check with the
SUBROUTINE Name as I am having only the Object code.

But here are some analysis that we made...

We used jBuilSLib for the same routine XYZ and gave another Library
name. In this case it didnt show a call Fail to this routine, but it
showed a call Fail with some other Library and some other routine.

We also tried replacing the Library files from the original pack but
the same error persisted.

Now we are in Crossroads and dunno which way to proceed. Any further
lead to us would help us.

Rregards,
Karthik Sekar

mike ryder

unread,
Dec 17, 2005, 7:51:06 AM12/17/05
to jBASE
This makes it a bit more complicated!! Is this *nix or winblows? In
windows, if you compile programs with Visual C and then compile some
more with the free mingw compiler they will not coexist ... no idea
why.

Also, you should point your own programs to a different bin and lib so
that your dev and compile does not corrupt the shipped bin and lib for
which you only have object code.

Mike

Simon Verona

unread,
Dec 18, 2005, 5:33:47 AM12/18/05
to jB...@googlegroups.com
Looks like a Global system being used Mike, so it's jbase 4.0 (3.4.x on
steroids - not really a sub-set of 4.1). The libraries are .so files so are
unix shared objects. So probably AIX or HPUX???

Without having source to hand, it sounds like it's going to be difficult.
It's looking more likely that he will have to refer to the developer. This
could be something stupid like not having enough passing arguments or
something like that ?

Regards

=======================================
Simon Verona
Dealer Management Services Ltd
Stewart House
Centurion Office Park
Julian Way
Sheffield
S9 1GD

Email: si...@dmservices.co.uk
Tel: 0870 080 2300
Fax: 0870 169 6747

-----Original Message-----
From: jB...@googlegroups.com [mailto:jB...@googlegroups.com] On Behalf Of
mike ryder
Sent: 17 December 2005 12:51
To: jBASE
Subject: Re: SUBROUTINE Call Fail

Karthik Sekar

unread,
Dec 18, 2005, 7:13:40 AM12/18/05
to jB...@googlegroups.com
Absolutely simon....its been very diffcult without the source...Let me
digout more on this issue further and get back to you...

Also thanks for the help than Mike and urself have to given to me....I
wish this group helps people more often than not.

Regards,
Karthik sekar

mike ryder

unread,
Dec 18, 2005, 3:51:59 PM12/18/05
to jBASE
Aah - my turn to read the OP ;-) This is Globus - you should refer to
Temenos HD for further assistance.
In you library "mylib" is this the only compiled subroutine? Hint =
jshow -s mylib
It will not be a comflict with standard Globus routines which which
are in globuslib and globusbin. If it is a conflict, it is in your
routines catalogued in mylib.

Reply all
Reply to author
Forward
0 new messages