DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Mon, 2018-04-23, 18:39

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon, 2017-10-02, 13:04 
Offline

Joined: Thu, 2014-08-28, 08:30
Posts: 8
Location: Shanghai, China
When I build dcmtk-3.6.2 with gcc-6.3.0 on Debian 9.1, some error found.

1. undefined reference
Code:
c++ -g -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -Wall -fPIC -L../libsrc -L../../ofstd/libsrc -L../../oflog/libsrc -L../../dcmdata/libsrc -L../../dcmiod/libsrc -L../../dcmfg/libsrc -Wl,-rpath,/usr/local/libiconv-1.13.1/lib -L/usr/local/libiconv-1.13.1/lib -Wl,-rpath,/usr/local/libpng-1.4.3/lib -L/usr/local/libpng-1.4.3/lib -Wl,-rpath,/usr/local/tiff-3.9.4/lib -L/usr/local/tiff-3.9.4/lib -Wl,-rpath,/usr/local/zlib-1.2.8/lib -L/usr/local/zlib-1.2.8/lib  -o tests tests.o tutils.o -ldcmseg -ldcmfg -ldcmiod -ldcmdata -loflog -lofstd -lz -liconv -lcharset -lm -lrt -lpthread -lnsl
../../dcmfg/libsrc/libdcmfg.so: undefined reference to `FGParametricMapFrameType::FGParametricMapFrameType()'
../../dcmfg/libsrc/libdcmfg.so: undefined reference to `FGIdentityPixelValueTransformation::FGIdentityPixelValueTransformation()'
../../dcmfg/libsrc/libdcmfg.so: undefined reference to `FGFrameAnatomy::FGFrameAnatomy()'

And I found objs in dcmfg/libsrc/Makefile.in dose not contain fgparametricmapframetype.o fgidentpixeltransform.o fgframeanatomy.o.

2. multiple definition
Code:
gcc -shared -o libdcmpmap.so dpmtypes.o dpmtypes.o dpmmodparametricmapseries.o dpmmodparametricmapimage.o dpmparametricmapbase.o dpmparametricmapiod.o
dpmtypes.o:(.bss+0x0): multiple definition of `DCM_dcmpmapLogger'

objs in dcmpmap/libsrc/Makefile.in contains two dpmtypes.o.
Code:
objs = dpmtypes.o dpmtypes.o dpmmodparametricmapseries.o dpmmodparametricmapimage.o dpmparametricmapbase.o dpmparametricmapiod.o


Top
 Profile  
 
PostPosted: Mon, 2017-10-02, 13:48 
Offline
DCMTK Developer

Joined: Fri, 2004-11-05, 13:47
Posts: 1665
Location: Oldenburg, Germany
Hi,

oops, my fault. I wonder that it has not been come to the surface earlier. It's fixed now in commit #e6a16c.

Sorry for the inconvenience.

Best,
Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group