You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Howarth, Richard" <rh...@sgb.co.uk> on 2002/09/12 17:17:10 UTC

RE: [users@httpd] Error compiling Apache 2.0.40 on DG/UX R4.20 MU 07

I managed to get this far by 
1) defining _POSIX4A_DRAFT10_SOURCE, which enabled some defines in
<sys/pthread.h>
2) adding "-lthread"

Now the compile almost gets there, but chokes at the link phase with:
=============================
/bin/ksh /sgb/source/httpd-2.0.40/srclib/apr/libtool --silent --mode=link
gcc
-g -O2    -DDGUX -D_POSIX4A_DRAFT10_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER
-
I/sgb/source/httpd-2.0.40/srclib/apr/include
-I/sgb/source/httpd-2.0.40/srclib/
apr-util/include -I/sgb/source/httpd-2.0.40/srclib/apr-util/xml/expat/lib
-I. -
I/sgb/source/httpd-2.0.40/os/unix
-I/sgb/source/httpd-2.0.40/server/mpm/prefork
 -I/sgb/source/httpd-2.0.40/modules/http
-I/sgb/source/httpd-2.0.40/modules/fil
ters -I/sgb/source/httpd-2.0.40/modules/proxy
-I/sgb/source/httpd-2.0.40/includ
e -I/sgb/source/httpd-2.0.40/modules/dav/main -export-dynamic
-L/sgb/source/htt
pd-2.0.40/srclib/apr-util/xml/expat/lib   -o httpd  modules.lo
modules/aaa/mod
_access.la modules/aaa/mod_auth.la modules/filters/mod_include.la
modules/logge
rs/mod_log_config.la modules/metadata/mod_env.la
modules/metadata/mod_setenvif.
la modules/http/mod_http.la modules/http/mod_mime.la
modules/generators/mod_sta
tus.la modules/generators/mod_autoindex.la modules/generators/mod_asis.la
modul
es/generators/mod_cgi.la modules/mappers/mod_negotiation.la
modules/mappers/mod
_dir.la modules/mappers/mod_imap.la modules/mappers/mod_actions.la
modules/mapp
ers/mod_userdir.la modules/mappers/mod_alias.la modules/mappers/mod_so.la
serve
r/mpm/prefork/libprefork.la server/libmain.la os/unix/libos.la
/sgb/source/htt
pd-2.0.40/srclib/pcre/libpcre.la
/sgb/source/httpd-2.0.40/srclib/apr-util/libap
rutil.la /sgb/source/httpd-2.0.40/srclib/apr-util/xml/expat/lib/libexpat.la
/sg
b/source/httpd-2.0.40/srclib/apr/libapr.la -lm -lsocket -lnsl -lthread -ldl
gcc -g -O2 -DDGUX -D_POSIX4A_DRAFT10_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER
-I
/sgb/source/httpd-2.0.40/srclib/apr/include
-I/sgb/source/httpd-2.0.40/srclib/a
pr-util/include -I/sgb/source/httpd-2.0.40/srclib/apr-util/xml/expat/lib -I.
-I
/sgb/source/httpd-2.0.40/os/unix
-I/sgb/source/httpd-2.0.40/server/mpm/prefork
-I/sgb/source/httpd-2.0.40/modules/http
-I/sgb/source/httpd-2.0.40/modules/filt
ers -I/sgb/source/httpd-2.0.40/modules/proxy
-I/sgb/source/httpd-2.0.40/include
 -I/sgb/source/httpd-2.0.40/modules/dav/main -o .libs/httpd modules.o
