gcc install problem

4 views
Skip to first unread message

JJ

unread,
Jun 21, 2011, 4:46:38 PM6/21/11
to python-ad
i've installed the prereq'd software. gcc is installed. any ideas?


[root@monk python-ad-0.9]# python setup.py install
running install
running bdist_egg
running egg_info
writing lib/python_ad.egg-info/PKG-INFO
writing top-level names to lib/python_ad.egg-info/top_level.txt
writing dependency_links to lib/python_ad.egg-info/
dependency_links.txt
reading manifest file 'lib/python_ad.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'lib/python_ad.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'ad.protocol.krb5' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-
D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-
size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/
python2.4 -c lib/ad/protocol/krb5.c -o build/temp.linux-x86_64-2.4/lib/
ad/protocol/krb5.o
lib/ad/protocol/krb5.c:10:20: error: Python.h: No such file or
directory
lib/ad/protocol/krb5.c:14: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before â*â token
lib/ad/protocol/krb5.c:27: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before â*â token
lib/ad/protocol/krb5.c:68: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before â*â token
lib/ad/protocol/krb5.c: In function â_k5_set_password_errorâ:
lib/ad/protocol/krb5.c:129: warning: implicit declaration of function
âPyErr_NoMemoryâ
lib/ad/protocol/krb5.c:134: warning: implicit declaration of function
âstrncpyâ
lib/ad/protocol/krb5.c:134: warning: incompatible implicit declaration
of built-in function âstrncpyâ
lib/ad/protocol/krb5.c:146: warning: incompatible implicit declaration
of built-in function âstrncpyâ
lib/ad/protocol/krb5.c:150: warning: implicit declaration of function
âPyErr_Formatâ
lib/ad/protocol/krb5.c:150: error: âk5_errorâ undeclared (first use in
this function)
lib/ad/protocol/krb5.c:150: error: (Each undeclared identifier is
reported only once
lib/ad/protocol/krb5.c:150: error: for each function it appears in.)
lib/ad/protocol/krb5.c: At top level:
lib/ad/protocol/krb5.c:157: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before â*â token
lib/ad/protocol/krb5.c:205: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before â*â token
lib/ad/protocol/krb5.c:260: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before â*â token
lib/ad/protocol/krb5.c:291: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before â*â token
lib/ad/protocol/krb5.c:329: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before â*â token
lib/ad/protocol/krb5.c:365: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âk5_methodsâ
lib/ad/protocol/krb5.c: In function âinitkrb5â:
lib/ad/protocol/krb5.c:388: error: âPyObjectâ undeclared (first use in
this function)
lib/ad/protocol/krb5.c:388: error: âmoduleâ undeclared (first use in
this function)
lib/ad/protocol/krb5.c:388: error: âdictâ undeclared (first use in
this function)
lib/ad/protocol/krb5.c:388: warning: left-hand operand of comma
expression has no effect
lib/ad/protocol/krb5.c:392: warning: implicit declaration of function
âPy_InitModuleâ
lib/ad/protocol/krb5.c:392: error: âk5_methodsâ undeclared (first use
in this function)
lib/ad/protocol/krb5.c:393: warning: implicit declaration of function
âPyModule_GetDictâ
lib/ad/protocol/krb5.c:394: error: âk5_errorâ undeclared (first use in
this function)
lib/ad/protocol/krb5.c:394: warning: implicit declaration of function
âPyErr_NewExceptionâ
lib/ad/protocol/krb5.c:395: warning: implicit declaration of function
âPyDict_SetItemStringâ
error: command 'gcc' failed with exit status 1

Geert Jansen

unread,
Jun 22, 2011, 3:40:35 AM6/22/11
to pyth...@googlegroups.com
Hi,

it appears that you don't have python-devel installed.

Regards,
Geert

> --
> You received this message because you are subscribed to the Google Groups "python-ad" group.
> To post to this group, send email to pyth...@googlegroups.com.
> To unsubscribe from this group, send email to python-ad+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/python-ad?hl=en.
>
>

Jeremiah Jester

unread,
Jun 22, 2011, 12:54:01 PM6/22/11
to pyth...@googlegroups.com
thanks Geert.
 
Any idea on this one?
 

======================================================================
ERROR: test suite for <class 'test_netlogon.TestDecoder'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/nose/suite.py", line 197, in run
    self.setUp()
  File "/usr/lib/python2.4/site-packages/nose/suite.py", line 280, in setUp
    self.setupContext(ancestor)
  File "/usr/lib/python2.4/site-packages/nose/suite.py", line 303, in setupContext
    try_run(context, names)
  File "/usr/lib/python2.4/site-packages/nose/util.py", line 491, in try_run
    return func()
  File "/root/python-ad-0.9/lib/ad/test/base.py", line 32, in setup_class
    raise Error, 'Python-AD test configuration file not specified.'
Error: Python-AD test configuration file not specified.
----------------------------------------------------------------------
Ran 76 tests in 0.400s
FAILED (errors=7)


--
"Never accept what you hear at face value -- ask questions, do your homework and make sure your interests are protected"

Jeremiah Jester

unread,
Jun 22, 2011, 12:54:47 PM6/22/11
to pyth...@googlegroups.com
forgot to include the command i'm passing for this...
 
[root@monk python-ad-0.9]# python setup.py test

Jeremiah Jester

unread,
Jun 22, 2011, 1:02:17 PM6/22/11
to pyth...@googlegroups.com
I'm combed through the code and found the problem...FREEADI_TEST_CONFIG variable not set. Now i just need to find the module, :)

[root@monk python-ad-0.9]# $FREEADI_TEST_CONFIG='./test.conf'
-bash: =./test.conf: No such file or directory
[root@monk python-ad-0.9]# FREEADI_TEST_CONFIG='./test.conf'
[root@monk python-ad-0.9]# echo $FREEADI_TEST_CONFIG
./test.conf
[root@monk python-ad-0.9]# export FREEADI_TEST_CONFIG
[root@monk python-ad-0.9]# echo $FREEADI_TEST_CONFIG
./test.conf
[root@monk python-ad-0.9]# python
Python 2.4.3 (#1, Apr 14 2011, 20:41:59)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> fname=os.environ.get('FREEADI_TEST_CONFIG')
>>> print fname
./test.conf
On Wed, Jun 22, 2011 at 9:54 AM, Jeremiah Jester <jeremia...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages