AIX FIX 'bitmap "icon" not defined'

Scott Danielson (danielss@uhc.com)
Sun, 2 Feb 1997 21:10:30 -0600 (CST)

I think I got it this time, after spending several days trying to duplicate the
feat I previously talked about in my AIX work around message I sent awail back.

1. Please disregard the previous work around I sent.
2. Disclaimer - I'm not a programmer.
3. The previous work around was a fluke! After working on getting it compiled the first time I overlooked the real solution.

Here is the short version of what works, don't ask me to explain because I can't, but the following does work. I tested on two AIX systems, starting from scratch.

The real trick was to get rid of the tk source before running tkined1.4.5. Even on the AIX system I previously install tkined and got working, if I recompiled the tk source "not installing", tkined1.4.5 would break.

Like many others I'd like to know why this happens?

----------------------------- TCL 7.6. SECTION ------------------------------

1. Add -bnoentry option to ldAix command.
This corrects the "ld: 0711-327 WARNING: Entry point not found: __start" error.

2. ./configure --enable-gcc --enable-shared

3. make

4. make install

############ DIFF current and original tcl configure ############
3177c3177
< SHLIB_LD="$fullSrcDir/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -
T512 -bnoentry"

---
>       SHLIB_LD="$fullSrcDir/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -
T512"

----------------------------- TK 4.2 SECTION ------------------------------

1. ./configure --enable-gcc --enable-shared

2. make

3. make install

4. make distclean "THIS IS VERY IMPORTANT" I don't know why but if the tk source directory is not cleaned you get the biggy: 'bitmap "icon" not defined', causing tkined to hang.

----------------------------- Scotty SECTION ------------------------------

Scotty required extra libraries in two places tnm and tkined.

1. I added "-lm -lld -lc" the LIBS entry in the configure script, See diff below:

2. I added additional library variables to the Makefile.in; tnm needed $(TCL_LIB_SPEC) added and tkined needed $(TCL_LIB_SPEC), $(TK_LIB_SPEC), and -lX11added, see diff below.

3. ./configure --enable-gcc

4. make

5. make install

5. make sinstall

############ DIFF current and original scotty Makefile.in ############ $diff scotty2.1.5/unix/Makefile.in working-scotty2.1.5/unix/Makefile.in 1758c1758 < LIBS="-lrpcsvc $LIBS"

---
> LIBS="-lrpcsvc -lm -lld -lc $LIBS" # NOT AIX
1781c1781
<   LIBS="$LIBS -lrpcsvc"
---
>   LIBS="$LIBS -lrpcsvc -lm -lld -lc"
378c378
<       $(SHLIB_LD) $(TNM_OBJS) -o tnm$(SHLIB_SUFFIX) $(LIBS) $(OSIMIS_LIBS) $(M
SQL_LIBS) $(GDMO_LIBS)
---
>       $(SHLIB_LD) $(TNM_OBJS) -o tnm$(SHLIB_SUFFIX) $(LIBS) $(TCL_LIB_SPEC) $(
OSIMIS_LIBS) $(MSQL_LIBS) $(GDMO_LIBS)
383c383
<       $(SHLIB_LD) $(TKI_GENERIC_OBJS) -o tkined$(SHLIB_SUFFIX) $(LIBS)
---
>       $(SHLIB_LD) $(TKI_GENERIC_OBJS) -o tkined$(SHLIB_SUFFIX) $(TCL_LIB_SPEC)
 $(TK_LIB_SPEC) $(LIBS) -lX11

---------- TO CHANGE FROM TCL7.5 to TCL7.6 and TK4.1 to TK4.2 ------------ In addition to the above changes I also changed all referances to tk 4.1 to 4.2 and tcl 7.5 to 7.6 in the following files, to get scotty to work with the new TCL and TK versions: scotty-2.1.5/tkined/generic/tkiInit.c scotty-2.1.5/unix/configure scotty-2.1.5/unix/tkined

I hope this can help others trying to run tkined on AIX and ultimatily in a distributed fix. Thanks

-- 

Scott J. Danielson

Unix Services & Consulting _/ _/ _/ _/ _/_/_/ United HealthCare Corp. _/ _/ _/ _/ _/ _/ E-Mail: danielss@uhc.com _/ _/ _/_/_/_/ _/ AT&T: (612) 797-4269 _/ _/ _/ _/ _/ _/ Fax: (612) 797-4333 _/_/_/ _/ _/ _/_/_/ Route: MN10-W116

-- 

Scott J. Danielson

Unix Services & Consulting _/ _/ _/ _/ _/_/_/ United HealthCare Corp. _/ _/ _/ _/ _/ _/ E-Mail: danielss@uhc.com _/ _/ _/_/_/_/ _/ AT&T: (612) 797-4269 _/ _/ _/ _/ _/ _/ Fax: (612) 797-4333 _/_/_/ _/ _/ _/_/_/ Route: MN10-W116

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.