hsccmd.c error in function cd_cmd

View: New views
6 Messages — Rating Filter:   Alert me  

hsccmd.c error in function cd_cmd

by pfg504 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

During a recompile of hsccmd.c from the 5482 svn version, I received:

hsccmd.c: In function 'cd_cmd':
hsccmd.c:2309: error: called object '0u' is not a function

This is probably related to --disable-dynamic-load on the ./configure command.

./configure --enable-cckd-bzip2 --enable-het-bzip2 --enable-multi-cpu=32 --enable-setuid-hercifc=yes --host=x86_64 --disable-dynamic-load


I am attempting to build a 64-bit hercules on MAC OS X 10.6.1 (snow).

Without the --disable-dynamic-load, I get errors during the link phase:

ld: duplicate symbol _get_inet_socket in ./.libs/libhdt3270.a(console.o) and ./.libs/libhdt3705.a(comm3705.o)

I am not sure if the hsccmd.c error is related to recent changes to it...

Paul


Re: hsccmd.c error in function cd_cmd

by kerravon86 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--- In hercules-390@..., "pfg504" <pfg504@...> wrote:
>
> During a recompile of hsccmd.c from the 5482 svn
> version, I received:
>
> hsccmd.c: In function 'cd_cmd':
> hsccmd.c:2309: error: called object '0u' is not a function

Try changing the #define of debug_cd_cmd in hexterns.h
from NULL to:

#define debug_cd_cmd                    (void (*)(char *))0

and see if that gets around the problem.

> I am not sure if the hsccmd.c error is related to recent
> changes to it...

I don't think so. It looks like 3.06 would have the
same problem. You seem to have a strict compiler,
and there's probably an option to be more forgiving
(ie switch off the strict type-checking).

BFN.  Paul.



Re: hsccmd.c error in function cd_cmd

by Harold Grovesteen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



pfg504 wrote:

>During a recompile of hsccmd.c from the 5482 svn version, I received:
>
>hsccmd.c: In function 'cd_cmd':
>hsccmd.c:2309: error: called object '0u' is not a function
>  
>
<snipped>

>
>I am not sure if the hsccmd.c error is related to recent changes to it...
>
The recent changes were to add support for OpenSolaris in the
ostailor_cmd function.  Doubtful that your error is related.

>
>Paul
>
>
>
>  
>


RE: hsccmd.c error in function cd_cmd

by fish-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

pfg504 wrote:

> During a recompile of hsccmd.c from the 5482 svn version, I received:
>
> hsccmd.c: In function 'cd_cmd':
> hsccmd.c:2309: error: called object '0u' is not a function
>
> This is probably related to --disable-dynamic-load on the ./configure
> command.

Hi Paul!

I've just committed a fix for this issue. Please refresh your source and try
again.

Thanks.

- --
"Fish" (David B. Trout) - fish@...
Fight Spam! Join CAUCE! <http://www.cauce.org/>
7 reasons why HTML email is a bad thing
http://www.georgedillon.com/web/html_email_is_evil.shtml
PGP key fingerprints:
DH/DSS: 9F9B BAB0 BA7F C458 1A89 FE26 48F5 D7F4 C4EE 3E2A
RSA: 6B37 7110 7201 9917 9B0D 99E3 55DB 5D58 FADE 4A52





-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.8.0 (Build 2158)
Charset: us-ascii

wj8DBQFK0spsSPXX9MTuPioRAjLeAKCStSdmK6TMax7nJ/eqPdxX+o/SbgCg2Gjg
bntpYUBuq8dkW2yyC0o2hSc=
=sKtE
-----END PGP SIGNATURE-----

RE: hsccmd.c error in function cd_cmd

by Gregg C Levine-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!
Thank you Fish for taking the time to sort that one out. I did indeed update
my source code checkout as I do practically every day. I don't recall seeing
that error quote, but it could have been just my system missing it.
--
Gregg C Levine hansolofalcon@...
"The Force will be with you always." Obi-Wan Kenobi
 


> -----Original Message-----
> From: hercules-390@... [mailto:hercules-390@...]
On

> Behalf Of Fish
> Sent: Monday, October 12, 2009 2:19 AM
> To: hercules-390@...
> Subject: RE: [hercules-390] hsccmd.c error in function cd_cmd
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> pfg504 wrote:
>
> > During a recompile of hsccmd.c from the 5482 svn version, I received:
> >
> > hsccmd.c: In function 'cd_cmd':
> > hsccmd.c:2309: error: called object '0u' is not a function
> >
> > This is probably related to --disable-dynamic-load on the ./configure
> > command.
>
> Hi Paul!
>
> I've just committed a fix for this issue. Please refresh your source and
try

> again.
>
> Thanks.
>
> - --
> "Fish" (David B. Trout) - fish@...
> Fight Spam! Join CAUCE! <http://www.cauce.org/>
> 7 reasons why HTML email is a bad thing
> http://www.georgedillon.com/web/html_email_is_evil.shtml
> PGP key fingerprints:
> DH/DSS: 9F9B BAB0 BA7F C458 1A89 FE26 48F5 D7F4 C4EE 3E2A
> RSA: 6B37 7110 7201 9917 9B0D 99E3 55DB 5D58 FADE 4A52


RE: hsccmd.c error in function cd_cmd

by fish-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gregg C Levine wrote:

> Hello!
> Thank you Fish for taking the time to sort that one out.

You're very welcome.

If it's something simply that I can figure out the fix for fairly quickly
I'll make the change, but if it looks like it's something that'll take a
while to do I'll just (for now) put it on my TODO list instead. [*]


> I did indeed update my source code checkout as I do practically
> every day. I don't recall seeing that error quote, but it could
> have been just my system missing it.

Perhaps the OP is/was using a slightly different (older?) version of GCC
than you?

In any case all I did was change 'debug_cd_cmd' to be consistent with the
way all the other 'debug_...' HDL functions (Hercules Dynamic Loader) were
implemented. It looked like when I first implemented 'debug_cd_cmd' I failed
to do that, but it's been (hopefully) fixed now.

- --
"Fish" (David B. Trout) - fish@...
Fight Spam! Join CAUCE! <http://www.cauce.org/>
7 reasons why HTML email is a bad thing
http://www.georgedillon.com/web/html_email_is_evil.shtml
PGP key fingerprints:
DH/DSS: 9F9B BAB0 BA7F C458 1A89 FE26 48F5 D7F4 C4EE 3E2A
RSA: 6B37 7110 7201 9917 9B0D 99E3 55DB 5D58 FADE 4A52

[*] I *really*, *really* want to try and get new versions of all my programs
out by year's end and I just know getting sucked back into Hercules
development is only going to slow me down.

Which kind of sucks because I *like* doing Hercules development almost as
much as I like working on my own programs! I mean, just about *everything*
Hercules related is "Really Cool!(tm)" in my opinion, but Hercules itself is
(like DUH!) the coolest thing of all.  :)




-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.8.0 (Build 2158)
Charset: us-ascii

wj8DBQFK06sUSPXX9MTuPioRAhr7AKC3pLdFRK8DwsIC3hgaoxx4vtw+WACfSZe4
fQ1Fm3vUp50P+iMkmh9b/5M=
=IXKW
-----END PGP SIGNATURE-----