View previous topic :: View next topic |
Author |
Message |
msalerno Veteran
Joined: 17 Dec 2002 Posts: 1338 Location: Sweating in South Florida
|
Posted: Tue Mar 29, 2011 1:58 am Post subject: PGL Peer Guardian for linux |
|
|
http://sourceforge.net/projects/peerguardian/
Is anyone using this? I got tired of moblock using so much cpu, so I downloaded the latest version and built it. So far so good. I made some changes to the Makefile, but not much else. I've searched around the forums and a few overlays, but I can't find an ebuild. I don't want to write one if someone else already has.
Just wondering if anyone else has any experience with this.
Thanks |
|
Back to top |
|
|
jbouzan Tux's lil' helper
Joined: 23 Nov 2007 Posts: 138
|
Posted: Tue Mar 29, 2011 3:32 am Post subject: |
|
|
Using what? Their website just says there is no Linux version, use moblock. |
|
Back to top |
|
|
msalerno Veteran
Joined: 17 Dec 2002 Posts: 1338 Location: Sweating in South Florida
|
|
Back to top |
|
|
jre n00b
Joined: 02 Jun 2011 Posts: 4
|
Posted: Thu Jun 02, 2011 11:00 am Post subject: |
|
|
msalerno is right, pgl is the new and current version. It's a further developed combination of nfblock (based on moblock), blockcontrol and mobloquer. Current version is 2.0.4 (no GUI). In the git repository we also have a GUI.
I'd be happy to improve Gentoo support, please contact me in this thread, at phoenixlabs.org or at jre-phoenix@users.sourceforge.net. Wherever possible I'll add changes directly to the code (master branch of the git development repository at sourceforge), otherwise to a separate pgl_gentoo branch. Serious developers will get direct commit access there. If there are any tested ebuilds I'll publish them. _________________ Co-author of PeerGuardian Linux (pgl) and blockcontrol.
Register and get support at phoenixlabs.org |
|
Back to top |
|
|
snek n00b
Joined: 04 Aug 2011 Posts: 1
|
Posted: Thu Aug 04, 2011 1:39 pm Post subject: |
|
|
I would love to see an ebuild for this!
I managed to compile it from source however, which wasn't all that difficult actually..
Now I need to understand run levels / rc-update to get it to start with Sabayon automatically...
I've only been using Gentoo/Sabayon for 1 hour, I'm still learning! |
|
Back to top |
|
|
Gef Apprentice
Joined: 17 May 2008 Posts: 180 Location: France
|
Posted: Sun Aug 14, 2011 9:54 pm Post subject: |
|
|
snek wrote: | I would love to see an ebuild for this! |
Delivered.
Code: | # Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils
MY_P="${PN}_no-GUI-${PV}"
DESCRIPTION="PeerGuardian helps protect your privacy by blocking many ranges of aggressive IPs while you use P2P"
HOMEPAGE="http://peerguardian.sourceforge.net"
SRC_URI="mirror://sourceforge/project/peerguardian/PeerGuardian%20Linux/${PV}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+dbus debug"
RESTRICT=""
DEPEND="net-libs/libnetfilter_queue
dbus? ( sys-libs/dbus )"
RDEPEND="${DEPEND}
net-firewall/iptables"
#S="${WORKDIR}/${P}"
src_prepare() {
sed -i -e '/^CFLAGS/d' \
-e '/^OPTFLAGS/d' \
Makefile || die "sed failed"
}
src_configure() {
if use dbus; then
sed -i -e '/^DBUS /s: no: yes:' \
Makefile || die "sed failed"
fi
if ! use debug; then
sed -i -e '/^DEBUG /s: yes: no:' \
Makefile || die "sed failed"
fi
}
src_install() {
emake DESTDIR="${D}" libdir="${D}"/usr/$(get_libdir) install || die
dodoc docs/{AUTHORS,BUGS,README,README.blocklists,THANKS,TODO}
exeinto /usr/$(get_libdir)/pgl/
doexe docs/iptables-custom-*
rm -rf "${D}"/etc/network/
}
|
Completely untested (appart from simple emerge). A least one QA issue with the dbus.so library compiled ignoring LDFLAGS. Someone needs to write an init.d script for it, ship it in ${FILESDIR}, and add the relevant block in src_install
Code: |
newinitd "${FILESDIR}/pgl.initd" ${PN} |
_________________ Laptop : Gentoo ~amd64
(remote) Server : Gentoo amd64 |
|
Back to top |
|
|
jre n00b
Joined: 02 Jun 2011 Posts: 4
|
Posted: Sun Aug 14, 2011 11:14 pm Post subject: |
|
|
Quote: | Code: | MY_P="${PN}_no-GUI-${PV}" |
|
This is pgl without GUI. We just released pgl 2.1. series that contains a GUI.
Quote: | A least one QA issue with the dbus.so library compiled ignoring LDFLAGS. |
So far I could compile pgl for all current Debian and Ubuntu versions, but I had issues with the upcoming Ubuntu oneiric (build.log here: https://launchpadlibrarian.net/77204036/buildlog_ubuntu-oneiric-i386.pgl_2.1.1.1-1~oneiric_FAILEDTOBUILD.txt.gz). So I fear you have the same problem. No idea yet what it is.
Without LDFLAGS you won't have "-Wl,-export-dynamic" and thus not the dbus.so linked. So pgld can't log to dbus, and pgl-gui can't show any blocked items.
Quote: | Someone needs to write an init.d script for it, ship it in ${FILESDIR}, and add the relevant block in src_install |
Doesn't the provided init script work for you. Please have a look at it, and tell me if it has any issues for you.
I'll have a closer look at the ebuild another time, but feel free to tell me any issues you find that might be fixed. _________________ Co-author of PeerGuardian Linux (pgl) and blockcontrol.
Register and get support at phoenixlabs.org |
|
Back to top |
|
|
cauchy49 n00b
Joined: 15 Sep 2008 Posts: 17 Location: france
|
Posted: Thu Aug 25, 2011 11:10 pm Post subject: |
|
|
I add the flag qt4 for pgl 2.1 series...
Code: | # Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils
MY_P="${PN}-${PV}"
DESCRIPTION="PeerGuardian helps protect your privacy by blocking many ranges of aggressive IPs while you use P2P"
HOMEPAGE="http://peerguardian.sourceforge.net"
SRC_URI="mirror://sourceforge/project/peerguardian/PeerGuardian%20Linux/${PV}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+dbus debug +qt4"
RESTRICT=""
DEPEND="net-libs/libnetfilter_queue
qt4? ( x11-libs/qt-core )
dbus? ( sys-apps/dbus )"
RDEPEND="${DEPEND} net-firewall/iptables"
#S="${WORKDIR}/${P}"
src_prepare() {
sed -i -e '/^CFLAGS/d' \
-e '/^OPTFLAGS/d' \
Makefile || die "sed failed"
if use qt4; then
sed -i -e 's|QTINC:=.*|QTINC:=/usr/include/qt4|' \
pgl-gui/Makefile || die "sed failed"
sed -i -e 's:-L/usr/lib :-L/usr/lib/qt4 :' \
pgl-gui/Makefile || die "sed failed"
fi
}
src_configure() {
if use dbus; then
sed -i -e '/^DBUS /s: no: yes:' \
Makefile || die "sed failed"
fi
if ! use debug; then
sed -i -e '/^DEBUG /s: yes: no:' \
Makefile || die "sed failed"
fi
if ! use qt4; then
sed -i -e '/^MAKE_PGLGUI /s: yes: no:' \
Makefile || die "sed failed"
fi
}
src_install() {
emake DESTDIR="${D}" libdir="${D}"/usr/$(get_libdir) install || die
dodoc docs/{AUTHORS,BUGS,README,README.blocklists,THANKS,TODO}
exeinto /usr/$(get_libdir)/pgl/
doexe docs/iptables-custom-*
rm -rf "${D}"/etc/network/
}
|
|
|
Back to top |
|
|
djsmiley2k Tux's lil' helper
Joined: 08 Apr 2005 Posts: 79 Location: Coventry
|
Posted: Fri Dec 30, 2011 8:18 pm Post subject: |
|
|
Any chance this is going into an overlay somewhere? I'm not experienced with building stuff myself, only emerging it from an overlay
Off to research how to setup my own local overlay anyway but it'd be nice to have it updated etc too. |
|
Back to top |
|
|
djsmiley2k Tux's lil' helper
Joined: 08 Apr 2005 Posts: 79 Location: Coventry
|
Posted: Sat Dec 31, 2011 8:44 pm Post subject: |
|
|
djsmiley2k wrote: | Any chance this is going into an overlay somewhere? I'm not experienced with building stuff myself, only emerging it from an overlay
Off to research how to setup my own local overlay anyway but it'd be nice to have it updated etc too. |
Ok so I got it installed, built etc.
However it silently fails to start if your missing kernel modules. This, for gentoo, is a _Bad_ thing. It's bad for anything but I'm going to attempt to fix it, as I love gentoo
Basically if your missing the xt_NFQUEUE in your kernel, it silently won't start, but the initscript isn't informed of this and so shows the script starting normally as if there was no issues.
pgl.log:
Code: |
Building blocklist ...
Updating tbg_primary-threats... done.
Extracting tbg_primary-threats, detected gz... done.
Updating tbg_search-engines... done.
Extracting tbg_search-engines, detected gz... done.
WARN: Invalid ASCII line:
INFO: ASCII: 761425 entries loaded from "STDIN"
INFO: Merged 549772 of 761425 entries.
INFO: Blocking 211653 IP ranges (2788805615 IPs).
Blocklist built.
Error 170: Could not load kernel module xt_NFQUEUE, not starting pgld! ... failed!
failed!
|
Once I enabled the kernel modules for xt_NFQUEUE the daemon now starts successfully \o/
However there is some errors I don't understand?
Code: |
Dec 31 22:18:04 INFO: Blocking 211653 IP ranges (2788805615 IPs).
Dec 31 22:18:04 ERROR: Error during nfq_unbind_pf(): Bad file descriptor
Dec 31 22:18:04 ERROR: Error binding to queue.
|
-------
After playing all evening with kernel options I got this running with no more errors however upon a reboot, if its started before I login, it blocks irc from connecting at all. Also can't ping out, any kind of traffic seems to be blocked.
Until someone replies to this, I'm going to presume its dead as I can't post on sourceforge currently due to being unable to login. Hopefully we can all get this working nice as its something the linux world needs, but unless I can start it automatically its almost useless to me as its running on an automatic server... |
|
Back to top |
|
|
msalerno Veteran
Joined: 17 Dec 2002 Posts: 1338 Location: Sweating in South Florida
|
Posted: Sun Jan 01, 2012 2:10 pm Post subject: |
|
|
Are you loading any other iptables configuration? |
|
Back to top |
|
|
jre n00b
Joined: 02 Jun 2011 Posts: 4
|
Posted: Thu Jan 12, 2012 6:46 pm Post subject: |
|
|
> However it silently fails to start if your missing kernel modules.
The log shows the error, and the init script should have failed, too.
> However there is some errors I don't understand?
Did you change some configuration settings?
Try "pglcmd test" to see if it is working. _________________ Co-author of PeerGuardian Linux (pgl) and blockcontrol.
Register and get support at phoenixlabs.org |
|
Back to top |
|
|
hasufell Retired Dev
Joined: 29 Oct 2011 Posts: 429
|
Posted: Tue Jan 17, 2012 9:36 pm Post subject: |
|
|
build system still does not correctly respect CC, CXX, CFLAGS etc.
no multilib support, manpage is missing, dependencies are incomplete, license is incorrect, second to last line is incorrect
unset TMPDIR during make will lead to TMPDIR=${T} in /usr/lib*/pgl/pglcmd.defaults
therefor I rewrote the ebuild:
Bug 93982
pglinux-2.3.1.ebuild
pgl-2.1.3-makefile.patch
I plan to upload it to sunrise after a dev gives his consent. Any other suggestions? |
|
Back to top |
|
|
jre n00b
Joined: 02 Jun 2011 Posts: 4
|
Posted: Thu Jan 19, 2012 9:26 pm Post subject: |
|
|
Generally: pgl combines 3 different applications in one. So the situation has much improved over the last years. Personally I only use Debian, so I need help with support for other distributions.
Now, I just had a quick glance at your patch.
hasufell wrote: | build system still does not correctly respect CC, CXX, CFLAGS etc. |
Did you completely fix that in your patch?
hasufell wrote: | no multilib support |
Any suggestions/requirements/problem reports/patches welcome
hasufell wrote: | manpage is missing |
There exists one docs/pgld.1
IIRC I chose not to install it, because I feared it would break some dists.
In debian I install it and make symlinks for pglcmd and pgl-gui.
hasufell wrote: | dependencies are incomplete |
Fixed in your patch!?
hasufell wrote: | license is incorrect |
Where? Please point me to it.
Some parts were GPL2+ licensed. The whole app is GPL3+. Some other stuff is mentioned in debian/copyright (I now see, this should be in the docs/ section.)
hasufell wrote: | second to last line is incorrect |
?
hasufell wrote: | unset TMPDIR during make will lead to TMPDIR=${T} in /usr/lib*/pgl/pglcmd.defaults |
I have to look into this. Feel free to elaborate on this.
hasufell wrote: | Any other suggestions? |
Collaborate with me
If you are interested I might give you write access to the sourceforge git repository. _________________ Co-author of PeerGuardian Linux (pgl) and blockcontrol.
Register and get support at phoenixlabs.org |
|
Back to top |
|
|
hasufell Retired Dev
Joined: 29 Oct 2011 Posts: 429
|
Posted: Thu Jan 19, 2012 10:09 pm Post subject: |
|
|
jre wrote: | hasufell wrote: | manpage is missing |
There exists one docs/pgld.1
IIRC I chose not to install it, because I feared it would break some dists.
In debian I install it and make symlinks for pglcmd and pgl-gui. |
jre wrote: |
hasufell wrote: | license is incorrect |
Where? Please point me to it.
Some parts were GPL2+ licensed. The whole app is GPL3+. Some other stuff is mentioned in debian/copyright (I now see, this should be in the docs/ section.) |
jre wrote: | hasufell wrote: | second to last line is incorrect |
? |
jre wrote: | hasufell wrote: | unset TMPDIR during make will lead to TMPDIR=${T} in /usr/lib*/pgl/pglcmd.defaults |
I have to look into this. Feel free to elaborate on this. |
I was referring to the posted ebuild, sry for the confusion
----
jre wrote: | hasufell wrote: | build system still does not correctly respect CC, CXX, CFLAGS etc. | Did you completely fix that in your patch? |
I think so. But that patch is not written for upstream.
There are simply proper variables missing, especially for the QT-includes.
jre wrote: | hasufell wrote: | no multilib support |
Any suggestions/requirements/problem reports/patches welcome |
Includes and installation destinations in the Makefiles always point to /usr/lib or /usr/local/lib. In Gentoo we might want the location to be pointed at /usr/lib64. That would be fixed with a configure script and a "--libdir" option. Gentoo calls "econf" with the proper arguments then.
jre wrote: |
hasufell wrote: | dependencies are incomplete |
Fixed in your patch!? |
No, fixed in my ebuild. There is no configure-script after all to check for stuff. Make will just fail.
jre wrote: | hasufell wrote: | Any other suggestions? |
Collaborate with me
If you are interested I might give you write access to the sourceforge git repository. |
I don't know too much about writing proper configure scripts/build systems myself. Would have to look into that. I might not be your first choice, really |
|
Back to top |
|
|
hasufell Retired Dev
Joined: 29 Oct 2011 Posts: 429
|
|
Back to top |
|
|
vyedmic n00b
Joined: 02 Dec 2010 Posts: 38
|
Posted: Wed May 02, 2012 10:08 pm Post subject: |
|
|
Hello guys,
Got pglinux-2.1.3 working with no problems. Recently there was an update to pglinux-2.1.3_p20120427. This doesn't compile.
Code: | /bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -O2 -march=native -pipe -Wl,-export-dynamic -Wl,-O1 -Wl,--as-needed -o pgld pgld.o stream.o blocklist.o parser.o
libtool: link: i686-pc-linux-gnu-gcc -O2 -march=native -pipe -Wl,-export-dynamic -Wl,-O1 -Wl,--as-needed -o pgld pgld.o stream.o blocklist.o parser.o
pgld.o: In function `nfqueue_unbind':
pgld.c:(.text+0x747): undefined reference to `nfq_destroy_queue'
pgld.c:(.text+0x75d): undefined reference to `nfq_unbind_pf'
pgld.c:(.text+0x76f): undefined reference to `nfq_close'
pgld.o: In function `nfqueue_loop':
pgld.c:(.text+0xb13): undefined reference to `nfq_open'
pgld.c:(.text+0xb31): undefined reference to `nfq_unbind_pf'
pgld.c:(.text+0xb4f): undefined reference to `nfq_bind_pf'
pgld.c:(.text+0xbe5): undefined reference to `nfq_create_queue'
pgld.c:(.text+0xc0b): undefined reference to `nfq_set_mode'
pgld.c:(.text+0xc27): undefined reference to `nfq_nfnlh'
pgld.c:(.text+0xc2f): undefined reference to `nfnl_fd'
pgld.c:(.text+0xc4a): undefined reference to `nfq_handle_packet'
pgld.c:(.text+0xcea): undefined reference to `nfq_close'
pgld.c:(.text+0xd2d): undefined reference to `nfq_close'
pgld.c:(.text+0xded): undefined reference to `nfq_destroy_queue'
pgld.c:(.text+0xdfb): undefined reference to `nfq_close'
pgld.o: In function `nfqueue_cb':
pgld.c:(.text+0xe3f): undefined reference to `nfq_get_msg_packet_hdr'
pgld.c:(.text+0xe5f): undefined reference to `nfq_get_payload'
pgld.c:(.text+0xf07): undefined reference to `nfq_set_verdict_mark'
pgld.c:(.text+0xfad): undefined reference to `nfq_set_verdict'
pgld.c:(.text+0x1067): undefined reference to `nfq_set_verdict_mark'
pgld.c:(.text+0x1105): undefined reference to `nfq_set_verdict_mark'
pgld.c:(.text+0x115f): undefined reference to `nfq_set_verdict_mark'
pgld.c:(.text+0x1193): undefined reference to `nfq_set_verdict'
pgld.c:(.text+0x11c3): undefined reference to `nfq_set_verdict'
pgld.c:(.text+0x1213): undefined reference to `nfq_set_verdict'
pgld.c:(.text+0x1243): undefined reference to `nfq_set_verdict'
stream.o: In function `stream_open':
stream.c:(.text+0x11d): undefined reference to `inflateInit2_'
stream.o: In function `stream_close':
stream.c:(.text+0x235): undefined reference to `inflateEnd'
stream.o: In function `stream_getline':
stream.c:(.text+0x434): undefined reference to `inflate'
stream.c:(.text+0x49b): undefined reference to `inflateEnd'
stream.c:(.text+0x4dc): undefined reference to `inflateEnd'
collect2: ld returned 1 exit status
make[2]: *** [pgld] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl/pgld'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl'
make: *** [all] Error 2 |
ANything wrong on my side? Thanks. |
|
Back to top |
|
|
hasufell Retired Dev
Joined: 29 Oct 2011 Posts: 429
|
Posted: Wed May 02, 2012 10:23 pm Post subject: |
|
|
please attach the whole build log and "emerge --info"
there is stuff missing from the linker line |
|
Back to top |
|
|
vyedmic n00b
Joined: 02 Dec 2010 Posts: 38
|
Posted: Wed May 02, 2012 10:36 pm Post subject: |
|
|
Hi hasufell,
Here goes build.log
Code: | [32;01m * [39;49;00mPackage: net-misc/pglinux-2.1.3_p20120427
[32;01m * [39;49;00mRepository: sunrise
[32;01m * [39;49;00mMaintainer: maintainer-wanted@gentoo.org
[32;01m * [39;49;00mUSE: elibc_glibc kernel_linux logrotate selinux userland_GNU x86 zlib
[32;01m * [39;49;00mFEATURES: sandbox selinux sesandbox
[32;01m*[0m Determining the location of the kernel source code
[32;01m*[0m Found kernel source directory:
[32;01m*[0m /usr/src/linux
[32;01m*[0m Found sources for kernel version:
[32;01m*[0m 3.2.11-hardened_mAch1nA
[32;01m*[0m Checking for suitable kernel configuration options...
[A[148C [34;01m[ [32;01mok[34;01m ][0m
>>> Unpacking source...
>>> Unpacking pglinux-2.1.3_p20120427.tar.xz to /var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work
>>> Source unpacked in /var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work
>>> Preparing source in /var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl ...
* econf: updating pgl/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating pgl/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-cron --disable-dbus --enable-logrotate --disable-networkmanager --enable-zlib --without-qt4
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking dependency style of i686-pc-linux-gnu-gcc... none
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by i686-pc-linux-gnu-gcc... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for i686-pc-linux-gnu-objdump... i686-pc-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for i686-pc-linux-gnu-ar... i686-pc-linux-gnu-ar
checking for archiver @FILE support... @
checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking command to parse /usr/bin/nm -B output from i686-pc-linux-gnu-gcc object... ok
checking for sysroot... no
checking for i686-pc-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if i686-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for i686-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if i686-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if i686-pc-linux-gnu-gcc static flag -static works... yes
checking if i686-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if i686-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the i686-pc-linux-gnu-gcc linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether i686-pc-linux-gnu-g++ accepts -g... yes
checking dependency style of i686-pc-linux-gnu-g++... none
checking how to run the C++ preprocessor... i686-pc-linux-gnu-g++ -E
checking for ld used by i686-pc-linux-gnu-g++... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking whether the i686-pc-linux-gnu-g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking for i686-pc-linux-gnu-g++ option to produce PIC... -fPIC -DPIC
checking if i686-pc-linux-gnu-g++ PIC flag -fPIC -DPIC works... yes
checking if i686-pc-linux-gnu-g++ static flag -static works... yes
checking if i686-pc-linux-gnu-g++ supports -c -o file.o... yes
checking if i686-pc-linux-gnu-g++ supports -c -o file.o... (cached) yes
checking whether the i686-pc-linux-gnu-g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether i686-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for i686-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking dependency style of i686-pc-linux-gnu-gcc... (cached) none
checking for pkg-config... /usr/bin/pkg-config
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for error_at_line... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
checking for i686-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libnetfilterqueue... yes
checking for ZLIB... yes
checking for bool... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating docs/Makefile
config.status: creating pgld/Makefile
config.status: creating pglcmd/Makefile
config.status: creating pgl-gui/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
pgl.......................................... : Version 2.1.3
Prefix....................................... : /usr
Logdir....................................... : /var/lib/log/pgl
Piddir....................................... : /var/lib/run
Tmpdir....................................... : /tmp
Blocklists................................... : /var/lib/spool/pgl
Masterblocklist.............................. : /var/lib/lib/pgl
Localblocklist............................... : /etc/pgl/blocklists.local
QT-gui....................................... : no
dbus......................................... : no
zlib......................................... : yes
logrotate.................................... : yes
cron......................................... : no
networkmanager............................... : no
.............................................
developer debug:
PGLD_CFLAGS:
PGLD_CPPFLAGS: -DVERSION=\"2.1.3\" -DPACKAGE_NAME=\"pgl\" -DPIDFILE=\"/var/lib/run/pgld.pid\" -DHAVE_ZLIB
PGLD_LDFLAGS: -Wl,-export-dynamic
PGLD_LIBS: -lnetfilter_queue -lnfnetlink -lz
QT_CXXFLAGS:
QT_CPPFLAGS: -D_REENTRANT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
QT_LDFLAGS:
QT_LIBS:
.............................................
Homepage http://peerguardian.sourceforge.net/
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl ...
make -j2
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl/missing --run autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
make[1]: Entering directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl'
Making all in docs
make[2]: Entering directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl/docs'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl/docs'
Making all in pglcmd
make[2]: Entering directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl/pglcmd'
cat pglcmd.defaults | \
/bin/sed "s|^PATH=.*|PATH=\"/usr/lib/portage/bin/ebuild-helpers/4:/usr/lib/portage/bin/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.3\"|" | \
/bin/sed "s|^BINDIR=.*|BINDIR=\"/usr/bin\"|" | \
/bin/sed "s|^SBINDIR=.*|SBINDIR=\"/usr/sbin\"|" | \
/bin/sed "s|^PIDDIR=.*|PIDDIR=\"/var/lib/run\"|" | \
/bin/sed "s|^LOGDIR=.*|LOGDIR=\"/var/lib/log/pgl\"|" | \
/bin/sed "s|^CONFDIR=.*|CONFDIR=\"/etc/pgl\"|" | \
/bin/sed "s|^LIBDIR=.*|LIBDIR=\"/usr/lib/pgl\"|" | \
/bin/sed "s|^TMPDIR=.*|TMPDIR=\"/tmp\"|" | \
/bin/sed "s|^BLOCKLISTS_DIR=.*|BLOCKLISTS_DIR=\"/var/lib/spool/pgl\"|" | \
/bin/sed "s|^LOCAL_BLOCKLIST_DIR=.*|LOCAL_BLOCKLIST_DIR=\"/etc/pgl/blocklists.local\"|" | \
/bin/sed "s|^MASTER_BLOCKLIST_DIR=.*|MASTER_BLOCKLIST_DIR=\"/var/lib/lib/pgl\"|" | \
/bin/sed "s|^LSB=.*|LSB=\"\"|" | \
/bin/sed "s|^DBUS=.*|DBUS=\"0\"|" > pglcmd.defaults.install
mv -f pglcmd.defaults.install pglcmd.defaults
/bin/sed -i -e "s|^CMD_DEFAULTS=.*|CMD_DEFAULTS=\"/usr/lib/pgl/pglcmd.defaults\"|" pglcmd.main
for FILE in blockcontrol2pglcmd.sh pglcmd pglcmd.wd cron.daily/pglcmd init/pgl ../debian/pglcmd.postinst networkmanager/20pglcmd ; do \
cat $FILE | \
/bin/sed -i -e "s|^CONTROL_MAIN=.*|CONTROL_MAIN=\"/usr/lib/pgl/pglcmd.main\"|" $FILE ; \
done
cat: /bin/sed: can't read ../debian/pglcmd.postinst: No such file or directory
../debian/pglcmd.postinst: No such file or directory
make[2]: Leaving directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl/pglcmd'
Making all in pgld
make[2]: Entering directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl/pgld'
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DVERSION=\"2.1.3\" -DPACKAGE_NAME=\"pgl\" -DPIDFILE=\"/var/lib/run/pgld.pid\" -DHAVE_ZLIB -O2 -march=native -pipe -c -o pgld.o `test -f 'src/pgld.c' || echo './'`src/pgld.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DVERSION=\"2.1.3\" -DPACKAGE_NAME=\"pgl\" -DPIDFILE=\"/var/lib/run/pgld.pid\" -DHAVE_ZLIB -O2 -march=native -pipe -c -o stream.o `test -f 'src/stream.c' || echo './'`src/stream.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DVERSION=\"2.1.3\" -DPACKAGE_NAME=\"pgl\" -DPIDFILE=\"/var/lib/run/pgld.pid\" -DHAVE_ZLIB -O2 -march=native -pipe -c -o blocklist.o `test -f 'src/blocklist.c' || echo './'`src/blocklist.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DVERSION=\"2.1.3\" -DPACKAGE_NAME=\"pgl\" -DPIDFILE=\"/var/lib/run/pgld.pid\" -DHAVE_ZLIB -O2 -march=native -pipe -c -o parser.o `test -f 'src/parser.c' || echo './'`src/parser.c
/bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -O2 -march=native -pipe -Wl,-export-dynamic -Wl,-O1 -Wl,--as-needed -o pgld pgld.o stream.o blocklist.o parser.o
libtool: link: i686-pc-linux-gnu-gcc -O2 -march=native -pipe -Wl,-export-dynamic -Wl,-O1 -Wl,--as-needed -o pgld pgld.o stream.o blocklist.o parser.o
pgld.o: In function `nfqueue_unbind':
pgld.c:(.text+0x747): undefined reference to `nfq_destroy_queue'
pgld.c:(.text+0x75d): undefined reference to `nfq_unbind_pf'
pgld.c:(.text+0x76f): undefined reference to `nfq_close'
pgld.o: In function `nfqueue_loop':
pgld.c:(.text+0xb13): undefined reference to `nfq_open'
pgld.c:(.text+0xb31): undefined reference to `nfq_unbind_pf'
pgld.c:(.text+0xb4f): undefined reference to `nfq_bind_pf'
pgld.c:(.text+0xbe5): undefined reference to `nfq_create_queue'
pgld.c:(.text+0xc0b): undefined reference to `nfq_set_mode'
pgld.c:(.text+0xc27): undefined reference to `nfq_nfnlh'
pgld.c:(.text+0xc2f): undefined reference to `nfnl_fd'
pgld.c:(.text+0xc4a): undefined reference to `nfq_handle_packet'
pgld.c:(.text+0xcea): undefined reference to `nfq_close'
pgld.c:(.text+0xd2d): undefined reference to `nfq_close'
pgld.c:(.text+0xded): undefined reference to `nfq_destroy_queue'
pgld.c:(.text+0xdfb): undefined reference to `nfq_close'
pgld.o: In function `nfqueue_cb':
pgld.c:(.text+0xe3f): undefined reference to `nfq_get_msg_packet_hdr'
pgld.c:(.text+0xe5f): undefined reference to `nfq_get_payload'
pgld.c:(.text+0xf07): undefined reference to `nfq_set_verdict_mark'
pgld.c:(.text+0xfad): undefined reference to `nfq_set_verdict'
pgld.c:(.text+0x1067): undefined reference to `nfq_set_verdict_mark'
pgld.c:(.text+0x1105): undefined reference to `nfq_set_verdict_mark'
pgld.c:(.text+0x115f): undefined reference to `nfq_set_verdict_mark'
pgld.c:(.text+0x1193): undefined reference to `nfq_set_verdict'
pgld.c:(.text+0x11c3): undefined reference to `nfq_set_verdict'
pgld.c:(.text+0x1213): undefined reference to `nfq_set_verdict'
pgld.c:(.text+0x1243): undefined reference to `nfq_set_verdict'
stream.o: In function `stream_open':
stream.c:(.text+0x11d): undefined reference to `inflateInit2_'
stream.o: In function `stream_close':
stream.c:(.text+0x235): undefined reference to `inflateEnd'
stream.o: In function `stream_getline':
stream.c:(.text+0x434): undefined reference to `inflate'
stream.c:(.text+0x49b): undefined reference to `inflateEnd'
stream.c:(.text+0x4dc): undefined reference to `inflateEnd'
collect2: ld returned 1 exit status
make[2]: *** [pgld] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl/pgld'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl'
make: *** [all] Error 2
[31;01m*[0m ERROR: net-misc/pglinux-2.1.3_p20120427 failed (compile phase):
[31;01m*[0m emake failed
[31;01m*[0m
[31;01m*[0m If you need support, post the output of 'emerge --info =net-misc/pglinux-2.1.3_p20120427',
[31;01m*[0m the complete build log and the output of 'emerge -pqv =net-misc/pglinux-2.1.3_p20120427'.
[31;01m*[0m This ebuild is from an overlay named 'sunrise': '/var/lib/layman/sunrise/'
[31;01m*[0m The complete build log is located at '/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/temp/environment'.
[31;01m*[0m S: '/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl'
|
and here emerge --info
Code: | Portage 2.1.10.49 (hardened/linux/x86/selinux, gcc-4.5.3, glibc-2.14.1-r3, 3.2.11-hardened_mAch1nA i686)
=================================================================
System uname: Linux-3.2.11-hardened_mAch1nA-i686-Unknown_CPU_Typ-with-gentoo-2.0.3
Timestamp of tree: Tue, 01 May 2012 21:15:01 +0000
app-shells/bash: 4.2_p20
dev-lang/python: 2.6.6-r2, 2.7.2-r3, 3.2.2
dev-util/cmake: 2.8.6-r4
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.0.3
sys-apps/openrc: 0.9.8.4
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.68
sys-devel/automake: 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.5.3-r2
sys-devel/gcc-config: 1.5-r2
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc: 2.14.1-r3
Repositories: gentoo sunrise
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.bytemark.co.uk/gentoo http://mirror.bytemark.co.uk/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl alsa apache2 berkdb bzip2 cdb cdr cli cracklib crypt cups curl cxx dovecot-sasl dri dvd fam gd gdbm gpm hardened iconv imap ipv6 kerberos libwww logrotate maildir managesieve mbox modules mudflap ncurses network-cron nis nls nptl nptlonly open_perms openmp pam pax_kernel pcre perc php pic pop3d postgres pppd readline samba sasl selinux session sieve sockets spell sqlite ssh ssl sysfs tcpd unicode urandom utp vda vhosts winbind x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
|
|
|
Back to top |
|
|
hasufell Retired Dev
Joined: 29 Oct 2011 Posts: 429
|
Posted: Wed May 02, 2012 10:37 pm Post subject: |
|
|
alright, there is an issue with the dbus useflag
if you enable dbus you can compile it
however I will look into that issue. Last time I tested it without dbus it compiled fine, there may have been changes to the code since then. |
|
Back to top |
|
|
vyedmic n00b
Joined: 02 Dec 2010 Posts: 38
|
Posted: Wed May 02, 2012 10:59 pm Post subject: |
|
|
Works. I don't mind dbus, so solved for me. Thanks. |
|
Back to top |
|
|
hasufell Retired Dev
Joined: 29 Oct 2011 Posts: 429
|
|
Back to top |
|
|
vyedmic n00b
Joined: 02 Dec 2010 Posts: 38
|
Posted: Wed May 02, 2012 11:34 pm Post subject: |
|
|
The ebuild fails with source directory doesn't exist. |
|
Back to top |
|
|
hasufell Retired Dev
Joined: 29 Oct 2011 Posts: 429
|
Posted: Wed May 02, 2012 11:51 pm Post subject: |
|
|
vyedmic wrote: | The ebuild fails with source directory doesn't exist. |
you got the ebuild name wrong
pglinux-2.1.3_p20120503.ebuild
please test with and without dbus |
|
Back to top |
|
|
vyedmic n00b
Joined: 02 Dec 2010 Posts: 38
|
Posted: Thu May 03, 2012 12:02 am Post subject: |
|
|
That worked a treat. Compiled with no issues without dbus and seems to be working fine.
EDIT: Compiled fine with dbus as well. |
|
Back to top |
|
|
|