Jesus Cea
2012-Jul-07 20:15 UTC
[dtrace-discuss] "failed to compile script Include/pydtrace.d: line 97: useless declaration"
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Under Solaris 10 my "Include/pydtrace.d" works perfectly, but under Solaris 11 I get this error: dtrace: failed to compile script Include/pydtrace.d: line 97: useless declaration *** Error code 1 make: Fatal error: Command failed for target `Python/pydtrace.o'' Line 97 is: """ /* startframe and endframe are macro-expansions */ extern uintptr_t startframe; extern uintptr_t endframe; """ When expanded with the C macroprocessor, I get this: """ # 96 "Include/pydtrace.d" extern uintptr_t PyEval_EvalFrameEx; extern uintptr_t PyEval_EvalCode; """ And "uintptr_t" is declared a while back (via "#include") with the value: """ typedef unsigned int uintptr_t; """ So dtrace has access to the definition. But it is not working. My current D script is in <http://hg.jcea.es/cpython-2011/file/57feb0e55a90/Include/pydtrace.d>. - -- Jesus Cea Avion _/_/ _/_/_/ _/_/_/ jcea at jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/ jabber / xmpp:jcea at jabber.org _/_/ _/_/ _/_/_/_/_/ . _/_/ _/_/ _/_/ _/_/ _/_/ "Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ "My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/ "El amor es poner tu felicidad en la felicidad de otro" - Leibniz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQCVAwUBT/iY1Zlgi5GaxT1NAQKD5QQAgP2SG9BpvP4APb8C2yoXTdGsmjHuSk07 XyMldOmIRtJrUXTy4j9twf9CIdGRjzXyCnV9GsZJ2BelxKvMbB7anvRPB40kg/ZO UbwC191l5tHruykddtiuNgzJLc7TT7tB69kQqiUtLh5+H25AC0MIsfbcBo7tbuxG i6vWrYdsIak=fKp3 -----END PGP SIGNATURE-----