You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by Filip Nollet <fi...@bayer.com> on 2013/10/29 18:09:12 UTC

Compilation of JCC fails: cannot find -lpython2.7

Hi all


I have a problem compiling JCC for pylucene.
It does not find the shared Python library, while this seems to be available.

The error is printed below.

My environment set the LD_LIBRARY_PATH for Python 2.7:
#  set | grep LD_
LD_LIBRARY_PATH=/tools/general/app/python-2.7.5-rhel6/lib:/tools/general/app/sqlite-3.8.0.2/lib

Also, the contents of my Python setup seems fine:
# ll /tools/general/app/python-2.7.5-rhel6/lib
total 16512
-r-xr-xr-x   1 root root 10355780 Oct 16 12:57 libpython2.7.a
lrwxrwxrwx   1 root root       19 Oct 24 17:27 libpython2.7.so -> libpython2.7.so.1.0
-rwxr-xr-x+  1 root root  6053659 Oct 24 17:26 libpython2.7.so.1.0
drwxr-xr-x+  2 root root    65536 Oct 16 12:57 pkgconfig
drwxr-xr-x+ 27 root root    65536 Oct 16 12:57 python2.7


Any ideas for this? Thanks in advance


Regards,


Filip


-----------------------------------------------------------------------------


Applied shared mode monkey patch to: <module 'setuptools' from '/tools/general/app/python-2.7.5-rhel6/lib/python2.7/site-packages/setuptools-1.1.6-py2.7.egg/setuptools/__init__.pyc'>
Loading source files for package org.apache.jcc...
Constructing Javadoc information...
Standard Doclet version 1.6.0_39
Building tree for all the packages and classes...
Generating javadoc/org/apache/jcc//PythonException.html...
Generating javadoc/org/apache/jcc//PythonVM.html...
Generating javadoc/org/apache/jcc//package-frame.html...
Generating javadoc/org/apache/jcc//package-summary.html...
Generating javadoc/org/apache/jcc//package-tree.html...
Generating javadoc/constant-values.html...
Generating javadoc/serialized-form.html...
Building index for all the packages and classes...
Generating javadoc/overview-tree.html...
Generating javadoc/index-all.html...
Generating javadoc/deprecated-list.html...
Building index for all classes...
Generating javadoc/allclasses-frame.html...
Generating javadoc/allclasses-noframe.html...
Generating javadoc/index.html...
Generating javadoc/help-doc.html...
Generating javadoc/stylesheet.css...
running build
running build_py
writing /root/tmp/pylucene-4.4.0-1/jcc/jcc/config.py
copying jcc/config.py -> build/lib.linux-x86_64-2.7/jcc
copying jcc/classes/org/apache/jcc/PythonVM.class -> build/lib.linux-x86_64-2.7/jcc/classes/org/apache/jcc
copying jcc/classes/org/apache/jcc/PythonException.class -> build/lib.linux-x86_64-2.7/jcc/classes/org/apache/jcc
running build_ext
building 'jcc' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -D_jcc_lib -DJCC_VER="2.17" -I/usr/java/jdk1.6.0_39//include -I/usr/java/jdk1.6.0_39//include/linux -I_jcc -Ijcc/sources -I/tools/general/app/python-2.7.5-rhel6/include/python2.7 -c jcc/sources/jcc.cpp -o build/temp.linux-x86_64-2.7/jcc/sources/jcc.o -DPYTHON -fno-strict-aliasing -Wno-write-strings
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from /tools/general/app/python-2.7.5-rhel6/include/python2.7/Python.h:8,
                 from jcc/sources/jcc.cpp:24:
/tools/general/app/python-2.7.5-rhel6/include/python2.7/pyconfig.h:1173:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdio.h:28,
                 from jcc/sources/jcc.cpp:15:
/usr/include/features.h:162:1: warning: this is the location of the previous definition
In file included from /tools/general/app/python-2.7.5-rhel6/include/python2.7/Python.h:8,
                 from jcc/sources/jcc.cpp:24:
