[ptx] [OT?] Compile Problems pfstools x86_64 (amd64): recompile with -fPIC - partly solved?

Gerhard Gaussling ggrubbish at web.de
Fri Dec 16 21:16:31 GMT 2005


Am Freitag 16 Dezember 2005 21:49 schrieb Michael Galloway:
> gerhard, i worked around this same error by setting these environment
> variables:
>
> export PFS_CFLAGS="-I/usr/local/include/pfs-1.2"
> export PFS_LIBS=/usr/local/lib/libpfs-1.2.so
>
> and it built for me. adjust to your shell and specific paths and try
> ...

Hello Michael,

Thank you for the help! 

$  ./configure --prefix=/usr/local
[...]
checking for PFS_LIBS... /usr/local/lib/libpfs-1.2.so
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands

PFScalibration is now configured

  Source directory:     .
  Installation prefix:  /usr/local
  C++ compiler:         g++   -O3 -mcpu=pentium4 -march=pentium4 -msse2 
-s -funroll-loops -fstrength-reduce -fschedule-insns2 
-felide-constructors -frerun-loop-opt -fexceptions -fno-strict-aliasing 
-fexpensive-optimizations -ffast-math -pipe
  LIBS:

  Debug mode:           no




But it does not work with psftmo:

$  ./configure --prefix=/usr/local
[...]
checking whether stripping libraries is possible... yes
checking for pfs library... checking for 
pkg-config... /usr/bin/pkg-config
checking for pfs-1.0 >= 1.0... Package pfs-1.0 was not found in the 
pkg-config search path. Perhaps you should add the directory containing 
`pfs-1.0.pc' to the PKG_CONFIG_PATH environment variable No package 
'pfs-1.0' found
configure: error: Library requirements (pfs-1.0 >= 1.0) not met; 
consider adjusting the PKG_CONFIG_PATH environment variable if your 
libraries are in a nonstandard prefix so pkg-config can find them.
gerhard at ubuntu:~/download/pfstools/pfstmo-1.0$ echo $PFS_LIBS
/usr/local/lib/libpfs-1.2.so
gerhard at ubuntu:~/download/pfstools/pfstmo-1.0$ echo $PFS_CFLAGS
-I/usr/local/include/pfs-1.2

gerhard at ubuntu:~/download/pfstools/pfstmo-1.0$ 
ls /usr/local/include/pfs-1.2
array2d.h  pfs.h

gerhard at ubuntu:~/download/pfstools/pfstmo-1.0$ ls 
-l  /usr/local/lib/libpfs-1.2.so
lrwxrwxrwx  1 root root 19 2005-12-16 20:39 /usr/local/lib/libpfs-1.2.so 
-> libpfs-1.2.so.0.0.0


Did you also find such a solution for pfstools "-fPIC" error? 
I added it manually by hand to the makefiles...



Kind regards

Gerhard Gaußling 


More information about the ptx mailing list