Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56732 - Porting: bitchx
Summary: Porting: bitchx
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High major (vote)
Assignee: osx porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-11 15:18 UTC by Alexander Plank (RETIRED)
Modified: 2007-07-24 20:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Plank (RETIRED) gentoo-dev 2004-07-11 15:18:55 UTC
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.
Comment 1 Alexander Plank (RETIRED) gentoo-dev 2004-07-11 15:19:34 UTC
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.
Comment 2 Nick Dimiduk (RETIRED) gentoo-dev 2004-07-23 13:17:11 UTC
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.
Comment 3 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-07-23 14:05:59 UTC
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
Comment 4 Robin Munn 2004-07-29 18:17:22 UTC
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"
Comment 5 josh64 2004-10-02 05:09:24 UTC
Instructions in #3 work perfectly, exactly the same as the darwinports build!
Comment 6 Kito (RETIRED) gentoo-dev 2004-10-02 11:24:06 UTC
FYI OS X >=10.3 ships with the dlcompat library, so don't bother writing an ebuild for it.
Comment 7 Markus Ullmann (RETIRED) gentoo-dev 2007-07-24 20:07:04 UTC
way pre-prefix stuff ;)