mkschreder / juci

JUCI JavaScript Webgui for embedded devices running OpenWRT
Other
389 stars 108 forks source link

build error openwrt + juci #49

Closed ghost closed 8 years ago

ghost commented 8 years ago
In file included from base.h:23:0,
                 from mod_extforward.c:1:
mod_extforward.c: In function 'mod_extforward_uri_handler':
mod_extforward.c:442:10: error: 'addrs_left' undeclared (first use in this function)
   UNUSED(addrs_left);
          ^
buffer.h:131:28: note: in definition of macro 'UNUSED'
 #define UNUSED(x) ( (void)(x) )
                            ^
mod_extforward.c:442:10: note: each undeclared identifier is reported only once for each function it appears in
   UNUSED(addrs_left);
          ^
buffer.h:131:28: note: in definition of macro 'UNUSED'
 #define UNUSED(x) ( (void)(x) )
                            ^
Makefile:1348: recipe for target 'mod_extforward.lo' failed
make[7]: *** [mod_extforward.lo] Error 1
make[7]: Leaving directory '/home/kota/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lighttpd-23644e8f150baac0aa5199a6820234d8e7898231/src'
Makefile:945: recipe for target 'all' failed
make[6]: *** [all] Error 2
make[6]: Leaving directory '/home/kota/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lighttpd-23644e8f150baac0aa5199a6820234d8e7898231/src'
Makefile:435: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/home/kota/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lighttpd-23644e8f150baac0aa5199a6820234d8e7898231'
Makefile:365: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/kota/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lighttpd-23644e8f150baac0aa5199a6820234d8e7898231'
Makefile:316: recipe for target '/home/kota/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lighttpd-23644e8f150baac0aa5199a6820234d8e7898231/.built' failed
make[3]: *** [/home/kota/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lighttpd-23644e8f150baac0aa5199a6820234d8e7898231/.built] Error 2
make[3]: Leaving directory '/home/kota/openwrt/feeds/juci/lighttpd'
package/Makefile:191: recipe for target 'package/feeds/juci/lighttpd/compile' failed
make[2]: *** [package/feeds/juci/lighttpd/compile] Error 2
make[2]: Leaving directory '/home/kota/openwrt'
package/Makefile:188: recipe for target '/home/kota/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile' failed
make[1]: *** [/home/kota/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/kota/openwrt'
/home/kota/openwrt/include/toplevel.mk:181: ошибка выполнения рецепта для цели «world»
make: *** [world] Ошибка 2
kota@kota:~/openwrt$ 
mkschreder commented 8 years ago

Can not check right now, but from the above it seems like a lighttpd issue. Perhaps you can compare with their trunk and see whether current feed version is missing anything? You can use meld to compare just that file. Do it between the code in your builddir and the lighttpd official repo. If you fix it yourself then submit a patch.

ghost commented 8 years ago

Compared to the original repository, changes a lot. I myself can not make changes. Therefore, waiting for your help)

mkschreder commented 8 years ago

For now perhaps you can just disable that module in your build? Are you using it for anything? On 23 Jun 2016 15:12, "Aleksey" notifications@github.com wrote:

Compared to the original repository, changes a lot. I myself can not make changes. Therefore, waiting for your help)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mkschreder/juci/issues/49#issuecomment-228045130, or mute the thread https://github.com/notifications/unsubscribe/AERqiddZ680iSxf5TIk01Z8euXBKJUpIks5qOoY0gaJpZM4I7p3B .

ghost commented 8 years ago

You do not need to juci lighttpd?

Are you using it for anything?

Yes

For now perhaps you can just disable that module in your build?

I am set .config :

