only added macos keyword to ebuild Reproducible: Always Steps to Reproduce: gcc -I. -I/var/tmp/portage/bitchx-1.1/work/BitchX/include -I../include -I. -I./include -O2 -pipe -Wall \ -DPLUGINDIR=\"/usr/lib/bx/plugins\" -DSHLIB_SUFFIX=\".so\" -c ./modules.c misc.c: In function `ar_query_name': misc.c:2405: error: `HEADER' undeclared (first use in this function) misc.c:2405: error: (Each undeclared identifier is reported only once misc.c:2405: error: for each function it appears in.) misc.c:2405: error: `hptr' undeclared (first use in this function) misc.c:2408: error: `QUERY' undeclared (first use in this function) misc.c:2415: error: parse error before ')' token misc.c: In function `do_query_name': misc.c:2491: error: `T_A' undeclared (first use in this function) misc.c:2494: error: `C_IN' undeclared (first use in this function) misc.c: In function `do_query_number': misc.c:2542: error: `T_PTR' undeclared (first use in this function) misc.c:2548: error: `C_IN' undeclared (first use in this function) misc.c: In function `ar_resend_query': misc.c:2563: error: `T_PTR' undeclared (first use in this function) misc.c:2566: error: `T_A' undeclared (first use in this function) misc.c: At top level: misc.c:2581: error: parse error before "HEADER" misc.c: In function `ar_procanswer': misc.c:2588: error: `buf' undeclared (first use in this function) misc.c:2589: error: `rptr' undeclared (first use in this function) misc.c:2609: error: `hptr' undeclared (first use in this function) misc.c:2610: error: `eob' undeclared (first use in this function) misc.c:2610: error: `QFIXEDSZ' undeclared (first use in this function) misc.c:2639: error: `T_A' undeclared (first use in this function) misc.c:2644: error: `C_IN' undeclared (first use in this function) misc.c:2654: error: `T_PTR' undeclared (first use in this function) misc.c:2678: error: `T_CNAME' undeclared (first use in this function) misc.c: In function `ar_answer': misc.c:2708: error: `HEADER' undeclared (first use in this function) misc.c:2708: error: parse error before "hptr" misc.c:2721: error: `hptr' undeclared (first use in this function) misc.c:2739: error: `NOERROR' undeclared (first use in this function) misc.c:2743: error: `NXDOMAIN' undeclared (first use in this function) misc.c:2746: error: `SERVFAIL' undeclared (first use in this function) misc.c:2752: error: `FORMERR' undeclared (first use in this function) misc.c:2753: error: `NOTIMP' undeclared (first use in this function) misc.c:2754: error: `REFUSED' undeclared (first use in this function) misc.c:2774: error: `T_PTR' undeclared (first use in this function) misc.c:2781: error: `T_A' undeclared (first use in this function) misc.c:2802: error: `C_IN' undeclared (first use in this function) make[1]: *** [misc.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [BitchX] Error 2 !!! ERROR: net-irc/bitchx-1.1 failed. !!! Function src_compile, Line 89, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message.
injected: >>> Injected sys-apps/man-1.5m-r1. sys-apps/man-1.5m-r1 >>> Injected sys-apps/libperl-5.8.4-r1. >>> Injected sys-apps/portage-2.0.51_pre13. >>> Injected sys-apps/groff-1.19.>>> Injected sys-devel/libperl-5.8.3-r1. >>> Injected dev-lang/perl-5.8.4.
My guess is this has to do with the difference between a .so and a .dylib library. I'm not sure what the difference is (if it's more than a name) or how to fix it, but I has been done. Will report back with an update. I have see this bug. Wish to confirm it.
Howto make Bitchx work on macos: We need to create a simple sys-libs/dlcompat ebuild. Source code for dlcompat: http://unc.dl.sourceforge.net/fink/dlcompat-20030629.tar.gz. It's a ./configure && make && make install type of package, so just an empty ebuild with SRC_URI to the above suffices. We need to add a macos ? (sys-libs/dlcompat) dependency to the bitchx ebuild. The patches to make bitchx work: http://bitchx.darwinports.com/dports/irc/bitchx/files/patch-Makefile.in http://bitchx.darwinports.com/dports/irc/bitchx/files/patch-source__server.c I passed --without-gtk --without-ssl to the bitchx ./configure . May work with gtk and ssl, not tested. Feel free to test. To get past this compile error, for "-DBIND_8_COMPAT" in the CFLAGS. Have tested this. Works fine. Pieter
I followed the instructions in #3, and now there's a new compile error: gcc -I. -I/var/tmp/portage/bitchx-1.1-r1/work/BitchX/include -I../../include -I. -I./include -O2 -pipe -DBIND_8_COMPAT -Wall -c ./autobot.c gcc -shared autobot.o ../dllinit.o -fPIC -o autobot.so gcc: unrecognized option `-shared' ld: Undefined symbols: _main make[2]: *** [autobot.so] Error 1 make[1]: *** [all] Error 1 make: *** [dll] Error 2 !!! ERROR: net-irc/bitchx-1.1-r1 failed. !!! Function src_compile, Line 94, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. My emerge info: !!! Using `which gcc` to gcc locate version, this may break !!! DISTCC, installing gcc-config and setting your current gcc !!! profile will fix this Portage 20040726 (default-macos-10.3, gcc-3.3, unavailable, 7.4.0 Power Macintosh powerpc) ================================================================= System uname: 7.4.0 Power Macintosh powerpc macos-20040726 distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] Autoconf: Automake: Binutils: ACCEPT_KEYWORDS="macos" AUTOCLEAN="yes" CFLAGS="-O2 -pipe" CHOST="powerpc-apple-darwin" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="collision-protect cvs keepwork" GENTOO_MIRRORS="http://gentoo.osuosl.org/" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="macos"
Instructions in #3 work perfectly, exactly the same as the darwinports build!
FYI OS X >=10.3 ships with the dlcompat library, so don't bother writing an ebuild for it.
way pre-prefix stuff ;)