a - oflist.o
a - ofstring.o
a - ofcmdln.o
a - ofconapp.o
a - offname.o
a - ofconsol.o
a - ofthread.o
a - ofcond.o
a - ofstd.o
a - ofcrc32.o
a - ofdate.o
a - oftime.o
a - ofdatime.o
a - ofconfig.o
ranlib libofstd.a
make[2]: se sale del directorio «/home/leonardo/Desarrollo/dcmtk/dcmtk-3.6.0-shared/ofstd/libsrc»
(cd tests && make ARCH="" all)
make[2]: se ingresa al directorio «/home/leonardo/Desarrollo/dcmtk/dcmtk-3.6.0-shared/ofstd/tests»
c++ -DHAVE_CONFIG_H -DUSE_NULL_SAFE_OFSTRING -DNDEBUG -c -I. -I. -I../include -I../../config/include -I../include \
-O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -Wall tststack.cc
c++ -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -Wall -L../libsrc -o tststack tststack.o -lofstd -lrt -lpthread -lnsl
../libsrc/libofstd.so: undefined reference to `sem_init'
../libsrc/libofstd.so: undefined reference to `pthread_mutex_trylock'
../libsrc/libofstd.so: undefined reference to `pthread_rwlock_trywrlock'
../libsrc/libofstd.so: undefined reference to `pthread_key_create'
../libsrc/libofstd.so: undefined reference to `pthread_rwlock_rdlock'
../libsrc/libofstd.so: undefined reference to `pthread_rwlock_tryrdlock'
../libsrc/libofstd.so: undefined reference to `sem_destroy'
../libsrc/libofstd.so: undefined reference to `pthread_getspecific'
../libsrc/libofstd.so: undefined reference to `pthread_rwlock_wrlock'
../libsrc/libofstd.so: undefined reference to `pthread_create'
../libsrc/libofstd.so: undefined reference to `pthread_rwlock_destroy'
../libsrc/libofstd.so: undefined reference to `pthread_rwlock_init'
../libsrc/libofstd.so: undefined reference to `pthread_rwlock_unlock'
../libsrc/libofstd.so: undefined reference to `sem_post'
../libsrc/libofstd.so: undefined reference to `sem_trywait'
../libsrc/libofstd.so: undefined reference to `pthread_setspecific'
../libsrc/libofstd.so: undefined reference to `sem_wait'
../libsrc/libofstd.so: undefined reference to `pthread_join'
collect2: ld devolvió el estado de salida 1
make[2]: *** [tststack] Error 1
I need to do these changes because I have to compile a shared library.
Officially, building shared libraries with GNU autoconf (aka configure) is not supported by the DCMTK, i.e. you have to adjust the compiler/linker flags as needed (and as you did). Alternatively, you could use CMake (also on Unix) with the latest Snapshot and CMake option BUILD_SHARED_LIBS enabled.