[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
compile problems for 2.0.b3 on HPUX 10.20
From: |
Martin Jost |
Subject: |
compile problems for 2.0.b3 on HPUX 10.20 |
Date: |
Tue, 05 Mar 2002 20:02:40 +0100 |
Hello
I'm trying to compile cfengine 2.0.b3 on HPUX 10.20 using the HP
ANSI-C-Compiler.
I got Berkely-DB (3.0.55) and SSL (0.9.6c) from the relevant sources.
(Please ask me for details like config.log if needed; I will send it
separately if needed, but I don't want to include all this here)
This is my show-stopper:
cc: "cfexecd.c", line 273: error 1000: Unexpected symbol: "tid".
cc: "cfexecd.c", line 273: error 1573: Type of "tid" is undefined due
to an illegal declaration.
cc: "cfexecd.c", line 320: error 1588: "PTHREADDEFAULTS" undefined.
cc: "cfexecd.c", line 321: error 1588: "PTHREAD_CREATE_DETACHED"
undefined.
cc: "cfexecd.c", line 327: error 1588: "_SC_THREAD_STACK_MIN"
undefined.
Yes, for sure. HPUX 10.20 (IIRC) simply doesn't have pthreads. (Please
correct me if I'm wrong)
configure finds this:
conf.h:
/* Define if you have the <pthread.h> header file. */
/* #undef HAVE_PTHREAD_H */
But in cfexecd.c this information isn't used at this point.
In addition, there are some hickups:
1
-----------------------------------------------------------------------------------
During configure I get:
configure: WARNING:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-n OpenSSL version installed seems to be
OpenSSL 0.9.6c 21 dec 2001
Version should be 0.9.6b or later
configure: WARNING:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This is just funny, 0.9.6c is detected, but it wants 0.9.6b (_or_
_later_) which it surely is.
I just ignored this. Maybe the check needs a fix.
2
-----------------------------------------------------------------------------------
During compile link-steps fail, because 'alloca' isn't found.
This is a known problem on HPUX using HP-cc. '-lPW' needs to be added
to the link line.
It would be fine if configure could do this automagically.
3
-----------------------------------------------------------------------------------
I get
cc: warning 422: Unknown option "-Wreturn-type" ignored.
cc: warning 422: Unknown option "-Wmissing-prototypes" ignored.
cc: warning 422: Unknown option "-Wuninitialized" ignored.
for each file compiled. This smells like gcc.
configure _knows_ that it isn't using gcc:
"checking whether we are using the GNU C compiler... no"
It would be nice, if those weren't used, if another compiler is
detected.
Do you have any tips for me ?
Especially on the first one ?!
Thanks
Martin
- compile problems for 2.0.b3 on HPUX 10.20,
Martin Jost <=