# Web Servers/Proxies
#
# CONFIG_PACKAGE_lighttpd is not set
# CONFIG_LIGHTTPD_SSL is not set
# CONFIG_PACKAGE_lighttpd-mod-access is not set
# CONFIG_PACKAGE_lighttpd-mod-accesslog is not set
# CONFIG_PACKAGE_lighttpd-mod-alias is not set
# CONFIG_PACKAGE_lighttpd-mod-auth is not set
# CONFIG_PACKAGE_lighttpd-mod-cgi is not set
# CONFIG_PACKAGE_lighttpd-mod-cml is not set
# CONFIG_PACKAGE_lighttpd-mod-compress is not set
# CONFIG_PACKAGE_lighttpd-mod-evasive is not set
# CONFIG_PACKAGE_lighttpd-mod-evhost is not set
# CONFIG_PACKAGE_lighttpd-mod-expire is not set
# CONFIG_PACKAGE_lighttpd-mod-extforward is not set
# CONFIG_PACKAGE_lighttpd-mod-fastcgi is not set
# CONFIG_PACKAGE_lighttpd-mod-flv-streaming is not set
# CONFIG_PACKAGE_lighttpd-mod-magnet is not set
# CONFIG_PACKAGE_lighttpd-mod-proxy is not set
# CONFIG_PACKAGE_lighttpd-mod-redirect is not set
# CONFIG_PACKAGE_lighttpd-mod-rewrite is not set
# CONFIG_PACKAGE_lighttpd-mod-rrdtool is not set
# CONFIG_PACKAGE_lighttpd-mod-scgi is not set
# CONFIG_PACKAGE_lighttpd-mod-secdownload is not set
# CONFIG_PACKAGE_lighttpd-mod-setenv is not set
# CONFIG_PACKAGE_lighttpd-mod-simple-vhost is not set
# CONFIG_PACKAGE_lighttpd-mod-ssi is not set
# CONFIG_PACKAGE_lighttpd-mod-status is not set
# CONFIG_PACKAGE_lighttpd-mod-trigger-b4-dl is not set
# CONFIG_PACKAGE_lighttpd-mod-userdir is not set
# CONFIG_PACKAGE_lighttpd-mod-usertrack is not set
# CONFIG_PACKAGE_lighttpd-mod-webdav is not set
# CONFIG_PACKAGE_lighttpd-mod-websocket is not set

But.. if i am enable juci:

Plugins  --->
Themes  --->
-*- juci.................................................. JUCI Web Interface  
<*> juci-full-openwrt................ JUCI Openwrt Configuration Meta Package                                                       
<*> jucid............................................... JUCI Backend Server

then automatically turns on Web Servers/Proxies

{M} lighttpd. Lighttpd with websocket support (otherwise the same as default)  --->  
< > lighttpd-mod-access........................... Access restrictions module 
< > lighttpd-mod-accesslog............................. Access logging module 
< > lighttpd-mod-alias................................ Directory alias module 
< > lighttpd-mod-auth.................................. Authentication module 
{M} lighttpd-mod-cgi.............................................. CGI module 
< > lighttpd-mod-cml.............................. Cache Meta Language module 
< > lighttpd-mod-compress............................. Compress output module 
< > lighttpd-mod-evasive...................................... Evasive module 
< > lighttpd-mod-evhost..................... Exnhanced Virtual-Hosting module 
< > lighttpd-mod-expire........................................ Expire module 
< > lighttpd-mod-extforward......................... Extract client IP module 
< > lighttpd-mod-fastcgi...................................... FastCGI module 
< > lighttpd-mod-flv-streaming.......................... flv streaming module 
< > lighttpd-mod-magnet........................................ magnet module 
{M} lighttpd-mod-proxy.......................................... Proxy module 
< > lighttpd-mod-redirect............................. URL redirection module 
< > lighttpd-mod-rewrite................................ URL rewriting module 
< > lighttpd-mod-rrdtool...................................... rrdtool module 
< > lighttpd-mod-scgi............................................ SCGI module 
< > lighttpd-mod-secdownload................. Secure and fast download module 
< > lighttpd-mod-setenv.................. Environment variable setting module 
< > lighttpd-mod-simple-vhost.................. Simple virtual hosting module 
< > lighttpd-mod-ssi.............................................. SSI module 
< > lighttpd-mod-status......................... Server status display module 
< > lighttpd-mod-trigger-b4-dl................ Trigger before download module 
< > lighttpd-mod-userdir............................... User directory module 
< > lighttpd-mod-usertrack.............................. User tracking module 
< > lighttpd-mod-webdav........................................ WebDAV module 
{M} lighttpd-mod-websocket................................. Websockets module 
< > sockd................................................. Dante SOCKS Daemon 
< > socksify.............................................. Dante SOCKS Client 
< > uhttpd........................ uHTTPd - tiny, single threaded HTTP server 
[ ] Build with debug messages         

