Mailinglist Archive: opensuse (4020 mails)

< Previous Next >
Re: [SLE] Compiling Perl Modules (Frequencies.pm) and IVTV
  • From: Anders Johansson <andjoh@xxxxxxxxxx>
  • Date: Wed, 20 Oct 2004 15:19:26 +0200
  • Message-id: <200410201519.26555.andjoh@xxxxxxxxxx>
On Wednesday, 20 October 2004 15.02, Hilary L Hertzoff wrote:
> On Wednesday 20 October 2004 03:23, Philipp Thomas wrote:
> > Hilary L Hertzoff <hhertzof@xxxxxxxxx> [19 Oct 2004 08:25:42 -0400]:
> > >cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
> > > -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
> > > -fmessage-length=0 -Wall -Wall -pipe -DVERSION=\"0.012\"
> > > -DXS_VERSION=\"0.012\" -o codec/RTjpeg.o
> >
> > This call is missing the -fPIC. You'd have to check the Makefile to see
> > why this is compiled without and correct that. On x86-64 code for a
> > shared library needs to be compiled as position independent code. i386
> > can do without (though this has serious drawbacks), which is why it's
> > sometimes missing.
>
> And that's the problem I've tried running "perl Makefile.pl -fPIC" on both
> the main makefile and the subfile for RTjpeg and a line with
> CCCDLFLAGS = -fPIC
> appears in the RTjpeg makefile, but when I run it I still get the exact
> same error.

edit RTjpeg/Makefile.PL and change

codec/RTjpeg.o: codec/RTjpeg.c codec/RTjpeg.h
\$(CCCMD) -o \$@ \$<

to

codec/RTjpeg.o: codec/RTjpeg.c codec/RTjpeg.h
\$(CCCMD) \$(CCCDLFLAGS) -o \$@ \$<

then run "CFLAGS=-fPIC perl Makefile.PL" in the top level directory and see if
that works better

< Previous Next >
Follow Ups