Hi all, I am facing a problem when i try to compile Pythia6.4.28 to use with LHAPDF datasets.
Here is what i do and what I get.
I have a fresh Ubuntu 14.04 installation with GCC 4.4 from Ubuntu, Python 2.7
I have boost libraries installed from repositories.
I can compile LHAPDF properly, to use LHAPDF functions structp, structm and pdfset i have disabled these dummy routines in pythia source files and compiled pythia as a static library.
Now when i write a program and compile it using the following command line i get an error that there are undefine references to the above mentioned functions. Whereas it is mentioned in the pythia guidelines that to use PDFSET i have to disable these routines.
below is the complete output of the error message i see., <<<
Please scroll to the bottom to find error indicators <<<
-------------------------------------------------------------------------------------------
Driving: gfortran -ff2c -v genpp_47.f hgr_47.f -L/usr/local/lib -L/usr/local/lib/cernlib -lpythia -lpacklib_noshift -lmathlib -o genpp_47.exe -l gfortran -l m -shared-libgcc
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04.1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
COLLECT_GCC_OPTIONS='-ff2c' '-v' '-L/usr/local/lib' '-L/usr/local/lib/cernlib' '-o' 'genpp_47.exe' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/lib/gcc/x86_64-linux-gnu/4.8/f951 genpp_47.f -ffixed-form -quiet -dumpbase genpp_47.f -mtune=generic -march=x86-64 -auxbase genpp_47 -version -ff2c -fintrinsic-modules-path /usr/lib/gcc/x86_64-linux-gnu/4.8/finclude -o /tmp/ccPumccc.s
GNU Fortran (Ubuntu 4.8.4-2ubuntu1~14.04.1) version 4.8.4 (x86_64-linux-gnu)
compiled by GNU C version 4.8.4, GMP version 5.1.3, MPFR version 3.1.2-p3, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran (Ubuntu 4.8.4-2ubuntu1~14.04.1) version 4.8.4 (x86_64-linux-gnu)
compiled by GNU C version 4.8.4, GMP version 5.1.3, MPFR version 3.1.2-p3, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='-ff2c' '-v' '-L/usr/local/lib' '-L/usr/local/lib/cernlib' '-o' 'genpp_47.exe' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
as -v --64 -o /tmp/ccMGyOcZ.o /tmp/ccPumccc.s
GNU assembler version 2.24 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.24
COLLECT_GCC_OPTIONS='-ff2c' '-v' '-L/usr/local/lib' '-L/usr/local/lib/cernlib' '-o' 'genpp_47.exe' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/lib/gcc/x86_64-linux-gnu/4.8/f951 hgr_47.f -ffixed-form -quiet -dumpbase hgr_47.f -mtune=generic -march=x86-64 -auxbase hgr_47 -version -ff2c -fintrinsic-modules-path /usr/lib/gcc/x86_64-linux-gnu/4.8/finclude -o /tmp/ccPumccc.s
GNU Fortran (Ubuntu 4.8.4-2ubuntu1~14.04.1) version 4.8.4 (x86_64-linux-gnu)
compiled by GNU C version 4.8.4, GMP version 5.1.3, MPFR version 3.1.2-p3, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran (Ubuntu 4.8.4-2ubuntu1~14.04.1) version 4.8.4 (x86_64-linux-gnu)
compiled by GNU C version 4.8.4, GMP version 5.1.3, MPFR version 3.1.2-p3, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='-ff2c' '-v' '-L/usr/local/lib' '-L/usr/local/lib/cernlib' '-o' 'genpp_47.exe' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
as -v --64 -o /tmp/ccz3dUKM.o /tmp/ccPumccc.s
GNU assembler version 2.24 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.24
Reading specs from /usr/lib/gcc/x86_64-linux-gnu/4.8/libgfortran.spec
rename spec lib to liborig
COLLECT_GCC_OPTIONS='-ff2c' '-v' '-L/usr/local/lib' '-L/usr/local/lib/cernlib' '-o' 'genpp_47.exe' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-ff2c' '-v' '-L/usr/local/lib' '-L/usr/local/lib/cernlib' '-o' 'genpp_47.exe' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/lib/gcc/x86_64-linux-gnu/4.8/collect2 --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o genpp_47.exe /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o -L/usr/local/lib -L/usr/local/lib/cernlib -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. /tmp/ccMGyOcZ.o /tmp/ccz3dUKM.o -lpythia -lpacklib_noshift -lmathlib -lgfortran -lm -lgcc_s -lgcc -lquadmath -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o
/usr/local/lib/libpythia.a(pythia-6.4.28n.o): In function `pypdel_':
pythia-6.4.28n.f:(.text+0x4086a): undefined reference to `pdfset_'
pythia-6.4.28n.f:(.text+0x40d73): undefined reference to `structm_'
/usr/local/lib/libpythia.a(pythia-6.4.28n.o): In function `pypdfu_':
pythia-6.4.28n.f:(.text+0x713c4): undefined reference to `pdfset_'
pythia-6.4.28n.f:(.text+0x71594): undefined reference to `structp_'
pythia-6.4.28n.f:(.text+0x7169f): undefined reference to `structp_'
pythia-6.4.28n.f:(.text+0x71c30): undefined reference to `pdfset_'
pythia-6.4.28n.f:(.text+0x71d49): undefined reference to `structm_'
pythia-6.4.28n.f:(.text+0x725eb): undefined reference to `pdfset_'
pythia-6.4.28n.f:(.text+0x72704): undefined reference to `structm_'
/usr/local/lib/libpythia.a(pythia-6.4.28n.o): In function `pyinit_':
pythia-6.4.28n.f:(.text+0x17b26d): undefined reference to `pdfset_'
collect2: error: ld returned 1 exit status
--------------------------------------
I will greatly appreciate any help
Many thanks
Junaid