/tools/general/app/python-2.7.5-rhel6/include/python2.7/pyconfig.h:1195:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/stdio.h:28,
                 from jcc/sources/jcc.cpp:15:
/usr/include/features.h:164:1: warning: this is the location of the previous definition
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -D_jcc_lib -DJCC_VER="2.17" -I/usr/java/jdk1.6.0_39//include -I/usr/java/jdk1.6.0_39//include/linux -I_jcc -Ijcc/sources -I/tools/general/app/python-2.7.5-rhel6/include/python2.7 -c jcc/sources/JCCEnv.cpp -o build/temp.linux-x86_64-2.7/jcc/sources/JCCEnv.o -DPYTHON -fno-strict-aliasing -Wno-write-strings
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from /tools/general/app/python-2.7.5-rhel6/include/python2.7/Python.h:8,
                 from jcc/sources/JCCEnv.h:47,
                 from jcc/sources/JCCEnv.cpp:21:
/tools/general/app/python-2.7.5-rhel6/include/python2.7/pyconfig.h:1173:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/os_defines.h:39,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/c++config.h:1687,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:60,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:62,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/map:60,
                 from jcc/sources/JCCEnv.cpp:15:
/usr/include/features.h:162:1: warning: this is the location of the previous definition
In file included from /tools/general/app/python-2.7.5-rhel6/include/python2.7/Python.h:8,
                 from jcc/sources/JCCEnv.h:47,
                 from jcc/sources/JCCEnv.cpp:21:
/tools/general/app/python-2.7.5-rhel6/include/python2.7/pyconfig.h:1195:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/os_defines.h:39,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/c++config.h:1687,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:60,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:62,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/map:60,
                 from jcc/sources/JCCEnv.cpp:15:
/usr/include/features.h:164:1: warning: this is the location of the previous definition
g++ -pthread -shared build/temp.linux-x86_64-2.7/jcc/sources/jcc.o build/temp.linux-x86_64-2.7/jcc/sources/JCCEnv.o -o build/lib.linux-x86_64-2.7/libjcc.so -L/usr/java/jdk1.6.0_39//jre/lib/amd64 -ljava -L/usr/java/jdk1.6.0_39//jre/lib/amd64/server -ljvm -Wl,-rpath=/usr/java/jdk1.6.0_39//jre/lib/amd64:/usr/java/jdk1.6.0_39//jre/lib/amd64/server -Wl,-S -lpython2.7
/usr/bin/ld: cannot find -lpython2.7
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1




________________________________________________________________________
The information contained in this e-mail is for the exclusive use of the 
intended recipient(s) and may be confidential, proprietary, and/or 
legally privileged.  Inadvertent disclosure of this message does not 
constitute a waiver of any privilege.  If you receive this message in 
error, please do not directly or indirectly use, print, copy, forward,
or disclose any part of this message.  Please also delete this e-mail 
and all copies and notify the sender.  Thank you. 

For alternate languages please go to http://bayerdisclaimer.bayerweb.com
________________________________________________________________________

RE: Compilation of JCC fails: cannot find -lpython2.7

Posted by Filip Nollet <fi...@bayer.com>.
Hello Andi


Added 
                      '-L/tools/general/app/python-2.7.5-rhel6/lib',

To the LFLAGS param for linux2/x86_64. Now it compiled.

Thanks for your support!


Best regards,

Filip Nollet


-----Original Message-----
From: Andi Vajda [mailto:vajda@apache.org] 
Sent: 29 October 2013 20:00
To: pylucene-dev@lucene.apache.org
Subject: Re: Compilation of JCC fails: cannot find -lpython2.7


