• Bug#265759: libqt-perl: FTBFS on amd64: Missing '-fPIC'

    From Andreas Jochens@1:229/2 to All on Sat Aug 14 22:10:09 2004
    From: [email protected]

    Package: libqt-perl
    Severity: normal
    Tags: patch

    When building 'libqt-perl' on amd64 I get the following error:

    /bin/sh ../../libtool --silent --mode=link x86_64-linux-g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -O2 -fno-exceptions -fno-check-new -fno-common -o libsmokeqt.la -rpath /usr/
    lib -version-info 3:1:2 -no-undefined -L/usr/X11R6/lib -L/usr/lib -I. smokedata.lo x_1.lo x_2.lo x_3.lo x_4.lo x_5.lo x_6.lo x_7.lo x_8.lo x_9.lo x_10.lo x_11.lo x_12.lo x_13.lo x_14.lo x_15.lo x_16.lo x_17.lo x_18.lo x_19.lo x_20.lo -lqt-mt -ldl -
    lresolv -lpng -lz -lm -lSM -lICE -lXext -lX11 -lSM -lICE -lpthread -lGLU -lGL -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lm
    /usr/bin/ld: .libs/smokedata.o: relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
    .libs/smokedata.o: could not read symbols: Bad value
    collect2: ld returned 1 exit status
    make[4]: *** [libsmokeqt.la] Error 1
    make[4]: Leaving directory `/libqt-perl-3.008/smoke/qt'

    With the attached patch 'libqt-perl' can be compiled on amd64.

    Regards
    Andreas Jochens

    diff -urN ../tmp-orig/libqt-perl-3.008/debian/rules ./debian/rules
    --- ../tmp-orig/libqt-perl-3.008/debian/rules 2004-08-14 21:11:38.457213257 +0200
    +++ ./debian/rules 2004-08-14 21:07:55.939041161 +0200
    @@ -32,7 +32,7 @@
    aclocal-1.7
    automake-1.7
    autoconf
    - ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-qt-dir=/usr/share/qt3 --disable-rpath --enable-smoke
    + CXXFLAGS=-fPIC ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-qt-dir=/usr/share/qt3 --disable-rpath --enable-smoke


    build: build-stamp


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)