To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=62702
                  Issue #:|62702
                  Summary:|Multiple defined symbols in libtool and icc8
                Component:|utilities
                  Version:|680m156
                 Platform:|All
                      URL:|
               OS/Version:|Linux
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|PATCH
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|hro
              Reported by:|gjin





------- Additional comments from [EMAIL PROTECTED] Wed Mar  1 22:45:33 -0800 
2006 -------
libtool adds crtbeginS.o and crtendS.o files to the link line for shared 
libraries, while icpc(Intel C++ compiler) with version>=8 does the same. Thus 
ld complains about multiple defined symbols when linking berkeleydb with Intel 
Compiler 8 or 9.

-------
icpc -shared -mIPOPT_obj_output_file_name=/tmp/ipo_icpcUdbco6.o 
-
mGLOB_obj_output_file=/tmp/ipo_icpcUdbco6.o .libs/cxx_db.o .libs/cxx_dbc.o .lib
s/cxx_dbt.o 
[ skipped … ]
-L/opt/intel/cc/9.0/lib -L/usr/lib/gcc/i586-suse-linux/4.0.2/ 
-L/usr/lib/gcc/i586-suse-linux/4.0.2/../../../ -limf -
lm /usr/lib/libstdc++.so -lcxaguard 
-lirc -lgcc_s -lirc_s -ldl -lc 
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../crti.o 
/usr/lib/gcc/i586-suse-linux/4.0.2/crtbeginS.o /usr/lib/gcc/i586-suse-
linux/4.0.2/crtendS.o 
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../crtn.o -Wl,-soname -Wl,libdb_cxx-
4.2.so 
-o .libs/libdb_cxx-4.2.so 

/usr/lib/gcc/i586-suse-linux/4.0.2/../../../crti.o: In function 
`_init': /usr/src/packages/BUILD/glibc-2.3/cc/csu/crti.S:12: multiple 
definition of `_init' 
/usr/lib/gcc/i586-suse-
linux/4.0.2/../../../crti.o:/usr/src/packages/BUILD/glibc-
2.3/cc/csu/crti.S:12: first defined here 
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../crti.o: In function 
`_fini': /usr/src/packages/BUILD/glibc-2.3/cc/csu/crti.S:12: multiple 
definition of `_fini' 
/usr/lib/gcc/i586-suse-
linux/4.0.2/../../../crti.o:/usr/src/packages/BUILD/glibc-
2.3/cc/csu/crti.S:12: first defined here 
/usr/lib/gcc/i586-suse-linux/4.0.2/crtbeginS.o:(.data.rel+0x0): multiple 
definition of `__dso_handle' 
/usr/lib/gcc/i586-suse-linux/4.0.2/crtbeginS.o:(.data.rel+0x0): first defined 
here 
make[1]: *** [libdb_cxx-4.2.la] Error 1 
--------

This issue has been fixed in libtool package, by removing '\$predep_objects' 
and '\$postdep_objects" from archive_cmds and archive_expsym_cmds for Intel 
Compiler>=8:
 http://cvs.savannah.gnu.org/viewcvs/libtool/libtool/m4/Attic/libtool.m4?
rev=1.125.2.76&view=markup

I'm porting that fix to here. Please apply.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to