Hi,
I got Texinfo 4.8 to compile under Mac OS X 10.4.2 by doing the following after make died:

texinfo-4.8 mdb$         cd  lib
texinfo-4.8/lib mdb$    ar -d libtxi.a getopt.o getopt1.o
texinfo-4.8/lib mdb$    cd ..; make

Everything seems to work fine with this new version of makeinfo so far. Basically, make was getting confused by the mulitple defs of getopt in the Mac's /lib files and the created libtxi.

Is there a way the configure script can be written to handle the multiple defs of getopt, or can some sort of linker flags be passed for the loader to ignore multiple defs?

Marshall



On Jul 10, 2005, at 9:58 AM, Karl Berry wrote:

    /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libc.dylib
    (getopt.So) definition of _getopt

    ../lib/libtxi.a(getopt.o) definition of _getopt in section
    (__TEXT,__text)

On other systems, a definition in a .a will normally be used in
preference to a version in a dynamic library without error. That's one
of the things dynamic libraries are for.  Maybe there is an option you
can pass to ld to change the behavior?

It's puzzling, since I had the impression that texinfo has been
previously compiled on macosx, but I guess I don't know for sure.

In any case, if macosx really provides GNU getopt in libc (but I rather suspect it is BSD getopt, which won't help), you could remove the getopt files from libtxi_a_SOURCES and am_libtxi_a_OBJECTS in lib/ Makefile.in,
rerun configure and make.  But that won't help with the last error:

/usr/bin/ld: warning multiple definitions of symbol _locale_charset /sw/lib/libintl.dylib(localcharset.o) definition of _locale_charset /sw/lib/libiconv.dylib(localcharset.o) definition of _locale_charset

which is reporting a conflict between two system libraries.  Surely
-lintl and -liconv should both be able to be linked against. So I don't
know what to suggest about that.

Sorry I can't help more. Maybe a Mac user here can give better advice.
Failing that, posting on a mac porting list might be your best shot.

Karl




_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo
[email protected]
http://lists.gnu.org/mailman/listinfo/help-texinfo

Reply via email to