Bug 74291

Summary: _XEditResCheckMessages is defined in libXm and libXmu
Product: [Retired] Red Hat Linux Reporter: Need Real Name <aglyport>
Component: openmotifAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-09-19 18:46:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2002-09-19 18:45:57 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020826

Description of problem:
_XEditResCheckMessages is defined in libXm and libXmu

Applications that require both libXm and libXmu do not link.

g++ -D__cfront__  -o txt s_textbook.o libmaint.o ordering.o inv_ret.o vendor.o
txt.o crs.o rept.o wsapp.o wsmain.o pwent.o ../../export/export2scs.o maininit.o
../../export/libexport.o ../../export/export2web.o /u/src/txt/txt/libtags.a
/u/src/txt/txt/libtxt.a /u/src/txt/txt/version.o /u/src/txt/dbv/libdbv.a
/u/src/txt/txt/libstxt.a /u/src/txt/txt/wsdoc.o ../zinc/libzinc.a
/u/src/txt/txt/libtxt.a /u/src/txt/general/libagen.a /usr/local/src/bip/bipapi.a
/usr/local/src/bip/lsapi.a   \
        -L/usr/local/Zinc_mtf/lib -L/usr/local/lib -ltcl8.3 \
        -l_mtf_zil /usr/X11R6/lib/libXm.a /usr/X11R6/lib/libXmu.a
/usr/X11R6/lib/libXp.a /usr/X11R6/lib/libXext.a /usr/X11R6/lib/libXt.a
/usr/X11R6/lib/libSM.a /usr/X11R6/lib/libICE.a /usr/X11R6/lib/libX11.a -lgdbm 
/u/src/txt/txt/config2.o -L/usr/local/lib/python2.2/config -lpython2.2 
-L/usr/local/src/db_VISTA.4.5/rom30/lib/ -lomrdm
/usr/local/src/db_VISTA.4.5/lib/libqueryc.a
/usr/local/src/db_VISTA.4.5/lib/libvistact.a -ll -lpthread -ldl -lutil -lcrypt -lm
/usr/X11R6/lib/libXmu.a(EditresCom.o): In function `_XEditResCheckMessages':
EditresCom.o(.text+0x0): multiple definition of `_XEditResCheckMessages'
/usr/X11R6/lib/libXm.a(EditresCom.o)(.text+0x70): first defined here

ordering.o: In function `prnbackorder(StoreRef &)':
/usr/local/src/txb/appz/ordering.C:1963: the use of `tmpnam' is dangerous,
better use `mkstemp'
/usr/local/lib/python2.2/config/libpython2.2.a(posixmodule.o): In function
`posix_tmpnam':
/usr/local/src/Python-2.2.1/./Modules/posixmodule.c:4501: the use of `tmpnam_r'
is dangerous, better use `mkstemp'
/usr/local/lib/python2.2/config/libpython2.2.a(posixmodule.o): In function
`posix_tempnam':
/usr/local/src/Python-2.2.1/./Modules/posixmodule.c:4451: the use of `tempnam'
is dangerous, better use `mkstemp'
collect2: ld returned 1 exit status
gmake[2]: *** [txt] Error 1
gmake[2]: Leaving directory `/u/src/txt/mtf/appz'
gmake[1]: *** [txt] Error 2
gmake[1]: Leaving directory `/u/src/txt/mtf'
gmake: *** [zmtf] Error 2


From nm on RH7.3:

libXm.a
         U _XEditResCheckMessages
00000070 T _XEditResCheckMessages
libXmu.a
00000000 T _XEditResCheckMessages


In RH7.2 this symbol appears only in Xmu:

libXmu.a
00000000 T _XEditResCheckMessages


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Link an app with libXm.a and libXmu.a
2.
3.
	

Actual Results:  The app won't link.

Expected Results:  An app should've linked/

Additional info:

Comment 1 Ngo Than 2002-11-06 16:03:52 UTC
It's fixed in 2.2.2-13. You will find it in next rawhide release.