How to be in this case?

i am find this in /openwrt/tmp/.config-package.in Can I edit it?

    menuconfig PACKAGE_juci
        tristate "juci.................................................. JUCI Web Interface"
        default y if DEFAULT_juci
        default m if ALL
        select PACKAGE_lighttpd
        select PACKAGE_librt if USE_GLIBC
        select PACKAGE_libc
        select PACKAGE_libssp if SSP_SUPPORT
        select PACKAGE_lighttpd-mod-proxy
        select PACKAGE_lighttpd-mod-websocket
        select PACKAGE_lighttpd-mod-cgi
        select PACKAGE_libpthread if USE_GLIBC
        help
         Provides the JUCI Javascript UCI web interface with standard functionality.
         Martin Schröder <mkschreder.uk@gmail.com>

    config PACKAGE_juci-full-openwrt
        tristate "juci-full-openwrt................ JUCI Openwrt Configuration Meta Package"
        default y if DEFAULT_juci-full-openwrt
        default m if ALL
        select PACKAGE_libc
        select PACKAGE_juci-firewall-fw3
        select PACKAGE_libssp if SSP_SUPPORT
        select PACKAGE_juci-network-netifd
        select PACKAGE_juci-uhttpd
        select PACKAGE_juci-dnsmasq-dhcp
        select PACKAGE_juci-dropbear
        select PACKAGE_juci-ddns
        select PACKAGE_juci-openwrt-wireless
        select PACKAGE_juci-event
        select PACKAGE_juci-ethernet
        select PACKAGE_juci-snmpd
        select PACKAGE_juci
        select PACKAGE_juci-upnp
        select PACKAGE_juci-simple-gui
        select PACKAGE_juci-macdb
        select PACKAGE_juci-theme-openwrt
        select PACKAGE_juci-usb
        select PACKAGE_librt if USE_GLIBC
        select PACKAGE_juci-mod-status
        select PACKAGE_juci-samba
        select PACKAGE_libpthread if USE_GLIBC
        select PACKAGE_juci-utils
        select PACKAGE_juci-mod-system
        select PACKAGE_juci-sysupgrade
        select PACKAGE_juci-minidlna
        help
         Select this package to select default juci packages and configure menus that will work on OpenWRT.

    config PACKAGE_jucid
        tristate "jucid............................................... JUCI Backend Server "
        default y if DEFAULT_jucid
        default m if ALL
        select PACKAGE_libblobpack
        select PACKAGE_iwinfo
        select PACKAGE_libubox-lua
        select PACKAGE_luaposix33
        select PACKAGE_rpcd
        select PACKAGE_librt if USE_GLIBC
        select PACKAGE_lua
        select PACKAGE_libpthread if USE_GLIBC
        select PACKAGE_libubus-lua
        select PACKAGE_libc
        select PACKAGE_libssp if SSP_SUPPORT
        select PACKAGE_libwebsockets
        select PACKAGE_libutype
        select PACKAGE_liblua
        select PACKAGE_libuci
        select PACKAGE_libuci-lua
        select PACKAGE_libusys
        help
         JUCI Backend Server 
         Martin K. Schröder <mkschreder.uk@gmail.com>

endmenu
ghost commented 8 years ago

DEPENDS

juci-openwrt-feed/juci/Makefile

define Package/juci
  SECTION:=juci
  CATEGORY:=JUCI
  MENU:=1
  TITLE:=JUCI Web Interface
  DEPENDS:=+lighttpd +lighttpd-mod-websocket +lighttpd-mod-proxy +lighttpd-mod-cgi 
endef
mkschreder commented 8 years ago

Why are you building lighttpd as module? That will only build package but not install it on your system. Anyways, try building it as built in and see if that helps (it should be selected using star *, not M),

mkschreder commented 8 years ago

Check out my latest readme.md instructions in v2.16.08 branch.