Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - apache22 failed to build.: (11 Items)
   
apache22 failed to build.  
Hello,

When I run 'bmake install' under the www/apache22 directory it failed with the output below:

ouch mod_mime_magic.lo
mod_mime_magic.c:229: error: conflicting types for 'mcheck'
/usr/qnx640/target/qnx6/usr/include/malloc.h:147: error: previous declaration of 'mcheck' was here
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgsrc/www/apache22/work/httpd-2.2.11/modules/metadata
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgsrc/www/apache22/work/httpd-2.2.11/modules/metadata
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgsrc/www/apache22/work/httpd-2.2.11/modules
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgsrc/www/apache22/work/httpd-2.2.11
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgsrc/www/apache22
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgsrc/www/apache22


-- Current pkg_info:
bootstrap-mk-files-20090114 *.mk files for the bootstrap bmake utility
install-sh-20070712 install script compatible with the BSD install program
bmake-20081111      Portable (autoconf) version of NetBSD 'make' utility
nawk-20050424nb3    Brian Kernighan's pattern-directed scanning and processing language
nbsed-20040821nb1   NetBSD-current's sed(1)
pkg_install-20090205 Package management and administration tools for pkgsrc
digest-20080510     Message digest wrapper utility
libtool-base-1.5.26 Generic shared library support script (the script itself)
bzip2-1.0.5         Block-sorting file compressor
kbproto-1.0.3       KB extension headers from X.org
xproto-7.0.14       X protocol and ancillary headers from Xorg X11
pkg-config-0.23     System for managing library compile/link flags
perl-5.10.0nb5      Practical Extraction and Report Language
libiconv-1.12nb1    Character set conversion library
apr-1.3.3           Apache Portable Runtime
pkg_install-info-4.5nb3 Standalone GNU info file installation utility
gettext-lib-0.14.6  Internationalized Message Handling Library (libintl)
gettext-tools-0.14.6nb1 Tools for providing messages in different languages
gmake-3.81          GNU version of 'make' utility
expat-2.0.1         XML parser library written in C
apr-util-1.3.4nb1   Apache Portable Runtime utilities
zlib-1.2.3          General purpose data compression library

Any hints?

Thank,
Greg

Re: apache22 failed to build.  
On Fri, Apr 17, 2009 at 10:17:05AM -0400, Greg Morehead wrote:
> Hello,
> 
> When I run 'bmake install' under the www/apache22 directory it failed with the output below:
> 
> ouch mod_mime_magic.lo
> mod_mime_magic.c:229: error: conflicting types for 'mcheck'
> /usr/qnx640/target/qnx6/usr/include/malloc.h:147: error: previous declaration of 'mcheck' was here
> *** Error code 1

This is supposed to be handled by the 'CCFLAGS.QNX+= -D__NO_EXT_QNX'
line in www/apache22/Makefile.  Do you see that in the compile filags
when mod_mime_magic.c is compiled?  Are you running released 6.4.0?
The define for __EXT_QNX in <sys/platform.h> should look like the
following.


#if defined(_QNX_SOURCE) || \
    (defined(__EXT) && !defined(__NO_EXT_QNX) && !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE) && (_POSIX_C_SOURCE+0 <= 0))
#define __EXT_QNX
#endif
Re: apache22 failed to build.  
The Makefile had CCFLAGS.QNX instead of CFLAGS.QNX.  The platform.h file looks good.

I changed the Makefile, however, when I attempted 'bmake install' I still got the same failure.

Do I need to do a 'bmake clean' first?
Re: apache22 failed to build.  
On Fri, Apr 17, 2009 at 11:48:05AM -0400, Greg Morehead wrote:
> The Makefile had CCFLAGS.QNX instead of CFLAGS.QNX.  The platform.h file looks good.

Not sure where that came from.  It's CFLAGS in our svn repo.

> 
> I changed the Makefile, however, when I attempted 'bmake install' I still got the same failure.
> 
> Do I need to do a 'bmake clean' first?

Yes, you'll need to re-run configure.

-seanb
Re: apache22 failed to build.  
I'm sorry, I got that backwards.

It had CFLAGS  not CCFLAGS.

Your original response stated it should be CCFLAGS.  Now that I've confused everything, what do you think it should be?
Re: apache22 failed to build.  
A bmake clean then install stall had the same error.  
Re: apache22 failed to build.  
On Fri, Apr 17, 2009 at 01:39:35PM -0400, Greg Morehead wrote:
> A bmake clean then install stall had the same error.  

Please update your HEAD_640/pkgsrc/www/apache22 and
try again.

-seanb
Re: apache22 failed to build.  
We go to a different spot before it failed.

=> Unwrapping files-to-be-installed.
INFO: [subst.mk:unwrap] Nothing changed in ./srclib/pcre/pcre-config.
/usr/pkg/bin/nbsed "s#@PKG_SYSCONFDIR@#/usr/pkg/etc/httpd#g"                     < /usr/pkgsrc/pkgsrc/www/apache22/files
/mkcert.sh > /usr/pkgsrc/pkgsrc/www/apache22/work/mkcert
=> Creating /usr/pkgsrc/pkgsrc/www/apache22/work/apache
===> Installing for apache-2.2.11nb1
=> Running PRE-INSTALL script actions
===========================================================================
The following groups need to be created for apache-2.2.11nb1:

        www

===========================================================================
===========================================================================
The following users need to be created for apache-2.2.11nb1:

        www: www, /nonexistent, /bin/false

===========================================================================
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgsrc/www/apache22
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgsrc/www/apache22
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgsrc/www/apache22
#
Re: apache22 failed to build.  
On Tue, Apr 21, 2009 at 09:52:57AM -0400, Greg Morehead wrote:
> We go to a different spot before it failed.
> 
> => Unwrapping files-to-be-installed.
> INFO: [subst.mk:unwrap] Nothing changed in ./srclib/pcre/pcre-config.
> /usr/pkg/bin/nbsed "s#@PKG_SYSCONFDIR@#/usr/pkg/etc/httpd#g"                     < /usr/pkgsrc/pkgsrc/www/apache22/
files/mkcert.sh > /usr/pkgsrc/pkgsrc/www/apache22/work/mkcert
> => Creating /usr/pkgsrc/pkgsrc/www/apache22/work/apache
> ===> Installing for apache-2.2.11nb1
> => Running PRE-INSTALL script actions
> ===========================================================================
> The following groups need to be created for apache-2.2.11nb1:
> 
>         www
> 
> ===========================================================================
> ===========================================================================
> The following users need to be created for apache-2.2.11nb1:
> 
>         www: www, /nonexistent, /bin/false
> 
> ===========================================================================

Just do as instructed and you should be fine:

# echo "www:x:7" >> /etc/group 
  where '7' is a new, non existent group

# echo "www:x:16:7:www:/nonexistent:/bin/false" >> /etc/passwd
  where '16' is a new, non existent user and '7' is the same
  group from your /etc/group entry.

-seanb
Re: apache22 failed to build.  
> 
> Just do as instructed and you should be fine:
> 
> # echo "www:x:7" >> /etc/group 
>   where '7' is a new, non existent group

Missed a colon
# echo "www:x:7:" >> /etc/group 
Re: apache22 failed to build.  
That did it!  Thank you.

I am successfully serving up a simple HTML page from apache!