> On Oct 29, 2013, at 15:09, Filip Nollet <fi...@bayer.com> wrote:
> 
> Hi all
> 
> I have a problem compiling JCC for pylucene.
> It does not find the shared Python library, while this seems to be available.
> 
> The error is printed below.
> 
> My environment set the LD_LIBRARY_PATH for Python 2.7:
> #  set | grep LD_
> LD_LIBRARY_PATH=/tools/general/app/python-2.7.5-rhel6/lib:/tools/general/app/sqlite-3.8.0.2/lib
> 
> Also, the contents of my Python setup seems fine:
> # ll /tools/general/app/python-2.7.5-rhel6/lib
> total 16512
> -r-xr-xr-x   1 root root 10355780 Oct 16 12:57 libpython2.7.a
> lrwxrwxrwx   1 root root       19 Oct 24 17:27 libpython2.7.so -> libpython2.7.so.1.0
> -rwxr-xr-x+  1 root root  6053659 Oct 24 17:26 libpython2.7.so.1.0
> drwxr-xr-x+  2 root root    65536 Oct 16 12:57 pkgconfig
> drwxr-xr-x+ 27 root root    65536 Oct 16 12:57 python2.7
> 
> 
> Any ideas for this? Thanks in advance

Did you edit jcc's setup.py to reflect your envirronment ?
Once done you shouldn't need LD_LIBRARY_PATH either.

Andi..

