Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Unable to compile on CentOS 5.5 x86_64

#23

Submitted by: Jon

This is what I get when I try to compile on CentOS 5.5 x86_64:

gcc -pthread -shared build/temp.linux-x86_64-2.4/psycopg/psycopgmodule.o build/temp.linux-x86_64-2.4/psycopg/pqpath.o build/temp.linux-x86_64-2.4/psycopg/typecast.o build/temp.linux-x86_64-2.4/psycopg/microprotocols.o build/temp.linux-x86_64-2.4/psycopg/microprotocols_proto.o build/temp.linux-x86_64-2.4/psycopg/connection_type.o build/temp.linux-x86_64-2.4/psycopg/connection_int.o build/temp.linux-x86_64-2.4/psycopg/cursor_type.o build/temp.linux-x86_64-2.4/psycopg/cursor_int.o build/temp.linux-x86_64-2.4/psycopg/lobject_type.o build/temp.linux-x86_64-2.4/psycopg/lobject_int.o build/temp.linux-x86_64-2.4/psycopg/notify_type.o build/temp.linux-x86_64-2.4/psycopg/xid_type.o build/temp.linux-x86_64-2.4/psycopg/adapter_qstring.o build/temp.linux-x86_64-2.4/psycopg/adapter_pboolean.o build/temp.linux-x86_64-2.4/psycopg/adapter_binary.o build/temp.linux-x86_64-2.4/psycopg/adapter_asis.o build/temp.linux-x86_64-2.4/psycopg/adapter_list.o build/temp.linux-x86_64-2.4/psycopg/adapter_datetime.o build/temp.linux-x86_64-2.4/psycopg/adapter_pfloat.o build/temp.linux-x86_64-2.4/psycopg/adapter_pdecimal.o build/temp.linux-x86_64-2.4/psycopg/green.o build/temp.linux-x86_64-2.4/psycopg/utils.o -L/usr/lib64 -lpq -o build/lib.2.4/psycopg2/_psycopg.so
/usr/bin/ld: build/temp.linux-x86_64-2.4/psycopg/psycopgmodule.o: relocation R_X86_64_PC32 against psyco_typecast_datetime_init' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value

Reported by Psycopg website · December 2nd, 2010 @ 05:36 PM

State: resolved
Milestone: release-2.3.1
Assigned to: nobody

Activity

  1. Daniele Varrazzo
    Daniele Varrazzo
    • State changed from new to open
    • Milestone set to release-2.3.1
    • Tag changed from rel-2.3.0 to build, rel-2.3.0
    • Milestone order changed from 16 to 0

    Confirm the build problem on CentOS 5.5 X86_64.

    The following preliminary patch allows the library to build

    --- psycopg/psycopgmodule.c.orig        2010-12-02 21:08:20.000000000 -0500
    +++ psycopg/psycopgmodule.c     2010-12-02 21:08:42.000000000 -0500
    @@ -48,7 +48,6 @@
     #include "psycopg/adapter_asis.h"
     #include "psycopg/adapter_list.h"
     #include "psycopg/typecast_binary.h"
    -#include "psycopg/typecast_datetime.h"
     
     #ifdef HAVE_MXDATETIME
     #include <mxDateTime.h>
    

    Likely the #include "psycopg/typecast_mxdatetime.h" a few lines below should be dropped too if compiling with mx.DateTime support enabled.

    We will look into a better fix for the next release.

    December 2nd, 2010 @ 08:20 PM

  2. Daniele Varrazzo
    Daniele Varrazzo
    • State changed from open to resolved

    Issue fixed in release 2.3.1.

    December 4th, 2010 @ 08:59 PM