Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60551 - [MACOS] elinks wont compile for a Makefile error
Summary: [MACOS] elinks wont compile for a Makefile error
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC All
: High normal (vote)
Assignee: osx porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-16 06:07 UTC by dario
Modified: 2004-08-31 10:56 UTC (History)
0 users

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


Attachments
patch that make elinks compile on macos (elinks-macos.patch,707 bytes, patch)
2004-08-31 10:50 UTC, dario
Details | Diff
patch for elinks-0.9.2-rc4.ebuild (elinks-ebuild.patch,690 bytes, patch)
2004-08-31 10:52 UTC, dario
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dario 2004-08-16 06:07:28 UTC
The output:

rm -f libviewer_dump.a
ar cru libviewer_dump.a dump.o 
ranlib libviewer_dump.a
Making all in text
gcc -DHAVE_CONFIG_H -I`dirname ../../../config.h` -I../../../src    -O2 -pipe -Wall -fno-strict-aliasing -c form.c
gcc -DHAVE_CONFIG_H -I`dirname ../../../config.h` -I../../../src    -O2 -pipe -Wall -fno-strict-aliasing -c link.c
gcc -DHAVE_CONFIG_H -I`dirname ../../../config.h` -I../../../src    -O2 -pipe -Wall -fno-strict-aliasing -c marks.c
gcc -DHAVE_CONFIG_H -I`dirname ../../../config.h` -I../../../src    -O2 -pipe -Wall -fno-strict-aliasing -c search.c
gcc -DHAVE_CONFIG_H -I`dirname ../../../config.h` -I../../../src    -O2 -pipe -Wall -fno-strict-aliasing -c textarea.c
gcc -DHAVE_CONFIG_H -I`dirname ../../../config.h` -I../../../src    -O2 -pipe -Wall -fno-strict-aliasing -c view.c
gcc -DHAVE_CONFIG_H -I`dirname ../../../config.h` -I../../../src    -O2 -pipe -Wall -fno-strict-aliasing -c vs.c
rm -f libviewer_text.a
ar cru libviewer_text.a form.o link.o marks.o search.o textarea.o view.o vs.o 
ranlib libviewer_text.a
make[4]: Nothing to be done for `all-am'.
gcc -DHAVE_CONFIG_H -I`dirname ../config.h` -I../src    -O2 -pipe -Wall -fno-strict-aliasing -c main.c
make[3]: *** No rule to make target `-liconv', needed by `elinks'.  Stop.
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2

Looking at the main Makefile there is the target elinks_DEPENDENCIES that contain many (correct) library target and -liconv: I've tried to remove this from the Makefile and I issued a "make clean; make", but I obtain the following error:

gcc -DHAVE_CONFIG_H -I`dirname ../config.h` -I../src    -O2 -pipe -Wall -fno-strict-aliasing -c main.c
gcc  -O2 -pipe -Wall -fno-strict-aliasing -rdynamic -o elinks  main.o ../src/intl/gettext/libintl.a modules/libmodules.a  protocol/rewrite/liburirewrite.a  cookies/libcookies.a  viewer/text/libviewer_text.a  viewer/dump/libviewer_dump.a  cache/libcache.a  document/libdocument.a  intl/libintl.a  sched/libsched.a  lowlevel/liblowlevel.a  terminal/libterminal.a  scripting/libscripting.a  scripting/guile/libscriptingguile.a  scripting/lua/libscriptinglua.a  osdep/libosdep.a  protocol/libprotocol.a  protocol/file/libfile.a  protocol/ftp/libftp.a  protocol/http/libhttp.a  protocol/smb/libsmb.a  protocol/auth/libauth.a  ssl/libssl.a  bookmarks/libbookmarks.a  formhist/libformhist.a  globhist/libglobhist.a  config/libconfig.a  dialogs/libdialogs.a  mime/libmime.a  bfu/libbfu.a  encoding/libencoding.a  util/libutil.a -lexpat -lbz2 -lz -ldl 
gcc: unrecognized option `-rdynamic'
ld: warning empty table of contents: scripting/libscripting.a (can't load from it)
ld: warning empty table of contents: scripting/guile/libscriptingguile.a (can't load from it)
ld: warning empty table of contents: scripting/lua/libscriptinglua.a (can't load from it)
ld: warning empty table of contents: ssl/libssl.a (can't load from it)
ld: warning table of contents of library: formhist/libformhist.a not sorted slower link editing will result (use the ranlib(1) -s option)
ld: Undefined symbols:
_libiconv
_libiconv_close
_libiconv_open
make[1]: *** [elinks] Error 1
make: *** [all-recursive] Error 1

Tried with o.9.1-r1 and 0.9.2_rc4

Reproducible: Always
Steps to Reproduce:
1.emerge elinks
2.
3.



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: sys-devel/autoconf-2.57
Automake: sys-devel/automake-1.6.3
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="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="macos X berkdb ldap mysql perl python ruby zlib"
Comment 1 dario 2004-08-31 10:48:50 UTC
Fixed all errors with a little patch for the configure script, now compile fine for macos too.
The collision protect block the merge for this 2 files written by glib and texinfo:

existing file /usr/lib/charset.alias is not owned by this package
existing file /usr/share/locale/locale.alias is not owned by this package

The first one seems doesn't matter if overwriten (the file contains only comments), the second one have this diff:

50c49
< hebrew          he_IL.ISO-8859-8
---
> hebrew          iw_IL.ISO-8859-8
Comment 2 dario 2004-08-31 10:50:53 UTC
Created attachment 38595 [details, diff]
patch that make elinks compile on macos
Comment 3 dario 2004-08-31 10:52:20 UTC
Created attachment 38596 [details, diff]
patch for elinks-0.9.2-rc4.ebuild
Comment 4 dario 2004-08-31 10:56:43 UTC
was forgetting, works fine in terminal.app (without mouse handling) and in xterm :)

I have enabled the X and zlib use flags