build issue on AIX 6.1

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
wrenashe
Posts: 20
Joined: Tue, 2013-10-08, 11:24

build issue on AIX 6.1

#1 Post by wrenashe »

I am building dcmtk on aix 6.1, while got problems.

in CMakefileCache.txt, I have
//Have include stdio.h
HAVE_STDIO_H:INTERNAL=1

While, the build says something like this,
build@aix03 77>make
Scanning dependencies of target ofstd_obj
[ 0%] Building CXX object ofstd/libsrc/CMakeFiles/ofstd_obj.dir/ofcmdln.cc.o
"/work/dcmtk_build/dcmtk/ofstd/include/dcmtk/ofstd/offile.h", line 536.6: 1540-0130 (S) "::setlinebuf" is not declared.
"/work/dcmtk_build/dcmtk/ofstd/include/dcmtk/ofstd/offile.h", line 650.5: 1540-0130 (S) "::setbuffer" is not declared.
make: The error code from the last command is 1.


Stop.
make: The error code from the last command is 2.


Stop.
make: The error code from the last command is 2.


Stop.
build@aix03 78>
What did I do wrong?

Thanks.
Last edited by wrenashe on Mon, 2014-05-19, 10:15, edited 1 time in total.

J. Riesmeier
DCMTK Developer
Posts: 2509
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: build issue on AIX 6.1

#2 Post by J. Riesmeier »

We haven't tested DCMTK on AIX for a while (see INSTALL file for a list of supported/tested platforms).

However, according to the AIX documentation, both functions should be available (as part of "stdio.h").
Maybe, the "::" is the reason? Did you check whether "stdio.h" is really included on your system and how the two functions are defined in this file?

wrenashe
Posts: 20
Joined: Tue, 2013-10-08, 11:24

Re: build issue on AIX 6.1

#3 Post by wrenashe »

I had the log in more detail,

[ 0%] Building CXX object ofstd/libsrc/CMakeFiles/ofstd_obj.dir/ofcmdln.cc.o
cd /work/dcmtk-build/dcmtk/ofstd/libsrc && /bin/xlC_r -+ -DDCMTK_BUILD_IN_PROGRESS -DUSE_NULL_SAFE_OFSTRING -D_REENTRANT -Dofstd_EXPORTS -O2 -fvisibility=hidden -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -I/work/dcmtk-build/dcmtk/config/include -I/work/dcmtk-build/dcmtk/ofstd/include -I/work/dcmtk-build/dcmtk/oflog/include -I/work/dcmtk-build/dcmtk/dcmdata/include -I/work/dcmtk-build/dcmtk/dcmimgle/include -I/work/dcmtk-build/dcmtk/dcmimage/include -I/work/dcmtk-build/dcmtk/dcmjpeg/libijg8 -I/work/dcmtk-build/dcmtk/dcmjpeg/libijg12 -I/work/dcmtk-build/dcmtk/dcmjpeg/libijg16 -I/work/dcmtk-build/dcmtk/dcmjpeg/include -I/work/dcmtk-build/dcmtk/dcmjpls/include -I/work/dcmtk-build/dcmtk/dcmnet/include -I/work/dcmtk-build/dcmtk/dcmpstat/include -I/work/dcmtk-build/dcmtk/dcmqrdb/include -I/work/dcmtk-build/dcmtk/dcmsign/include -I/work/dcmtk-build/dcmtk/dcmsr/include -I/work/dcmtk-build/dcmtk/dcmtls/include -I/work/dcmtk-build/dcmtk/dcmwlm/include -o CMakeFiles/ofstd_obj.dir/ofcmdln.cc.o -c /work/dcmtk-build/dcmtk/ofstd/libsrc/ofcmdln.cc
"/work/dcmtk-build/dcmtk/ofstd/include/dcmtk/ofstd/offile.h", line 536.5: 1540-0130 (S) "::setlinebuf" is not declared.
"/work/dcmtk-build/dcmtk/ofstd/include/dcmtk/ofstd/offile.h", line 650.5: 1540-0130 (S) "::setbuffer" is not declared.

J. Riesmeier
DCMTK Developer
Posts: 2509
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: build issue on AIX 6.1

#4 Post by J. Riesmeier »

I can only repeat: 'Maybe, the "::" is the reason? Did you check whether "stdio.h" is really included on your system and how the two functions are defined in this file?'

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest