net-analyzer/honeyd 0.6a chokes when ebuilding: honeyd.c:2416: error: `PATH_HONEYDINCLUDE' undeclared Adding the appropriate -DPATH_HONEYDINCLUDE=${honeydincludedir} entry to the .ebuild caused something else to break in personality.c (sorry I didn't have time to follow up). Reproducible: Always Steps to Reproduce: 1. 2. 3. # emerge info Portage 2.0.49-r4 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.20-gentoo-r6) ================================================================= System uname: 2.4.20-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 1700MHz ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline arts tetex bonobo svga tcltk java guile X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk motif opengl mozilla cdr fbcon gtk2 imap pda -apm -kde -qt"
Created attachment 18073 [details] Fixed honeyd-0.6a.ebuild
Replacing the elaborate set of CFLAGS in honeyd-0.6a.ebuild yields a successful compile/install/merge: # diff --normal honeyd-0.6a.ebuild honeyd-0.6a.ebuild.original 25c25,28 < emake || die "emake failed" --- > emake CFLAGS="${CFLAGS} -Wall -g \ > -DPATH_HONEYDDATA=${honeyddatadir} \ > -DPATH_HONEYDLIB=${honeydlibdir} " \ > || die "emake failed" (See attached simplified .ebuild) I don't quite understand why the original .ebuild creator felt it necessary to explicitly specify -DPATH_* -- they're in the Makefile. Cael
Fixed. Problem was that the CFLAGS variable in the Makefile got overwritten by the ebuild. This was done so the optimizations would be used when compiling the package. I've made a diffrent approach and now it compiles fine.