On Thu, 30 Sep 2010 08:34:10 +0200, "Bernd Macheleidt" <> wrote:
> Hi,
>
> I have tried to compile log4cplus under hpux ver M-11/16/88f using aCC from
> HP. Configure runs fine and without problems, but make produces the
> following error :
>
>
> make
> No suffix list.
> Making all in include
> No suffix list.
> No suffix list.
> cd .. && make am--refresh
> No suffix list.
> No suffix list.
> Making all in src
> No suffix list.
> cd .. && make am--refresh
> No suffix list.
> No suffix list.
> source='appenderattachableimpl.cxx'
> object='appenderattachableimpl.lo' libtool=yes \
> DEPDIR=.deps depmode=hp2 /bin/sh ../depcomp \
> /bin/sh ../libtool --tag=CXX --mode=compile
> aCC -DHAVE_CONFIG_H -DINSIDE_LOG4CPLUS -I../include -I../include -DNDEBUG -D
> _REENTRANT -no-suppress -g -v -D_REENTRANT -mthreads -c -o
> appenderattachableimpl.lo appenderattachableimpl.cxx
> libtool: compile:
> aCC -DHAVE_CONFIG_H -DINSIDE_LOG4CPLUS -I../include -I../include -DNDEBUG -
> D_REENTRANT -g -v -D_REENTRANT -mthreads -c +Maked
> appenderattachableimpl.cxx -DPIC -o .libs/appenderattachableimpl.o
> aCC: warning 901: unknown option: `-hreads': use +help for online
> documentation.
> CXXOPTS=-AA -O2 -mt -D_FILE_OFFSET_BITS=64 -I. -I/home/evcfs/entw/main -I/ho
> me/evcfs/entw/libs/libtos -I/home/evcfs/entw/libs/libutil -I/home/evcfs/entw
> /libs/sqlite -L/home/evcfs/entw/libs -L/home/evcfs/libs -ext
> /opt/aCC/lbin/ecom -architecture 32 -makedepend file -ia64abi all -inst
> compiletime -ext on -sysdir /usr/include -test namespaces -koenig_lookup
> on -ansi_for_scope on -inline_power 2 -link_type dynamic -fpeval
> float -tls_dyn on -mt on -o .libs/appenderattachableimpl.o -xmath_ielf_path
> /opt/aCC/lib/hpux32/libmielf -target_os
> 11.31 -I. -I/home/evcfs/entw/main -I/home/evcfs/entw/libs/libtos -I/home/evc
> fs/entw/libs/libutil -I/home/evcfs/entw/libs/sqlite -I../include -I../includ
> e --sys_include /opt/aCC/include_std --sys_include
> /opt/aCC/include_std/iostream_compat --sys_include
> /usr/include --sys_include
> /usr -D_HP_IA64ABI -D__hpux -D__unix -D__ia64=1 -D_BIG_ENDIAN=1 -D__STDCPP__
> -D_HP_NAMESPACE_STD -D_ILP32 -D__cplusplus=199711L -D_INCLUDE__STDC_A1_SOUR
> CE -D__HP_aCC=61500 -D_HP_INSTANTIATE_T_IN_LIB -D_REENTRANT -D_RWSTD_MULTI_T
> HREAD -D_RW_MULTI_THREAD -D__HPACC_FIXED_REFCNT_MUTEX -D_HPUX_SOURCE -D_POSI
> X_C_SOURCE=199506L -D_INCLUDE_LONGLONG -D_INLINE_ASM -D__BUILTIN_MILLI -D_BI
> ND_LIBCALLS -D_Math_errhandling=MATH_ERREXCEPT -D_FLT_EVAL_METHOD=0 -D_FILE_
> OFFSET_BITS=64 -DHAVE_CONFIG_H -DINSIDE_LOG4CPLUS -DNDEBUG -D_REENTRANT -D_R
> EENTRANT -DPIC -debug debugG1 -ucode
> hdriver=optlevel%2% -plusolistoption -Ol06all! -plusolistoption -Ol12indirec
> t! -plusolistoption -Ol13moderate! -plusooption -Oq02,al,ag,cn,sz,ic,vo,Mf,P
> o,es,rs,Rf,Pr,sp,In,cl,om,vc,pi,fa,Pe,rr,pa,pv,nf,cp,Lx,Pg,ug,lu,lb,uj,dn,sg
> ,pt,kt,em,np,ar,rp,dl,Fs,bp,wp,Pc,mp,lr,cx,cr,pi,so,Rc,fa,ft,fe,ap,st,lc,Bl,
> sr,ib,pl,sd,ll,rl,dl,Lt,ol,fl,lm,ts,rd,Dp,If! appenderattachableimpl.cxx
> "../include/log4cplus/ndc.h", line 274: error #3389: redeclaration cannot
> add
> dllexport/dllimport to "log4cplus::getNDC" (declared at line 266)
> LOG4CPLUS_EXPORT NDC& getNDC();
> ^
>
> 1 error detected in the compilation of "appenderattachableimpl.cxx".
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
> Stop.
>
>
> Did anyone get this error before and found out how to solve this problem ?
> Any help would be great.
What version of the source are you using?
Please try to change the code around line 40 of ndc.h, before the class
NDC declaration to this:
#if 1 || defined (_MSC_VER)
LOG4CPLUS_EXPORT NDC& getNDC();
#endif
IOW, make the declaration unconditional.
--
VH
|