> 
> 
> Regards,
> 
> 
> Filip
> 
> 
> -----------------------------------------------------------------------------
> 
> 
> Applied shared mode monkey patch to: <module 'setuptools' from '/tools/general/app/python-2.7.5-rhel6/lib/python2.7/site-packages/setuptools-1.1.6-py2.7.egg/setuptools/__init__.pyc'>
> Loading source files for package org.apache.jcc...
> Constructing Javadoc information...
> Standard Doclet version 1.6.0_39
> Building tree for all the packages and classes...
> Generating javadoc/org/apache/jcc//PythonException.html...
> Generating javadoc/org/apache/jcc//PythonVM.html...
> Generating javadoc/org/apache/jcc//package-frame.html...
> Generating javadoc/org/apache/jcc//package-summary.html...
> Generating javadoc/org/apache/jcc//package-tree.html...
> Generating javadoc/constant-values.html...
> Generating javadoc/serialized-form.html...
> Building index for all the packages and classes...
> Generating javadoc/overview-tree.html...
> Generating javadoc/index-all.html...
> Generating javadoc/deprecated-list.html...
> Building index for all classes...
> Generating javadoc/allclasses-frame.html...
> Generating javadoc/allclasses-noframe.html...
> Generating javadoc/index.html...
> Generating javadoc/help-doc.html...
> Generating javadoc/stylesheet.css...
> running build
> running build_py
> writing /root/tmp/pylucene-4.4.0-1/jcc/jcc/config.py
> copying jcc/config.py -> build/lib.linux-x86_64-2.7/jcc
> copying jcc/classes/org/apache/jcc/PythonVM.class -> build/lib.linux-x86_64-2.7/jcc/classes/org/apache/jcc
> copying jcc/classes/org/apache/jcc/PythonException.class -> build/lib.linux-x86_64-2.7/jcc/classes/org/apache/jcc
> running build_ext
> building 'jcc' extension
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -D_jcc_lib -DJCC_VER="2.17" -I/usr/java/jdk1.6.0_39//include -I/usr/java/jdk1.6.0_39//include/linux -I_jcc -Ijcc/sources -I/tools/general/app/python-2.7.5-rhel6/include/python2.7 -c jcc/sources/jcc.cpp -o build/temp.linux-x86_64-2.7/jcc/sources/jcc.o -DPYTHON -fno-strict-aliasing -Wno-write-strings
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
> In file included from /tools/general/app/python-2.7.5-rhel6/include/python2.7/Python.h:8,
>                 from jcc/sources/jcc.cpp:24:
> /tools/general/app/python-2.7.5-rhel6/include/python2.7/pyconfig.h:1173:1: warning: "_POSIX_C_SOURCE" redefined
> In file included from /usr/include/stdio.h:28,
>                 from jcc/sources/jcc.cpp:15:
> /usr/include/features.h:162:1: warning: this is the location of the previous definition
> In file included from /tools/general/app/python-2.7.5-rhel6/include/python2.7/Python.h:8,
>                 from jcc/sources/jcc.cpp:24:
> /tools/general/app/python-2.7.5-rhel6/include/python2.7/pyconfig.h:1195:1: warning: "_XOPEN_SOURCE" redefined
> In file included from /usr/include/stdio.h:28,
>                 from jcc/sources/jcc.cpp:15:
> /usr/include/features.h:164:1: warning: this is the location of the previous definition
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -D_jcc_lib -DJCC_VER="2.17" -I/usr/java/jdk1.6.0_39//include -I/usr/java/jdk1.6.0_39//include/linux -I_jcc -Ijcc/sources -I/tools/general/app/python-2.7.5-rhel6/include/python2.7 -c jcc/sources/JCCEnv.cpp -o build/temp.linux-x86_64-2.7/jcc/sources/JCCEnv.o -DPYTHON -fno-strict-aliasing -Wno-write-strings
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
> In file included from /tools/general/app/python-2.7.5-rhel6/include/python2.7/Python.h:8,
>                 from jcc/sources/JCCEnv.h:47,
>                 from jcc/sources/JCCEnv.cpp:21:
> /tools/general/app/python-2.7.5-rhel6/include/python2.7/pyconfig.h:1173:1: warning: "_POSIX_C_SOURCE" redefined
> In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/os_defines.h:39,
>                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/c++config.h:1687,
>                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:60,
>                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:62,
>                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/map:60,
>                 from jcc/sources/JCCEnv.cpp:15:
> /usr/include/features.h:162:1: warning: this is the location of the previous definition
> In file included from /tools/general/app/python-2.7.5-rhel6/include/python2.7/Python.h:8,
>                 from jcc/sources/JCCEnv.h:47,
>                 from jcc/sources/JCCEnv.cpp:21:
> /tools/general/app/python-2.7.5-rhel6/include/python2.7/pyconfig.h:1195:1: warning: "_XOPEN_SOURCE" redefined
> In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/os_defines.h:39,
>                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/c++config.h:1687,
>                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:60,
>                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:62,
>                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/map:60,
>                 from jcc/sources/JCCEnv.cpp:15:
> /usr/include/features.h:164:1: warning: this is the location of the previous definition
> g++ -pthread -shared build/temp.linux-x86_64-2.7/jcc/sources/jcc.o build/temp.linux-x86_64-2.7/jcc/sources/JCCEnv.o -o build/lib.linux-x86_64-2.7/libjcc.so -L/usr/java/jdk1.6.0_39//jre/lib/amd64 -ljava -L/usr/java/jdk1.6.0_39//jre/lib/amd64/server -ljvm -Wl,-rpath=/usr/java/jdk1.6.0_39//jre/lib/amd64:/usr/java/jdk1.6.0_39//jre/lib/amd64/server -Wl,-S -lpython2.7
> /usr/bin/ld: cannot find -lpython2.7
> collect2: ld returned 1 exit status
> error: command 'g++' failed with exit status 1
> 
> 
> 
> 
> ________________________________________________________________________
> The information contained in this e-mail is for the exclusive use of the 
> intended recipient(s) and may be confidential, proprietary, and/or 
> legally privileged.  Inadvertent disclosure of this message does not 
> constitute a waiver of any privilege.  If you receive this message in 
> error, please do not directly or indirectly use, print, copy, forward,
> or disclose any part of this message.  Please also delete this e-mail 
> and all copies and notify the sender.  Thank you. 
> 
> For alternate languages please go to http://bayerdisclaimer.bayerweb.com
> ________________________________________________________________________

Re: Compilation of JCC fails: cannot find -lpython2.7

