libtool problem on OS X

Jeff Carneal jeff-ml at soldmy.net
Fri Feb 9 16:57:17 EST 2007


Well, I do appreciate you trying anyway.

I ended up blasting my macports install and installing all the gnu  
build tools by hand to /usr/local (where the rest of my stuff is) and  
it stopped the problem below.

Now though I am getting the following error.  Any thoughts on how to  
fix it?

I've got a couple of reproducible crashes on the 2.0.4 version and  
I'll take a look at fixing those once I get this svn version compiled.

Jeff

gcc -dynamiclib ${wl}-flat_namespace ${wl}-undefined ${wl}suppress - 
o .libs/libgncmod-register-gnome.dylib  .libs/gncmod-register- 
gnome.o .libs/combocell-gnome.o .libs/datecell-gnome.o .libs/ 
formulacell-gnome.o .libs/gnucash-color.o .libs/gnucash- 
cursor.o .libs/gnucash-date-picker.o .libs/gnucash-grid.o .libs/ 
gnucash-header.o .libs/gnucash-item-edit.o .libs/gnucash-item- 
list.o .libs/gnucash-scrolled-window.o .libs/gnucash-sheet.o .libs/ 
gnucash-style.o .libs/pricecell-gnome.o .libs/quickfillcell- 
gnome.o .libs/table-gnome.o  ../../../src/register/register- 
core/.libs/libgncmod-register-core.dylib -L/usr/local/lib -L/usr/ 
X11R6/lib /Users/jeff/A/src/gnucash/gnucash/src/gnome-utils/.libs/ 
libgncmod-gnome-utils.dylib /Users/jeff/A/src/gnucash/gnucash/src/ 
backend/file/.libs/libgnc-backend-file-utils.dylib /Users/jeff/A/src/ 
gnucash/gnucash/src/network-utils/.libs/libgncmod-network- 
utils.dylib /Users/jeff/A/src/gnucash/gnucash/src/app-utils/.libs/ 
libgncmod-app-utils.dylib /Users/jeff/A/src/gnucash/gnucash/src/ 
engine/.libs/libgncmod-engine.dylib /Users/jeff/A/src/gnucash/gnucash/ 
src/gnc-module/.libs/libgnc-module.dylib /Users/jeff/A/src/gnucash/ 
gnucash/src/calculation/.libs/libgncmod-calculation.dylib /Users/jeff/ 
A/src/gnucash/gnucash/src/core-utils/.libs/libgnc-core-utils.dylib / 
usr/local/lib/libgtkhtml-3.8.dylib /usr/local/lib/libgailutil.dylib / 
usr/local/lib/libgnomeprintui-2-2.dylib /usr/local/lib/ 
libgoffice-1.dylib /usr/local/lib/libesd.dylib /usr/local/lib/ 
libaudiofile.dylib /usr/local/lib/libgsf-gnome-1.dylib /usr/local/lib/ 
libdbus-glib-1.dylib /usr/local/lib/libdbus-1.dylib /usr/local/lib/ 
libORBitCosNaming-2.dylib /usr/local/lib/libgsf-1.dylib /usr/local/ 
lib/libglade-2.0.dylib /usr/local/lib/libgnomeprint-2-2.dylib /usr/ 
local/lib/libfontconfig.dylib /usr/local/lib/libfreetype.dylib /usr/ 
local/lib/libpng12.dylib /usr/local/lib/libXrender.dylib /usr/local/ 
lib/libxml2.dylib /usr/local/lib/libguile.dylib /usr/local/lib/ 
libguile-ltdl.dylib /Users/jeff/A/src/gnucash/gnucash/lib/libqof/ 
qof/.libs/libgnc-qof.dylib /usr/lib/libiconv.dylib /usr/lib/ 
libc.dylib /usr/lib/libm.dylib ../../../src/core-utils/.libs/libgnc- 
core-utils.dylib /usr/lib/libdl.dylib /usr/lib/libresolv.dylib /usr/ 
lib/libpthread.dylib /usr/lib/libz.dylib ../../../src/gnc- 
module/.libs/libgnc-module.dylib ../../../src/engine/.libs/libgncmod- 
engine.dylib ../../../src/app-utils/.libs/libgncmod-app- 
utils.dylib ../../../src/gnome-utils/.libs/libgncmod-gnome- 
utils.dylib /usr/lib/libssl.dylib /usr/lib/libcrypto.dylib /usr/lib/ 
libbz2.dylib ../../../lib/libqof/qof/.libs/libgnc-qof.dylib /usr/ 
local/lib/libgnomeui-2.dylib /usr/X11R6/lib/libSM.dylib /usr/X11R6/ 
lib/libICE.dylib /usr/X11R6/lib/libX11.dylib -lSM -lICE /usr/local/ 
lib/libbonoboui-2.dylib /usr/local/lib/libgnomevfs-2.dylib /usr/local/ 
lib/libgnome-keyring.dylib /usr/local/lib/libgnomecanvas-2.dylib /usr/ 
local/lib/libgnome-2.dylib /usr/local/lib/libart_lgpl_2.dylib /usr/ 
local/lib/libpangoft2-1.0.dylib /usr/local/lib/libgtk-x11-2.0.dylib / 
usr/local/lib/libgdk-x11-2.0.dylib /usr/local/lib/libatk-1.0.dylib / 
usr/local/lib/libgdk_pixbuf-2.0.dylib /usr/local/lib/ 
libpangocairo-1.0.dylib /usr/local/lib/libpango-1.0.dylib /usr/local/ 
lib/libcairo.dylib /usr/local/lib/libbonobo-2.dylib /usr/local/lib/ 
libbonobo-activation.dylib /usr/local/lib/libgconf-2.dylib /usr/local/ 
lib/libgmodule-2.0.dylib /usr/local/lib/libORBit-2.dylib /usr/local/ 
lib/libgthread-2.0.dylib /usr/local/lib/libgobject-2.0.dylib /usr/ 
local/lib/libglib-2.0.dylib /usr/local/lib/libintl.dylib /usr/local/ 
lib/libiconv.dylib /usr/local/lib/libpopt.dylib -lm  -install_name  / 
usr/local/lib/gnucash/libgncmod-register-gnome.dylib
ld: multiple definitions of symbol _gnc_module_current
.libs/gncmod-register-gnome.o definition of _gnc_module_current in  
section (__DATA,__data)
../../../src/register/register-core/.libs/libgncmod-register- 
core.dylib(gncmod-register-core.o) definition of _gnc_module_current
ld: multiple definitions of symbol _gnc_module_init
.libs/gncmod-register-gnome.o definition of _gnc_module_init in  
section (__TEXT,__text)
../../../src/register/register-core/.libs/libgncmod-register- 
core.dylib(gncmod-register-core.o) definition of _gnc_module_init
ld: multiple definitions of symbol _gnc_module_path
.libs/gncmod-register-gnome.o definition of _gnc_module_path in  
section (__TEXT,__text)
../../../src/register/register-core/.libs/libgncmod-register- 
core.dylib(gncmod-register-core.o) definition of _gnc_module_path
ld: multiple definitions of symbol _gnc_module_revision
.libs/gncmod-register-gnome.o definition of _gnc_module_revision in  
section (__DATA,__data)
../../../src/register/register-core/.libs/libgncmod-register- 
core.dylib(gncmod-register-core.o) definition of _gnc_module_revision
ld: multiple definitions of symbol _gnc_module_system_interface
.libs/gncmod-register-gnome.o definition of  
_gnc_module_system_interface in section (__DATA,__data)
../../../src/register/register-core/.libs/libgncmod-register- 
core.dylib(gncmod-register-core.o) definition of  
_gnc_module_system_interface
ld: multiple definitions of symbol _gnc_module_age
.libs/gncmod-register-gnome.o definition of _gnc_module_age in  
section (__DATA,__data)
../../../src/register/register-core/.libs/libgncmod-register- 
core.dylib(gncmod-register-core.o) definition of _gnc_module_age
ld: multiple definitions of symbol _gnc_module_description
.libs/gncmod-register-gnome.o definition of _gnc_module_description  
in section (__TEXT,__text)
../../../src/register/register-core/.libs/libgncmod-register- 
core.dylib(gncmod-register-core.o) definition of _gnc_module_description
/usr/bin/libtool: internal link edit command failed
make[5]: *** [libgncmod-register-gnome.la] Error 1
make[5]: Leaving directory `/Volumes/500GB-1S/src/gnucash/gnucash/src/ 
register/register-gnome'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/Volumes/500GB-1S/src/gnucash/gnucash/src/ 
register/register-gnome'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/Volumes/500GB-1S/src/gnucash/gnucash/src/ 
register'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/Volumes/500GB-1S/src/gnucash/gnucash/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Volumes/500GB-1S/src/gnucash/gnucash'
make: *** [all] Error 2




On Feb 8, 2007, at 10:55 AM, Derek Atkins wrote:

> Hey,
>
> This is the same version I've got.
> I just pulled r15525 on my Mac (PPC) but I cannot reproduce this.
> It's happily building right now.
>
> -derek
>
> Jeff Carneal <jeff-ml at soldmy.net> writes:
>
>> Macports and it looks to be version 1.5.22.
>>
>> Here is the relevant section from my autogen.sh:
>>
>> ############################################################
>> #
>> # Store all required programs in variables. All of these variables
>> # could have been set by the developer beforehand, if he/she needs to
>> # override the defaults of here.
>>
>> : ${GLIB_GETTEXTIZE=glib-gettextize}
>> : ${INTLTOOLIZE=intltoolize}
>> : ${LIBTOOLIZE=glibtoolize}
>>
>> find_program "$AUTOCONF" autoconf 2.59
>> AUTOCONF="/opt/local/bin/autoconf"
>> find_program "$AUTOHEADER" autoheader 2.59
>> AUTOHEADER="/opt/local/bin/autoheader"
>> find_program "$AUTOMAKE" automake 1.9
>> AUTOMAKE="/opt/local/bin/automake"
>> find_program "$ACLOCAL" aclocal 1.9
>> ACLOCAL="/opt/local/bin/aclocal"
>>
>> Thanks,
>> Jeff
>>
>> PS - Sorry about sending a spam challenge earlier.  I have that
>> disabled on this address now.
>>
>>
>> On Feb 6, 2007, at 12:53 PM, Derek Atkins wrote:
>>
>>>
>>>
>>> What version of glibtool do you have installed on your Mac?
>>> Macports or Fink?
>>>
>>> -derek
>>>
>>> Quoting Jeff Carneal <jeff-ml at soldmy.net>:
>>>
>>>>
>>>> I'm trying to compile the latest svn sources (checked out about an
>>>> hour ago) on OS X 10.4.8.  Looks like there is some kind of libtool
>>>> trouble:
>>>>
>>>> Making all in lib
>>>> Making all in libc
>>>> /bin/sh ../../libtool --tag=CC --mode=link gcc  -Werror -
>>>> Wdeclaration-
>>>> after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -g  -g  - 
>>>> Wall -
>>>> Wunused -Wmissing-prototypes -Wmissing-declarations  -Wno-unused  -
>>>> g -
>>>> o libc-missing.la   libc-missing-noop.lo  -lpopt -lm  -lm
>>>> rm -fr  .libs/libc-missing.a
>>>> ar cru .libs/libc-missing.a .libs/libc-missing-noop.o~ranlib .libs/
>>>> libc-missing.a  <----  OOPS?
>>>> ar: .libs/libc-missing-noop.o~ranlib: No such file or directory
>>>> make[3]: *** [libc-missing.la] Error 1
>>>> make[2]: *** [all-recursive] Error 1
>>>> make[1]: *** [all-recursive] Error 1
>>>> make: *** [all] Error 2
>>>>
>>>> Obviously it is not correctly separating the 'ar' from the 'ranlib'
>>>> command but I've never used libtool so I can't seem to find  
>>>> where to
>>>> fix this.
>>>>
>>>> /libtool line 201 says the following if it helps:
>>>>
>>>> old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs\$old_deplibs~\
>>>> $RANLIB \$oldlib"
>>>>
>>>> Jeff
>>>> _______________________________________________
>>>> gnucash-devel mailing list
>>>> gnucash-devel at gnucash.org
>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>>>>
>>>
>>>
>>>
>>> -- 
>>>       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>>>       Member, MIT Student Information Processing Board  (SIPB)
>>>       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
>>>       warlord at MIT.EDU                        PGP key available
>>>
>>>
>>>
>>
>>
>>
>
> -- 
>        Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>        Member, MIT Student Information Processing Board  (SIPB)
>        URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
>        warlord at MIT.EDU                        PGP key available
>



More information about the gnucash-devel mailing list