Bug 234359 - www/apache24: Fails to build (unixd.c:245:25: error: variable has incomplete type)
Summary: www/apache24: Fails to build (unixd.c:245:25: error: variable has incomplete ...
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-apache (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-24 14:09 UTC by Oleg Streejak
Modified: 2021-12-21 20:44 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (apache)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Streejak 2018-12-24 14:09:01 UTC
after binary upgrade to 12.0-RELEASE-p1 can not build it. It exits with the error:

===>  Building for apache24-2.4.37
--- all-recursive ---
Making all in srclib
--- all-recursive ---
Making all in os
--- all-recursive ---
Making all in unix
--- all-recursive ---
--- unixd.lo ---
/usr/local/share/apr/build-1/libtool --silent --mode=compile cc    -O2 -pipe -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing      -DLIBICONV_PLUG   -I. -I/usr/ports/www/apache24/work/httpd-2.4.37/os/unix -I/usr/ports/www/apache24/work/httpd-2.4.37/include -I/usr/local/include/apr-1 -I/usr/include -I/usr/local/include -I/usr/local/include/db5 -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/aaa -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/cache -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/core -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/database -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/filters -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/ldap -I/usr/ports/www/apache24/work/httpd-2.4.37/server -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/loggers -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/lua -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/proxy -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/http2 -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/session -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/ssl -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/test -I/usr/ports/www/apache24/work/httpd-2.4.37/server -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/md -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/arch/unix -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/dav/main -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/generators -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/mappers  -prefer-non-pic -static -c unixd.c && touch unixd.lo
unixd.c:245:25: error: variable has incomplete type 'union semun'
            union semun ick;
                        ^
unixd.c:245:19: note: forward declaration of 'union semun'
            union semun ick;
                  ^
1 error generated.
*** [unixd.lo] Error code 1

make[5]: stopped in /usr/ports/www/apache24/work/httpd-2.4.37/os/unix
1 error

make[5]: stopped in /usr/ports/www/apache24/work/httpd-2.4.37/os/unix
*** [all-recursive] Error code 1

make[4]: stopped in /usr/ports/www/apache24/work/httpd-2.4.37/os/unix
1 error

make[4]: stopped in /usr/ports/www/apache24/work/httpd-2.4.37/os/unix
*** [all-recursive] Error code 1

make[3]: stopped in /usr/ports/www/apache24/work/httpd-2.4.37/os
1 error

make[3]: stopped in /usr/ports/www/apache24/work/httpd-2.4.37/os
*** [all-recursive] Error code 1

make[2]: stopped in /usr/ports/www/apache24/work/httpd-2.4.37
1 error

make[2]: stopped in /usr/ports/www/apache24/work/httpd-2.4.37
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/apache24
*** Error code 1

Stop.
make: stopped in /usr/ports/www/apache24
==================== end of quotation ====================

setting the advised above macro change nothing:

config.status: executing default commands
configure: summary of build options:

    Server Version: 2.4.37
    Install prefix: /usr/local
    C compiler:     cc
    CFLAGS:         -O2 -pipe  -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing   
    CPPFLAGS:       -DLIBICONV_PLUG  
    LDFLAGS:          -fstack-protector  -L/usr/lib -L/usr/local/lib -L/usr/local/lib/db5  
    LIBS:             
    C preprocessor: cpp

/usr/bin/sed -i.bak -e "/EXTRA_LDFLAGS/s|-L/usr/lib||g" /usr/ports/www/apache24/work/httpd-2.4.37/build/config_vars.mk
/usr/bin/sed -i.bak -e "s,%%WWWOWN%%,www," -e "s,%%WWWGRP%%,www,"  /usr/ports/www/apache24/work/httpd-2.4.37/docs/conf/httpd.conf
/usr/bin/sed -i.bak -e "s,%%PREFIX%%,/usr/local," /usr/ports/www/apache24/work/httpd-2.4.37/support/envvars-std
===>  Building for apache24-2.4.37
Making all in srclib
Making all in os
Making all in unix
/usr/local/share/apr/build-1/libtool --silent --mode=compile cc    -O2 -pipe -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing      -DLIBICONV_PLUG   -I. -I/usr/ports/www/apache24/work/httpd-2.4.37/os/unix -I/usr/ports/www/apache24/work/httpd-2.4.37/include -I/usr/local/include/apr-1 -I/usr/include -I/usr/local/include -I/usr/local/include/db5 -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/aaa -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/cache -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/core -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/database -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/filters -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/ldap -I/usr/ports/www/apache24/work/httpd-2.4.37/server -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/loggers -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/lua -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/proxy -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/http2 -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/session -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/ssl -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/test -I/usr/ports/www/apache24/work/httpd-2.4.37/server -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/md -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/arch/unix -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/dav/main -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/generators -I/usr/ports/www/apache24/work/httpd-2.4.37/modules/mappers  -prefer-non-pic -static -c unixd.c && touch unixd.lo
unixd.c:245:25: error: variable has incomplete type 'union semun'
            union semun ick;
                        ^
unixd.c:245:19: note: forward declaration of 'union semun'
            union semun ick;
                  ^
1 error generated.
*** Error code 1

Stop.
make[5]: stopped in /usr/ports/www/apache24/work/httpd-2.4.37/os/unix
*** Error code 1

Stop.
make[4]: stopped in /usr/ports/www/apache24/work/httpd-2.4.37/os/unix
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/www/apache24/work/httpd-2.4.37/os
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/www/apache24/work/httpd-2.4.37
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/apache24
*** Error code 1

Stop.
make: stopped in /usr/ports/www/apache24
Comment 1 Oleg Streejak 2018-12-24 15:24:45 UTC
please remove it: this was my fault of mixing new and old (11.2-age) ports =( rebuilding all the top-level ports remedies the case