"custom-src/.config" needed

Discuss the technical details of Gargoyle and ongoing development

Moderator: Moderators

pwcpp
Posts: 22
Joined: Sun Feb 15, 2015 2:12 pm

Re: "custom-src/.config" needed

Post by pwcpp »

checking for pcap.h... yes
checking libnet.h usability... no
checking libnet.h presence... no
checking for libnet.h... no
configure: error: Cannot find libnet.h - You need libnet installed.
make[4]: *** [/home/pwcpp/gargoyle/custom-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/netdiscover-0.3-beta6/.configured_] Error 1
make[4]: Leaving directory `/home/pwcpp/gargoyle/custom-src/package/net/netdiscover'
make[3]: *** [package/net/netdiscover/compile] Error 2
make[3]: Leaving directory `/home/pwcpp/gargoyle/custom-src'
make[2]: *** [/home/pwcpp/gargoyle/custom-src/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[2]: Leaving directory `/home/pwcpp/gargoyle/custom-src'
make[1]: *** [world] Error 2
make[1]: Leaving directory `/home/pwcpp/gargoyle/custom-src'


netdiscover cannot be unchecked in menuconfig "Network", and libnet1 doesn't exist in "Libraries". :(

Gargoyle doesn't own netdiscover originally. How did it realise it?


>> solved it

changed "~/gargoyle/custom-src/.config" manually
CONFIG_PACKAGE_netdiscover=y
CONFIG_PACKAGE_netdiscover-to-devinfo=y
to
# CONFIG_PACKAGE_netdiscover is not set
# CONFIG_PACKAGE_netdiscover-to-devinfo is not set
then netdiscover will be skipped when compiling.

pwcpp
Posts: 22
Joined: Sun Feb 15, 2015 2:12 pm

Re: "custom-src/.config" needed

Post by pwcpp »

Compiling finished. After flashed into WNDR 4300 and then visited http://192.168.1.1, it looks like the following:

Index of /

--------------------------------------------------------------------------------
1.../
modified: Wed, 18 Feb 2015 05:05:38 GMT
directory - 0.47 kbyte


2.data/
modified: Wed, 18 Feb 2015 05:04:59 GMT
directory - 0.08 kbyte


3.i18n/
modified: Wed, 18 Feb 2015 04:14:20 GMT
directory - 0.09 kbyte


4.js/
modified: Wed, 18 Feb 2015 05:05:03 GMT
directory - 0.73 kbyte


5.templates/
modified: Wed, 18 Feb 2015 05:05:03 GMT
directory - 0.23 kbyte

...

--------------------------------------------------------------------------------


cause *weburl*.ko' is missing ? :?:


>> restored the checked status of "Advanced configuration options - Target Options" in menuconfig and then recompiled with no error, but still the same problem

bouwew
Posts: 30
Joined: Sat Aug 25, 2012 6:24 am

Re: "custom-src/.config" needed

Post by bouwew »

Apparently, gargoyle needs netdiscover.
Why not keep it and enable libnet in the config file?
Google for "openwrt libnet" and you'll probably find the latest version. Additionally, look at a config file from the trunk branch and you'll get an idea where to put the statement ...libnet=y in your config file.

bouwew
Posts: 30
Joined: Sat Aug 25, 2012 6:24 am

Re: "custom-src/.config" needed

Post by bouwew »

You'll also need libpcap and ibpthread, next to libnet1, says the netdiscover Makefile. Add these to thew config file too if they are not there.

Another thought, you could run the command "make defconfig".
This is supposed to check for and add missing dependencies in the config file.
Afterwards, check by hand, I noticed it "adds" (a lot of?) packages with "=m" instead of "is not set". This can also cause compilation problems.

pwcpp
Posts: 22
Joined: Sun Feb 15, 2015 2:12 pm

Re: "custom-src/.config" needed

Post by pwcpp »

THX

I've deleted the directory of "~/gargoyle" and build from scratch, but still got the *weburl*.ko-error even if I've unchecked the "Advanced configuration options - Target Options" in menuconfig.

Also I found the following log:
...
Applying /home/pwcpp/gargoyle/patches-generic//99-gcom-getstrength.patch using plaintext:
patching file package/network/utils/comgt/files/3g.sh
Aborting. '/home/pwcpp/gargoyle/targets/custom/patches/' is not a directory.
new_module_dirs=weburl webmon timerange bandwidth
found WEBURL module, patching...
found WEBMON module, patching...
found TIMERANGE module, patching...
found BANDWIDTH module, patching...


I don't know whether it is the reason of the *weburl*.ko-error and how to fix it.

bouwew
Posts: 30
Joined: Sat Aug 25, 2012 6:24 am

Re: "custom-src/.config" needed

Post by bouwew »

The error that you have highlighted in red, I get that one too.
Doesn't cause any troubles, I think.

Another thought I had: have you set Gargoyle to enabled during menuconfig? Which Gargoyle addons have you selected?
I've read somewhere on the forum that the *weburl*.ko error went away when you have openvpn as a package selected together with the Gargoyle openvpn plugin.

pwcpp
Posts: 22
Joined: Sun Feb 15, 2015 2:12 pm

Re: "custom-src/.config" needed

Post by pwcpp »

THX

In menuconfig "Administration - Gargoyle Web Interface" only gargoyle, gargoyle-i18n and plugin-gargoyle-i18n-English-EN are enabled.

I've unchecked both package of openvpn (and pptp) and Gargoyle openvpn plugin in menuconfig, and also have changed all packages with "=m" to "is not set". But still the same problem of *weburl*.ko-error.

Occasionally I found "Download failed -- http://mirror2.openwrt.org/sources/linux-.tar.xz" when building, but it didn't stop building like the other "download failed" event had did. Is it related to *weburl*.ko-error? I've googled but it seems no linux-.tar.xz exist. :?:

Download failed
--2015-02-19 19:13:18-- http://mirror2.openwrt.org/sources/linux-.tar.xz
...
2015-02-19 19:13:19 ERROR 404: Not Found.

Download failed.
No more mirrors to try - giving up.
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/pwcpp/gargoyle/custom-src/nf-patch-build'
mv: cannot start 'linux' : No such file or directory
cp: cannot start 'linux.orig' : No such file or directory
make[1]: Entering directory '/home/pwcpp/gargoyle/custom-src/nf-patch-build'
if [ ! -e "../dl/iptables-1.4.21.tar.bz2" ] ; then ../scripts/download.pl ../dl iptables-1.4.21.tar.bz2 ...

bouwew
Posts: 30
Joined: Sat Aug 25, 2012 6:24 am

Re: "custom-src/.config" needed

Post by bouwew »

I meant: openvpn must be set to Y and gargoyle openvpn plugin must also set to Y.
But I'm not sure if that will fix the *webko*.url error.

Sorry, I'm running out of suggestions now.

I have tried to build for my WDR4900V1, mpc85xx architecture.
I have made some changes to the file gen-js.pl, build.sh and the directory structure. I added a profile directory "mpc85xx" in the targets-directory, with similar structure as the other profiles, but with only 1 target, the WDR4900V1 .That's how I ended up with a successful compile.

Also, I noticed that in build.sh the openwrt packages only get downloaded and built when you issue the command "make custom". So I modified build.sh ("custom" to "mpc85xx" in one line) to include it when I would issue the command "make mpc85xx".

pwcpp
Posts: 22
Joined: Sun Feb 15, 2015 2:12 pm

Re: "custom-src/.config" needed

Post by pwcpp »

I unchecked the modules and packages as more as possible in menuconfig, finally the compile sucessed. Now the Gargoyle web interface appears.

I have to leave it in abeyance until I find out which ones may result to *weburl*.ko-error in my free time.

Anyway, many thanks for your patiently answering.

bouwew
Posts: 30
Joined: Sat Aug 25, 2012 6:24 am

Re: "custom-src/.config" needed

Post by bouwew »

You are very welcome! Good luck with your future compiling-experiments :D

Post Reply