compile genesis_mpi in CentOS
Posted: 08 Jan 2020, 03:15
I'm trying to compile the mpi edition of GENESIS 2.0 source code in CentOS7.
I have modified the Makefile of genesis a littie:
#
# GENESIS makefile
#
#
SOURCE= main.f check.f diagno.f esource.f field.f incoherent.f \
math.f partsim.f pushp.f loadbeam.f loadrad.f magfield.f \
tdepend.f track.f string.f rpos.f scan.f source.f stepz.f \
timerec.f initrun.f input.f output.f mpi.f sdds.f
# output.f \
#
# LIB= -lmdbmth -lSDDS1 -lmdblib -lz
#
#OBJECTS =$(SOURCE:.f=.o)
#
#ifeq ($(EPICS_HOST_ARCH),win32-x86)
#COMPILER = ifort
#else
#COMPILER = g77
#endif
COMPILER = mpif77
#
# executable name
#
#EXECUTABLE = GENESIS
EXECUTABLE = genesis_mpi
#
...................
...............
ifeq ($(EPICS_HOST_ARCH),linux-x86_64)
LIB_DIR = $(HOME)/epics/extensions/lib/linux-x86_64
SDDS_FORTRAN_WRAPPER = $(HOME)/epics/extensions/src/SDDS/fortran/O.linux-x86_64/fortran_wrapper.o
LDFLAGS=$(SDDS_FORTRAN_WRAPPER) -Wl,-Bstatic -L$(LIB_DIR) -lmdbmth -lSDDS1 -lmdblib -lz -static-libgcc -lc
CFLAGS=-Wl,--build-id -O2 -ffixed-line-length-132 -Wall -fno-second-underscore -Wno-globals -Wimplicit -Wno-unused
endif
# targets
#
ifeq ($(EPICS_HOST_ARCH),win32-x86)
...............................
..................
else
GENESIS: $(SOURCE)
$(COMPILER) -g -w -O -Wall $(CFLAGS) -o $(EXECUTABLE) $(SOURCE) $(LDFLAGS)
@echo ' ******* end of linking ****** '
endif
..............................
When I run the make command, I've got the following error message.
mpif77 -g -w -O -Wall -Wl,--build-id -O2 -ffixed-line-length-132 -Wall -fno-second-underscore -Wno-globals -Wimplicit -Wno-unused -o genesis_mpi main.f check.f diagno.f esource.f field.f incoherent.f math.f partsim.f pushp.f loadbeam.f loadrad.f magfield.f tdepend.f track.f string.f rpos.f scan.f source.f stepz.f timerec.f initrun.f input.f output.f mpi.f sdds.f /home/liyd/epics/extensions/src/SDDS/fortran/O.linux-x86_64/fortran_wrapper.o -Wl,-Bstatic -L/home/liyd/epics/extensions/lib/linux-x86_64 -lmdbmth -lSDDS1 -lmdblib -lz -static-libgcc -lc
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__libc_sigaction':
(.text+0x8a50): multiple definition of `__libc_sigaction'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(sigaction.o):(.text+0x20): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__libc_fsync':
(.text+0x8160): multiple definition of `__libc_fsync'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(fsync.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__connect_nocancel':
(.text+0x7e29): multiple definition of `__connect_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(connect.o):(.text+0x9): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__libc_fcntl':
(.text+0x7ca0): multiple definition of `__libc_fcntl'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(fcntl.o):(.text+0xa0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__fsync_nocancel':
(.text+0x8169): multiple definition of `__fsync_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(fsync.o):(.text+0x9): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `_IO_funlockfile':
(.text+0x89f0): multiple definition of `_IO_funlockfile'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(funlockfile.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__libc_nanosleep':
(.text+0x8280): multiple definition of `__libc_nanosleep'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(nanosleep.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__read':
(.text+0x7b40): multiple definition of `__libc_read'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(read.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__open_nocancel':
(.text+0x82e9): multiple definition of `__open_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(open.o):(.text+0x9): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__lseek_nocancel':
(.text+0x81c9): multiple definition of `__lseek_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(llseek.o):(.text+0x9): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__read_nocancel':
(.text+0x7b49): multiple definition of `__read_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(read.o):(.text+0x9): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `send':
(.text+0x7ff0): multiple definition of `__libc_send'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(send.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__libc_close':
(.text+0x7ba0): multiple definition of `__libc_close'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(close.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__open':
(.text+0x82e0): multiple definition of `__libc_open'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(open.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__write_nocancel':
(.text+0x7ae9): multiple definition of `__write_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(write.o):(.text+0x9): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `waitpid':
(.text+0x8580): multiple definition of `__libc_waitpid'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(waitpid.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__close_nocancel':
(.text+0x7ba9): multiple definition of `__close_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(close.o):(.text+0x9): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__fcntl_nocancel':
(.text+0x7c00): multiple definition of `__fcntl_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(fcntl.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__llseek':
(.text+0x81c0): multiple definition of `__libc_lseek'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(llseek.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `sigaction':
(.text+0x8c40): multiple definition of `__sigaction'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(sigaction.o):(.text+0x210): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__errno_location':
(.text+0x9ed0): multiple definition of `__errno_location'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(errno-loc.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `_IO_funlockfile':
(.text+0x89f0): multiple definition of `__funlockfile'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(funlockfile.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__lll_lock_wait_private':
(.text+0x7920): multiple definition of `__lll_lock_wait_private'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(libc-lowlevellock.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__write':
(.text+0x7ae0): multiple definition of `__libc_write'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(write.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__nanosleep_nocancel':
(.text+0x8289): multiple definition of `__nanosleep_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(nanosleep.o):(.text+0x9): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `connect':
(.text+0x7e20): multiple definition of `__libc_connect'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(connect.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__lll_unlock_wake_private':
(.text+0x79d0): multiple definition of `__lll_unlock_wake_private'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(libc-lowlevellock.o):(.text+0x30): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `raise':
(.text+0x88e0): multiple definition of `raise'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(raise.o):(.text+0x0): first defined here
/usr/local/mpich2/lib/libmpich.a(tcp_init.o): In function `MPID_nem_tcp_get_business_card':
tcp_init.c:(.text+0x3e3): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/home/liyd/epics/extensions/lib/linux-x86_64/libSDDS1.a(SDDS_lzma.o): In function `lzma_open':
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:61: undefined reference to `lzma_easy_encoder'
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:55: undefined reference to `lzma_auto_decoder'
/home/liyd/epics/extensions/lib/linux-x86_64/libSDDS1.a(SDDS_lzma.o): In function `lzma_close':
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:102: undefined reference to `lzma_end'
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:84: undefined reference to `lzma_code'
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:94: undefined reference to `lzma_end'
/home/liyd/epics/extensions/lib/linux-x86_64/libSDDS1.a(SDDS_lzma.o): In function `lzma_read':
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:133: undefined reference to `lzma_code'
/home/liyd/epics/extensions/lib/linux-x86_64/libSDDS1.a(SDDS_lzma.o): In function `lzma_gets':
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:180: undefined reference to `lzma_code'
/home/liyd/epics/extensions/lib/linux-x86_64/libSDDS1.a(SDDS_lzma.o): In function `lzma_write':
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:227: undefined reference to `lzma_code'
/home/liyd/epics/extensions/lib/linux-x86_64/libSDDS1.a(SDDS_lzma.o): In function `lzma_puts':
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:269: undefined reference to `lzma_code'
/home/liyd/epics/extensions/lib/linux-x86_64/libSDDS1.a(SDDS_lzma.o): In function `lzma_putc':
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:311: undefined reference to `lzma_code'
collect2: error: ld returned 1 exit status
make: *** [GENESIS] Error 1
I wonder what I can do to compile it correctly.
Thanks very much,
--Yiding Li
I have modified the Makefile of genesis a littie:
#
# GENESIS makefile
#
#
SOURCE= main.f check.f diagno.f esource.f field.f incoherent.f \
math.f partsim.f pushp.f loadbeam.f loadrad.f magfield.f \
tdepend.f track.f string.f rpos.f scan.f source.f stepz.f \
timerec.f initrun.f input.f output.f mpi.f sdds.f
# output.f \
#
# LIB= -lmdbmth -lSDDS1 -lmdblib -lz
#
#OBJECTS =$(SOURCE:.f=.o)
#
#ifeq ($(EPICS_HOST_ARCH),win32-x86)
#COMPILER = ifort
#else
#COMPILER = g77
#endif
COMPILER = mpif77
#
# executable name
#
#EXECUTABLE = GENESIS
EXECUTABLE = genesis_mpi
#
...................
...............
ifeq ($(EPICS_HOST_ARCH),linux-x86_64)
LIB_DIR = $(HOME)/epics/extensions/lib/linux-x86_64
SDDS_FORTRAN_WRAPPER = $(HOME)/epics/extensions/src/SDDS/fortran/O.linux-x86_64/fortran_wrapper.o
LDFLAGS=$(SDDS_FORTRAN_WRAPPER) -Wl,-Bstatic -L$(LIB_DIR) -lmdbmth -lSDDS1 -lmdblib -lz -static-libgcc -lc
CFLAGS=-Wl,--build-id -O2 -ffixed-line-length-132 -Wall -fno-second-underscore -Wno-globals -Wimplicit -Wno-unused
endif
# targets
#
ifeq ($(EPICS_HOST_ARCH),win32-x86)
...............................
..................
else
GENESIS: $(SOURCE)
$(COMPILER) -g -w -O -Wall $(CFLAGS) -o $(EXECUTABLE) $(SOURCE) $(LDFLAGS)
@echo ' ******* end of linking ****** '
endif
..............................
When I run the make command, I've got the following error message.
mpif77 -g -w -O -Wall -Wl,--build-id -O2 -ffixed-line-length-132 -Wall -fno-second-underscore -Wno-globals -Wimplicit -Wno-unused -o genesis_mpi main.f check.f diagno.f esource.f field.f incoherent.f math.f partsim.f pushp.f loadbeam.f loadrad.f magfield.f tdepend.f track.f string.f rpos.f scan.f source.f stepz.f timerec.f initrun.f input.f output.f mpi.f sdds.f /home/liyd/epics/extensions/src/SDDS/fortran/O.linux-x86_64/fortran_wrapper.o -Wl,-Bstatic -L/home/liyd/epics/extensions/lib/linux-x86_64 -lmdbmth -lSDDS1 -lmdblib -lz -static-libgcc -lc
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
f951: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for Fortran [enabled by default]
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__libc_sigaction':
(.text+0x8a50): multiple definition of `__libc_sigaction'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(sigaction.o):(.text+0x20): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__libc_fsync':
(.text+0x8160): multiple definition of `__libc_fsync'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(fsync.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__connect_nocancel':
(.text+0x7e29): multiple definition of `__connect_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(connect.o):(.text+0x9): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__libc_fcntl':
(.text+0x7ca0): multiple definition of `__libc_fcntl'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(fcntl.o):(.text+0xa0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__fsync_nocancel':
(.text+0x8169): multiple definition of `__fsync_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(fsync.o):(.text+0x9): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `_IO_funlockfile':
(.text+0x89f0): multiple definition of `_IO_funlockfile'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(funlockfile.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__libc_nanosleep':
(.text+0x8280): multiple definition of `__libc_nanosleep'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(nanosleep.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__read':
(.text+0x7b40): multiple definition of `__libc_read'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(read.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__open_nocancel':
(.text+0x82e9): multiple definition of `__open_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(open.o):(.text+0x9): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__lseek_nocancel':
(.text+0x81c9): multiple definition of `__lseek_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(llseek.o):(.text+0x9): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__read_nocancel':
(.text+0x7b49): multiple definition of `__read_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(read.o):(.text+0x9): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `send':
(.text+0x7ff0): multiple definition of `__libc_send'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(send.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__libc_close':
(.text+0x7ba0): multiple definition of `__libc_close'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(close.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__open':
(.text+0x82e0): multiple definition of `__libc_open'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(open.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__write_nocancel':
(.text+0x7ae9): multiple definition of `__write_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(write.o):(.text+0x9): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `waitpid':
(.text+0x8580): multiple definition of `__libc_waitpid'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(waitpid.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__close_nocancel':
(.text+0x7ba9): multiple definition of `__close_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(close.o):(.text+0x9): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__fcntl_nocancel':
(.text+0x7c00): multiple definition of `__fcntl_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(fcntl.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__llseek':
(.text+0x81c0): multiple definition of `__libc_lseek'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(llseek.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `sigaction':
(.text+0x8c40): multiple definition of `__sigaction'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(sigaction.o):(.text+0x210): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__errno_location':
(.text+0x9ed0): multiple definition of `__errno_location'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(errno-loc.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `_IO_funlockfile':
(.text+0x89f0): multiple definition of `__funlockfile'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(funlockfile.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__lll_lock_wait_private':
(.text+0x7920): multiple definition of `__lll_lock_wait_private'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(libc-lowlevellock.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__write':
(.text+0x7ae0): multiple definition of `__libc_write'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(write.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__nanosleep_nocancel':
(.text+0x8289): multiple definition of `__nanosleep_nocancel'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(nanosleep.o):(.text+0x9): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `connect':
(.text+0x7e20): multiple definition of `__libc_connect'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(connect.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `__lll_unlock_wake_private':
(.text+0x79d0): multiple definition of `__lll_unlock_wake_private'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(libc-lowlevellock.o):(.text+0x30): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `raise':
(.text+0x88e0): multiple definition of `raise'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libc.a(raise.o):(.text+0x0): first defined here
/usr/local/mpich2/lib/libmpich.a(tcp_init.o): In function `MPID_nem_tcp_get_business_card':
tcp_init.c:(.text+0x3e3): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/home/liyd/epics/extensions/lib/linux-x86_64/libSDDS1.a(SDDS_lzma.o): In function `lzma_open':
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:61: undefined reference to `lzma_easy_encoder'
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:55: undefined reference to `lzma_auto_decoder'
/home/liyd/epics/extensions/lib/linux-x86_64/libSDDS1.a(SDDS_lzma.o): In function `lzma_close':
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:102: undefined reference to `lzma_end'
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:84: undefined reference to `lzma_code'
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:94: undefined reference to `lzma_end'
/home/liyd/epics/extensions/lib/linux-x86_64/libSDDS1.a(SDDS_lzma.o): In function `lzma_read':
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:133: undefined reference to `lzma_code'
/home/liyd/epics/extensions/lib/linux-x86_64/libSDDS1.a(SDDS_lzma.o): In function `lzma_gets':
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:180: undefined reference to `lzma_code'
/home/liyd/epics/extensions/lib/linux-x86_64/libSDDS1.a(SDDS_lzma.o): In function `lzma_write':
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:227: undefined reference to `lzma_code'
/home/liyd/epics/extensions/lib/linux-x86_64/libSDDS1.a(SDDS_lzma.o): In function `lzma_puts':
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:269: undefined reference to `lzma_code'
/home/liyd/epics/extensions/lib/linux-x86_64/libSDDS1.a(SDDS_lzma.o): In function `lzma_putc':
/home/liyd/epics/extensions/src/SDDS/SDDSlib/O.linux-x86_64/../SDDS_lzma.c:311: undefined reference to `lzma_code'
collect2: error: ld returned 1 exit status
make: *** [GENESIS] Error 1
I wonder what I can do to compile it correctly.
Thanks very much,
--Yiding Li