Posted by Andi Vajda <va...@apache.org>.
> On Oct 29, 2013, at 15:09, Filip Nollet <fi...@bayer.com> wrote:
> 
> Hi all
> 
> I have a problem compiling JCC for pylucene.
> It does not find the shared Python library, while this seems to be available.
> 
> The error is printed below.
> 
> My environment set the LD_LIBRARY_PATH for Python 2.7:
> #  set | grep LD_
> LD_LIBRARY_PATH=/tools/general/app/python-2.7.5-rhel6/lib:/tools/general/app/sqlite-3.8.0.2/lib
> 
> Also, the contents of my Python setup seems fine:
> # ll /tools/general/app/python-2.7.5-rhel6/lib
> total 16512
> -r-xr-xr-x   1 root root 10355780 Oct 16 12:57 libpython2.7.a
> lrwxrwxrwx   1 root root       19 Oct 24 17:27 libpython2.7.so -> libpython2.7.so.1.0
> -rwxr-xr-x+  1 root root  6053659 Oct 24 17:26 libpython2.7.so.1.0
> drwxr-xr-x+  2 root root    65536 Oct 16 12:57 pkgconfig
> drwxr-xr-x+ 27 root root    65536 Oct 16 12:57 python2.7
> 
> 
> Any ideas for this? Thanks in advance

Did you edit jcc's setup.py to reflect your envirronment ?
Once done you shouldn't need LD_LIBRARY_PATH either.

Andi..

