SCIENTIFIC-LINUX-USERS Archives

August 2007

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Maurizio Martinelli <[log in to unmask]>
Reply To:
Maurizio Martinelli <[log in to unmask]>
Date:
Fri, 3 Aug 2007 18:37:13 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (135 lines)
Hi,
I tried to compile the file 4pi_corr2.f with this command:
 
	$ source instr.txt

where instr.txt is:
	g77 -O2 -fno-automatic -g 4pi_corr2.f -o 4pi_corr2.exe -
L /cern/2005/lib -lgrafX11 -lmathlib -lpawlib -lkernlib -lgraflib -
lgeant321 -lphtools -lpacklib -v

I received this message:

	Driving: g77 -O2 -fno-automatic -g 4pi_corr2.f -o 4pi_corr2.exe -
L /cern/2005/lib -lgrafX11 -lmathlib -lpawlib -lkernlib -lgraflib -
lgeant321 -lphtools -lpacklib -v -lfrtbegin -lg2c -lm -shared-libgcc
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --
infodir=/usr/share/info --enable-shared --enable-threads=posix --
disable-checking --with-system-zlib --enable-__cxa_atexit --disable-
libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-8)
 /usr/libexec/gcc/i386-redhat-linux/3.4.6/f771 4pi_corr2.f -quiet -
dumpbase 4pi_corr2.f -auxbase 4pi_corr2 -g -O2 -version -fno-automatic -
o /tmp/ccuLvOxW.s
łGNU F77 version 3.4.6 20060404 (Red Hat 3.4.6-8) (i386-redhat-linux)
        compiled by GNU C version 3.4.6 20060404 (Red Hat 3.4.6-8).
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-
heapsize=129428
 as -V -Qy -o /tmp/cc0AH9aY.o /tmp/ccuLvOxW.s
GNU assembler version 2.15.92.0.2 (i386-redhat-linux) using BFD version
2.15.92.0.2 20040927
 /usr/libexec/gcc/i386-redhat-linux/3.4.6/collect2 --eh-frame-hdr -m
elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o
4pi_corr2.exe /usr/lib/gcc/i386-redhat-
linux/3.4.6/../../../crt1.o /usr/lib/gcc/i386-redhat-
linux/3.4.6/../../../crti.o /usr/lib/gcc/i386-redhat-
linux/3.4.6/crtbegin.o -L /cern/2005/lib -L/usr/lib/gcc/i386-redhat-
linux/3.4.6 -L/usr/lib/gcc/i386-redhat-linux/3.4.6 -L/usr/lib/gcc/i386-
redhat-linux/3.4.6/../../.. /tmp/cc0AH9aY.o -lgrafX11 -lmathlib -lpawlib
-lkernlib -lgraflib -lgeant321 -lphtools -lpacklib -lfrtbegin -lg2c -lm
-lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/i386-redhat-
linux/3.4.6/crtend.o /usr/lib/gcc/i386-redhat-
linux/3.4.6/../../../crtn.o
/cern/2005/lib/libpacklib.a(cfclos.o)(.text+0xd): In function `cfclos_':
: undefined reference to `rfio_close'
/cern/2005/lib/libpacklib.a(cfget.o)(.text+0x3d): In function `cfget_':
: undefined reference to `rfio_read'
/cern/2005/lib/libpacklib.a(cfget.o)(.text+0x64): In function `cfget_':
: undefined reference to `serrno'
/cern/2005/lib/libpacklib.a(cfget.o)(.text+0x6d): In function `cfget_':
: undefined reference to `rfio_errno'
/cern/2005/lib/libpacklib.a(cfget.o)(.text+0x86): In function `cfget_':
: undefined reference to `rfio_perror'
/cern/2005/lib/libpacklib.a(cfput.o)(.text+0x32): In function `cfput_':
: undefined reference to `rfio_write'
/cern/2005/lib/libpacklib.a(cfput.o)(.text+0x3b): In function `cfput_':
: undefined reference to `serrno'
/cern/2005/lib/libpacklib.a(cfput.o)(.text+0x44): In function `cfput_':
: undefined reference to `rfio_errno'
/cern/2005/lib/libpacklib.a(cfput.o)(.text+0x5d): In function `cfput_':
: undefined reference to `rfio_perror'
/cern/2005/lib/libpacklib.a(cfseek.o)(.text+0x2e): In function
`cfseek_':
: undefined reference to `rfio_lseek'
/cern/2005/lib/libpacklib.a(cfseek.o)(.text+0x4c): In function
`cfseek_':
: undefined reference to `rfio_perror'
/cern/2005/lib/libpacklib.a(cfopei.o)(.text+0xda): In function
`cfopei_':
: undefined reference to `rfio_open'
/cern/2005/lib/libpacklib.a(cfopei.o)(.text+0xf2): In function
`cfopei_':
: undefined reference to `serrno'
/cern/2005/lib/libpacklib.a(cfopei.o)(.text+0xfb): In function
`cfopei_':
: undefined reference to `rfio_errno'
/cern/2005/lib/libpacklib.a(cfopei.o)(.text+0x115): In function
`cfopei_':
: undefined reference to `rfio_perror'
/cern/2005/lib/libpacklib.a(cfstati.o)(.text+0x49): In function
`cfstati_':
: undefined reference to `rfio_stat'
collect2: ld returned 1 exit status







@( 



\
@
Q






H
Q

D\
i



\

\
9


 

Q


e to `rfio_stat'
It seems to me that the problem is in the undefined references in the
functions of libpacklib.a

I would like to know if I am using the right CERNLIB for my system, a
SL4.4.

I use CERNLIB-2005-0.slc4.i386.rpm and it is installed in /cern/2005
Thank you

Maurizio Martinelli

ATOM RSS1 RSS2