Closed Bug 296 Opened 27 years ago Closed 26 years ago

Build Failed - Undefined symbols

Categories

(SeaMonkey :: Build Config, defect, P3)

Other
AIX
defect

Tracking

(Not tracked)

CLOSED INVALID

People

(Reporter: dcrs6000, Assigned: briano)

Details

Created by Dwight Chang (dcrs6000@pacbell.net) on Monday, May 4, 1998 6:01:36 PM PDT Additional Details : Environment: IBM Rs/6000 Power 2(MCA) System IBM AIX 4.2.1 CDE X11 R5 IBM xlC Ver. 3.1.4.8, xlC Ver. 4.1 and GNU C/C++ Ver. 2.8.1 GNU make Ver. 3.76 Source Code Version: unix-19980429.tar.gz Problem: (Solved) ENDIAN definition problems h_page.c and hash.c had to be modified because of a recursive #include of the header file "mcom_db.h". It seems that the header file hash.h has an include for the "mcom_db.h" file. Not sure why, but when the compiler performs all the includes the ENDIAN definitions do not get defined. This occures when I use gcc, IBM C Ver. 3 and 4. Problem: (Solved) Due to "Undefined Symbol" problems I modified the "ld" command by adding all "-L" and "-l" directives to allow the build to occur. gmake of /tmp/GNU/ns/mozilla/js/src ld -brtl -bM:SRE -bnoentry -bexpall \ -o AIX4.2_OPT.OBJ/libjs.so AIX4.2_OPT.OBJ/jsapi.o AIX4.2_OPT.OBJ/jsarray.o \ AIX4.2_OPT.OBJ/jsatom.o AIX4.2_OPT.OBJ/jsbool.o AIX4.2_OPT.OBJ/jscntxt.o \ AIX4.2_OPT.OBJ/jsdate.o AIX4.2_OPT.OBJ/jsdbgapi.o AIX4.2_OPT.OBJ/jsemit.o \ AIX4.2_OPT.OBJ/jsfun.o AIX4.2_OPT.OBJ/jsgc.o AIX4.2_OPT.OBJ/jsinterp.o \ AIX4.2_OPT.OBJ/jsmath.o AIX4.2_OPT.OBJ/jsnum.o AIX4.2_OPT.OBJ/jsobj.o \ AIX4.2_OPT.OBJ/jsopcode.o AIX4.2_OPT.OBJ/jsparse.o AIX4.2_OPT.OBJ/jsregexp.o\ AIX4.2_OPT.OBJ/jsscan.o AIX4.2_OPT.OBJ/jsscope.o AIX4.2_OPT.OBJ/jsscript.o \ AIX4.2_OPT.OBJ/jsstr.o AIX4.2_OPT.OBJ/jslock.o AIX4.2_OPT.OBJ/jsxdrapi.o \ AIX4.2_OPT.OBJ/prmjtime.o AIX4.2_OPT.OBJ/prarena.o \ -L /tmp/GNU/ns/mozilla/dist/AIX4.2_OPT.OBJ/lib -lplds21 \ -L /tmp/GNU/ns/mozilla/dist/AIX4.2_OPT.OBJ/lib -lnspr21 \ -L /usr/lib -lm -lc -lc_r Problem: (UNSOLVED - UNABLE TO DETERMINE PROBLEM!) Due to "Undefined Symbol" problems I modified the "ld" command by adding all "-L" and "-l" directives to allow the build to occur. gmake of /tmp/GNU/ns/mozilla/xpcom/src ld -brtl -bM:SRE -bnoentry -bexpall \ -o AIX4.2_OPT.OBJ/libxpcom.so AIX4.2_OPT.OBJ/nsDebug.o \ AIX4.2_OPT.OBJ/nsHashtable.o AIX4.2_OPT.OBJ/nsID.o \ AIX4.2_OPT.OBJ/nsRepository.o \ -L /tmp/GNU/ns/mozilla/dist/AIX4.2_OPT.OBJ/lib -lnspr21 \ -L /tmp/GNU/ns/mozilla/dist/AIX4.2_OPT.OBJ/lib -lplds21 \ -L /tmp/GNU/ns/mozilla/dist/AIX4.2_OPT.OBJ/lib -lplc21 \ -L /usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.8.1 -lgcc \ -lc Problem: Due to "Undefined Symbol" problems I modified the "ld" command by adding all "-L" and "-l" directives to allow the build to occur. However; in this case I was unable to find some Undefined Symbols in any of the libraries that had been created already. gmake of /tmp/GNU/ns/mozilla/modules/libhook/src ld -brtl -bM:SRE -bnoentry -bexpall \ -o AIX4.2_OPT.OBJ/libhook.so AIX4.2_OPT.OBJ/hk_conf.o AIX4.2_OPT.OBJ/hk_file.o \ AIX4.2_OPT.OBJ/hk_hook.o AIX4.2_OPT.OBJ/hk_init.o AIX4.2_OPT.OBJ/hk_tag.o \ -L /tmp/GNU/ns/mozilla/dist/AIX4.2_OPT.OBJ/lib -ljs \ -L /tmp/GNU/ns/mozilla/dist/AIX4.2_OPT.OBJ/lib -lplds21 \ -L /tmp/GNU/ns/mozilla/dist/AIX4.2_OPT.OBJ/lib -lnspr21 \ -L /usr/lib -lm -lc -lc_r ld: 0711-224 WARNING: Duplicate symbol: .PL_ArenaGrow ld: 0711-224 WARNING: Duplicate symbol: PL_ArenaGrow ld: 0711-224 WARNING: Duplicate symbol: .PL_ArenaRelease ld: 0711-224 WARNING: Duplicate symbol: .PL_ArenaAllocate ld: 0711-224 WARNING: Duplicate symbol: .PL_ArenaFinish ld: 0711-224 WARNING: Duplicate symbol: .PL_CompactArenaPool ld: 0711-224 WARNING: Duplicate symbol: .PL_FinishArenaPool ld: 0711-224 WARNING: Duplicate symbol: .PL_FreeArenaPool ld: 0711-224 WARNING: Duplicate symbol: .PL_InitArenaPool ld: 0711-224 WARNING: Duplicate symbol: PL_ArenaAllocate ld: 0711-224 WARNING: Duplicate symbol: PL_ArenaRelease ld: 0711-224 WARNING: Duplicate symbol: PL_FinishArenaPool ld: 0711-224 WARNING: Duplicate symbol: PL_InitArenaPool ld: 0711-224 WARNING: Duplicate symbol: PL_ArenaFinish ld: 0711-224 WARNING: Duplicate symbol: PL_FreeArenaPool ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. ld: 0711-317 ERROR: Undefined symbol: .PA_TagIndex ld: 0711-317 ERROR: Undefined symbol: .PA_TagString ld: 0711-317 ERROR: Undefined symbol: .PREF_GetConfigContext ld: 0711-317 ERROR: Undefined symbol: .PREF_GetGlobalConfigObject ld: 0711-317 ERROR: Undefined symbol: .xp_toupper ld: 0711-317 ERROR: Undefined symbol: .FE_Alert ld: 0711-317 ERROR: Undefined symbol: .XP_Stat ld: 0711-317 ERROR: Undefined symbol: .XP_FileOpen ld: 0711-317 ERROR: Undefined symbol: .XP_FileClose Updated by Brian Ostrom (briano@netscape.com) on Monday, July 13, 1998 6:07:49 PM PDT Additional Details : Is this still a problem with the latest source release?
Status: NEW → ASSIGNED
Dwight, Changes are going in all over the tree to support AIX 4.2. I believe (when all the modifications are in) you will be able to build and link successfully. When I'm sure, I will close this bug. Please give it another try when you see these files checked in (you will need to setenv USE_PTHREADS 1 in your environment): mozilla/include/mcom_db.h mozilla/dbm/include/mcom_db.h mozilla/xpcom/src/nsRepository.cpp mozilla/network/main/mkconect.c mozilla/network/main/autoupdt.h mozilla/network/protocol/ftp/mkftp.c mozilla/caps/src/nsPrivilegeManager.cpp mozilla/modules/libpref/src/prefapi.c mozilla/modules/rdf/src/glue.h mozilla/modules/xml/glue/xmlglue.h mozilla/lib/libi18n/fe_ccc.c mozilla/lib/libmocha/et_moz.c mozilla/lib/libpics/csparse.h mozilla/cmd/xfe/src/DragDrop.cpp mozilla/cmd/xfe/fonts.c mozilla/cmd/xfe/mozilla.c mozilla/cmd/xfe/Makefile
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
I think this can be closed because the source is now completely unrelated to what it was when this bug was submitted. And AIX support is once again forced to start from nothing.... <sigh>
Status: RESOLVED → CLOSED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.