-L/sgb/s
ource/httpd-2.0.40/srclib/apr-util/xml/expat/lib
modules/aaa/.libs/mod_access.a
l modules/aaa/.libs/mod_auth.al modules/filters/.libs/mod_include.al
modules/lo
ggers/.libs/mod_log_config.al modules/metadata/.libs/mod_env.al
modules/metadat
a/.libs/mod_setenvif.al modules/http/.libs/mod_http.al
modules/http/.libs/mod_m
ime.al modules/generators/.libs/mod_status.al
modules/generators/.libs/mod_auto
index.al modules/generators/.libs/mod_asis.al
modules/generators/.libs/mod_cgi.
al modules/mappers/.libs/mod_negotiation.al modules/mappers/.libs/mod_dir.al
mo
dules/mappers/.libs/mod_imap.al modules/mappers/.libs/mod_actions.al
modules/ma
ppers/.libs/mod_userdir.al modules/mappers/.libs/mod_alias.al
modules/mappers/.
libs/mod_so.al server/mpm/prefork/.libs/libprefork.al
server/.libs/libmain.al o
s/unix/.libs/libos.al /sgb/source/httpd-2.0.40/srclib/pcre/.libs/libpcre.al
/sg
b/source/httpd-2.0.40/srclib/apr-util/.libs/libaprutil.so
/sgb/source/httpd-2.0
.40/srclib/apr-util/xml/expat/lib/.libs/libexpat.so
/sgb/source/httpd-2.0.40/sr
clib/apr/.libs/libapr.so -lm -lsocket -lnsl -lthread -ldl  -L/apache/lib
Undefined                       first referenced
 symbol                             in file
apr_threadkey_private_delete        server/.libs/libmain.al(exports.lo)
UX:ld: ERROR: .libs/httpd: fatal error: Symbol referencing errors. No output
wr
itten to .libs/httpd
make[1]: *** [httpd] Error 1
=============================

Apart from being the longest command I've ever seen it looks ok.

Richard Howarth

> -----Original Message-----
> From: Howarth, Richard [mailto:rhowarth@sgb.co.uk]
> Sent: 12 September 2002 12:27
> To: Apache Users mailling list (E-mail)
> Subject: [users@httpd] Error compiling Apache 2.0.40 on DG/UX 
> R4.20 MU07
> 
> 
> Config reports system type: i586-dg-dguxR4.20MU07
> gcc version: 2.7.2
> 
> After configuring with no additional directives I'm getting this error
> during
> compilation:
> --------------------------------------------------------------
> --------------
> ----
> /bin/ksh /path/source/httpd-2.0.40/srclib/apr/libtool --silent
> --mode=compile gcc
>  -g -O2   -DHAVE_CONFIG_H -DDGUX   -I../../include 
> -I../../include/arch/unix
> -I.
> ./../include/arch/unix  -c dir.c && touch dir.lo
> In file included from dir.c:57:
> ../../include/apr_portable.h:173: parse error before `pthread_mutex_t'
> ../../include/apr_portable.h:173: warning: no semicolon at 
> end of struct or
> unio
> n
> ../../include/apr_portable.h:183: parse error before `apr_os_thread_t'
> ../../include/apr_portable.h:183: warning: data definition 
> has no type or
> storag
> e class
> ../../include/apr_portable.h:184: parse error before 
> `apr_os_threadkey_t'
> ../../include/apr_portable.h:184: warning: data definition 
> has no type or
> storag
> e class
> ../../include/apr_portable.h:307: parse error before `*'
> ../../include/apr_portable.h:315: parse error before `*'
> ../../include/apr_portable.h:325: parse error before `apr_os_thread_t'
> ../../include/apr_portable.h:335: parse error before 
> `apr_os_threadkey_t'
> ../../include/apr_portable.h:340: parse error before 
> `apr_os_thread_current'
> ../../include/apr_portable.h:340: warning: data definition 
> has no type or
> storag
> e class
> ../../include/apr_portable.h:347: parse error before `tid1'
> make[4]: *** [dir.lo] Error 1
> --------------------------------------------------------------
> --------------
> ----
> 
> I created a small program which defines the structure where 
> the first parse
> error is located, and this compiles fine.
> 
> I'd be grateful for an indication of where to start looking, 
> or clues how to
> break
> it down into a manageable scope.
> 
> Richard Howarth


IMPORTANT INFORMATION & CONFIDENTIALITY NOTICE 

The information in this Email is confidential and may be legally privileged.
It is intended solely for the 
named recipient.  Access to this e-mail by anyone else is unauthorised.  If
you are not the intended recipient 
or the employee or agent responsible for delivering the message to the
recipient named, please note that any 
use, disclosure, copying, distribution of this Email or any action taken or
omitted to be taken in reliance 
on it is prohibited.  If you are not the intended recipient, please inform
us by returning a copy of the 
Email with the subject line marked "wrong address" and then deleting the
Email, and any attachments and any 
copies of it. 

Any questions should be directed to mailto:administrator@harsco.com

Harsco uses regularly updated anti-virus software in an attempt to reduce
the possibility of infection.
However we do not guarantee that any attachments to this email are virus
free.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org