Funktar 0 Newbie Poster

Hey there daniweb, I'm a web developer that is way out of my element here, hoping to find some help.

I'm supposed to be converting a python/c++ library to linux for a coworker. I'm terrible at python and even worse at c++. This truly is not my element.

After a successful build on 64-bit Redhat, I moved it over to a fresh 32-bit Redhat to test the library in the package and get: wrong ELF class: ELFCLASS64. Off to google, need to recompile in 32-bit mode, duh, so added -m32 to CCflags.

Now, after adding -m32 when trying to build (on the 64-bit machine) I get:

/usr/local/src/Python-2.5/Include/pyport.h:737:2: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

I've read all about the error on google, besides the known Redhat bug with a gcc version I'm not using, I've found nothing useful, at least nothing dumbed down enough to fit my situation.

I'm just looking for any ideas, suggestions, paths, places to look.

Env: Linux domain 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006 x8664 x8664 x86_64 GNU/Linux Python 2.5 (r25:51908, Oct 24 2007, 12:11:26) [GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2

Any questions, just let me know, thanks for any help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.