> 
> 
> Regards,
> 
> 
> Filip
> 
> 
> -----------------------------------------------------------------------------
> 
> 
> Applied shared mode monkey patch to: <module 'setuptools' from '/tools/general/app/python-2.7.5-rhel6/lib/python2.7/site-packages/setuptools-1.1.6-py2.7.egg/setuptools/__init__.pyc'>
> Loading source files for package org.apache.jcc...
> Constructing Javadoc information...
> Standard Doclet version 1.6.0_39
> Building tree for all the packages and classes...
> Generating javadoc/org/apache/jcc//PythonException.html...
> Generating javadoc/org/apache/jcc//PythonVM.html...
> Generating javadoc/org/apache/jcc//package-frame.html...
> Generating javadoc/org/apache/jcc//package-summary.html...
> Generating javadoc/org/apache/jcc//package-tree.html...
> Generating javadoc/constant-values.html...
> Generating javadoc/serialized-form.html...
> Building index for all the packages and classes...
> Generating javadoc/overview-tree.html...
> Generating javadoc/index-all.html...
> Generating javadoc/deprecated-list.html...
> Building index for all classes...
> Generating javadoc/allclasses-frame.html...
> Generating javadoc/allclasses-noframe.html...
> Generating javadoc/index.html...
> Generating javadoc/help-doc.html...
> Generating javadoc/stylesheet.css...
> running build
> running build_py
> writing /root/tmp/pylucene-4.4.0-1/jcc/jcc/config.py
> copying jcc/config.py -> build/lib.linux-x86_64-2.7/jcc
> copying jcc/classes/org/apache/jcc/PythonVM.class -> build/lib.linux-x86_64-2.7/jcc/classes/org/apache/jcc
> copying jcc/classes/org/apache/jcc/PythonException.class -> build/lib.linux-x86_64-2.7/jcc/classes/org/apache/jcc
> running build_ext
> building 'jcc' extension
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -D_jcc_lib -DJCC_VER="2.17" -I/usr/java/jdk1.6.0_39//include -I/usr/java/jdk1.6.0_39//include/linux -I_jcc -Ijcc/sources -I/tools/general/app/python-2.7.5-rhel6/include/python2.7 -c jcc/sources/jcc.cpp -o build/temp.linux-x86_64-2.7/jcc/sources/jcc.o -DPYTHON -fno-strict-aliasing -Wno-write-strings
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
> In file included from /tools/general/app/python-2.7.5-rhel6/include/python2.7/Python.h:8,
>                 from jcc/sources/jcc.cpp:24:
> /tools/general/app/python-2.7.5-rhel6/include/python2.7/pyconfig.h:1173:1: warning: "_POSIX_C_SOURCE" redefined
> In file included from /usr/include/stdio.h:28,
>                 from jcc/sources/jcc.cpp:15:
> /usr/include/features.h:162:1: warning: this is the location of the previous definition
> In file included from /tools/general/app/python-2.7.5-rhel6/include/python2.7/Python.h:8,
>                 from jcc/sources/jcc.cpp:24:
> /tools/general/app/python-2.7.5-rhel6/include/python2.7/pyconfig.h:1195:1: warning: "_XOPEN_SOURCE" redefined
> In file included from /usr/include/stdio.h:28,
>                 from jcc/sources/jcc.cpp:15:
> /usr/include/features.h:164:1: warning: this is the location of the previous definition
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -D_jcc_lib -DJCC_VER="2.17" -I/usr/java/jdk1.6.0_39//include -I/usr/java/jdk1.6.0_39//include/linux -I_jcc -Ijcc/sources -I/tools/general/app/python-2.7.5-rhel6/include/python2.7 -c jcc/sources/JCCEnv.cpp -o build/temp.linux-x86_64-2.7/jcc/sources/JCCEnv.o -DPYTHON -fno-strict-aliasing -Wno-write-strings
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
> In file included from /tools/general/app/python-2.7.5-rhel6/include/python2.7/Python.h:8,
>                 from jcc/sources/JCCEnv.h:47,
>                 from jcc/sources/JCCEnv.cpp:21:
> /tools/general/app/python-2.7.5-rhel6/include/python2.7/pyconfig.h:1173:1: warning: "_POSIX_C_SOURCE" redefined
> In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/os_defines.h:39,
>                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/c++config.h:1687,
>                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:60,
>                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:62,
>                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/map:60,
>                 from jcc/sources/JCCEnv.cpp:15:
> /usr/include/features.h:162:1: warning: this is the location of the previous definition
> In file included from /tools/general/app/python-2.7.5-rhel6/include/python2.7/Python.h:8,
>                 from jcc/sources/JCCEnv.h:47,
>                 from jcc/sources/JCCEnv.cpp:21:
> /tools/general/app/python-2.7.5-rhel6/include/python2.7/pyconfig.h:1195:1: warning: "_XOPEN_SOURCE" redefined
> In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/os_defines.h:39,
>                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/c++config.h:1687,
>                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:60,
>                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:62,
>                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/map:60,
>                 from jcc/sources/JCCEnv.cpp:15:
> /usr/include/features.h:164:1: warning: this is the location of the previous definition
> g++ -pthread -shared build/temp.linux-x86_64-2.7/jcc/sources/jcc.o build/temp.linux-x86_64-2.7/jcc/sources/JCCEnv.o -o build/lib.linux-x86_64-2.7/libjcc.so -L/usr/java/jdk1.6.0_39//jre/lib/amd64 -ljava -L/usr/java/jdk1.6.0_39//jre/lib/amd64/server -ljvm -Wl,-rpath=/usr/java/jdk1.6.0_39//jre/lib/amd64:/usr/java/jdk1.6.0_39//jre/lib/amd64/server -Wl,-S -lpython2.7
> /usr/bin/ld: cannot find -lpython2.7
> collect2: ld returned 1 exit status
> error: command 'g++' failed with exit status 1
> 
> 
> 
> 
> ________________________________________________________________________
> The information contained in this e-mail is for the exclusive use of the 
> intended recipient(s) and may be confidential, proprietary, and/or 
> legally privileged.  Inadvertent disclosure of this message does not 
> constitute a waiver of any privilege.  If you receive this message in 
> error, please do not directly or indirectly use, print, copy, forward,
> or disclose any part of this message.  Please also delete this e-mail 
> and all copies and notify the sender.  Thank you. 
> 
> For alternate languages please go to http://bayerdisclaimer.bayerweb.com
> ________________________________________________________________________