[HPADM] RE: -SUMMARY2- Expect on HPUX 11.0

From: Naylor, Jim (Jnaylor@Schnucks.com)
Date: Mon Jan 30 2006 - 15:45:10 EST


Also thanks to Andy Cranston for his respons and link as follows:

If you just need basic command line expect functionality you might like to
try compiling an earlier version of expect with Tcl. You can get expect
5.28 and Tcl 8.0 from here:

http://www.lwsys.fsnet.co.uk/downloads/expect-and-tcl.htm

I don't have an earlier version of Tk I'm afraid.

Thanks to Allen Marillier and Mike Keighley for their response.

Allan was kind enough to bundle up expect, tcl, and tk binaries and I was able to installed it with no problems.

Mike sent me the following information which explains the +z message. After seeing this information from Mike I did some more searching and found that gcc uses -fPIC or -fpic in place of the +z or +Z. Looking at the Makefile the -fPIC option wass allready include as part of the SHLIB_CFLAGS. I tried putting the -fpic under CFLAGS and a couple other places but still received the same error:

The short answer is that you probably don't have to put "+z" anywhere.

It is trying to build a shared library at this point, and shared libraries
have to be compiled with position-independent code.
+z is the correct compiler argument for this under HP Ansi C but not gcc.
So, although "configure" ran successfully, it did not necessarily run
correctly !

+z is usually an argument to HP compilers (HP Ansi C etc.)
for example, this is an old configure for building zlib with HP Ansi C:
CC=cc CFLAGS="$CCOPTS +z" LDSHARED="ld -b +s" ./configure --shared

... but you appear to be running gcc, so you need to find the option for
position-independent code on that version of gcc, and either include that
in your $CFLAGS or hack "configure" to include that flag.

Alas all the later builds I have done using gcc have always built shared
libraries correctly by default, so I have not had occasion to check out
those options, sorry.

--
Mike.
Thanks,
Jim Naylor
Unix/Storage Systems Administrator
Schnuck Markets, Inc.
*  Direct (314) 994-4784
))(  Cell    (314) 691-0186
      Fax     (314) 994-4684
*  E-Mail  jnaylor@schnucks.com
-----Original Message-----
From: hpux-admin-owner@DutchWorks.nl
[mailto:hpux-admin-owner@DutchWorks.nl]On Behalf Of Naylor, Jim
Sent: Monday, January 30, 2006 9:55 AM
To: Hpux-Admin@Dutchworks. Nl (E-mail)
Subject: [HPADM] Expect on HPUX 11.0
Hello Everyone,
I seem to be having a problem getting Expect install on my HP systems.   I downloaded the source from the  Porting and Archiving Center for HPUX but am having trouble getting everything to compile and load.  I also downloaded tcl8.4 and tk8.4 and had trouble getting them to compile.  The configure ran ok on both tcl and tk but the make on tcl failed with the following:
        gcc -shared -o libtcl8.4.sl regcomp.o regexec.o regfree.o regerror.o tclAlloc.o  tclAsync.o tclBasic.o tclBinary.o  tclCkalloc.o tclClock.o tclCmdAH.o tclCmdIL.o tclCmdMZ.o  tclCompCmds.o tclCompExpr.o tclCompile.o tclDate.o tclEncoding.o  tclEnv.o tclEvent.o tclExecute.o tclFCmd.o tclFileName.o tclGet.o  tclHash.o tclHistory.o tclIndexObj.o tclInterp.o tclIO.o tclIOCmd.o  tclIOGT.o tclIOS
ock.o tclIOUtil.o tclLink.o tclListObj.o  tclLiteral.o tclLoad.o tclMain.o tclNamesp.o tclNotify.o  tclObj.o tclPanic.o tclParse.o tclParseExpr.o tclPipe.o  tclPkg.o tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o  tclResolve.o tclResult.o tclScan.o tclStringObj.o tclThread.o  tclThreadAlloc.o tclThreadJoin.o tclStubInit.o tclStubLib.o  tclTimer.o tclUtf.o tclUtil.o tclVar.o tclUnixChan.o tclUni
xEvent.o tclUnixFCmd.o  tclUnixFile.o tclUnixPipe.o tclUnixSock.o  tclUnixTime.o tclUnixInit.o tclUnixThrd.o  tclUnixNotfy.o strtoll.o strtoull.o  tclLoadShl.o  -ldld  -lxnet -lm   -Wl,+s,+b,/usr/local/lib:.                                
/usr/bin/ld: DP relative code in file /var/tmp/ccSEwtxI.o - shared library mustbe position                                              
    independent.  Use +z or +Z to recompile.                                    
collect2: ld returned 1 exit status                                             
*** Error exit code 1
When running the make on tk I get the same type error.  I am not sure where to put this +z or +Z they are refering to.
Any idea what is going on here.  Has anyone installed all of this on HPUX 11.0?  Any help would be appreciated.                                                           
Thanks,
Jim Naylor
Unix/Storage Systems Administrator
Schnuck Markets, Inc.
*  Direct (314) 994-4784
))(  Cell    (314) 691-0186
      Fax     (314) 994-4684
*  E-Mail  jnaylor@schnucks.com
______________________________________________________________________
The information transmitted (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is intended only for the person(s) or entity/entities to which it is addressed and may contain confidential and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient(s) is prohibited.  If you received this in error, please contact the sender and delete the material from any computer.
--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
______________________________________________________________________
The information transmitted (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is intended only for the person(s) or entity/entities to which it is addressed and may contain confidential and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient(s) is prohibited.  If you received this in error, please contact the sender and delete the material from any computer.
--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:51 EDT