HP compile problems

Karl Hakimian hakimian "at" aha.com
Tue, 03 Mar 1998 15:09:41 +0000


--uAKRQypu60I7Lcqm
Content-Type: text/plain; charset=us-ascii

>    hmm have HPUX 9.0.5 here. (gcc 2.7.2.2.. i know)
>     libvncauth/vncauth.c - had to rename [s]random to [s]rand,
>     vncviewer/x.c        - had to use sleep instead of usleep,
>                            shouldn't matter since usleep was sleeping for secs
> 			   anyway

10.x fixes the above problems.

>     d3des.c - no probs (using gcc)
>     
> !- The server is a bit bigger of a problem. After adding appropriately
> !- edited config files for the hps, I have managed to get all the code to
> !- compile, but I get the following error when trying to link.
> 
>   can I ask for your hp.[cf|Rules|Tmpl] ?  have been hacking mine,
>   and bombs out somewhere along compiling the server code - nowhere near
>   the link.

I have attached one set that I have used. These seem to work with the X
that comes with the HPs. I have also tried modifying the ones that came
with X11R6.3

-- 
Karl Hakimian
hakimian "at" aha.com

--uAKRQypu60I7Lcqm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="hp.cf"

XCOMM platform:  $XConsortium: hp.cf,v 1.67 94/04/01 20:00:21 kaleb Exp $

#define OSName                 HP-UX 10.0
XCOMM operating system:  OSName
#define OSMajorVersion         10
#define OSMinorVersion         20
#define OSTeenyVersion         0

#define SystemV                YES
#define Malloc0ReturnsNull     YES

#ifdef __hp9000s800
#define OptimizedCDebugFlags   -O
#define DefaultCCOptions       -Aa
#define SharedLibraryCCOptions -Aa
#define StandardDefines        -Dhpux -DSYSV -D_HPUX_SOURCE
#define ServerExtraDefines -DXOS -DBSTORE -DSOFTWARE_CURSOR -DNO_ALLOCA -DSCREEN_PIXMAPS -DMERGE_SAVE_UNDERS -DR5 -DHAS_IFREQ -DFORCE_SEPARATE_PRIVATE
/* #include <hpLib.rules> */
#else
#define StandardDefines        -Dhpux -DSYSV
#if OSMajorVersion < 8
#define DefaultCCOptions       -Wc,-Nd4000,-Ns4100,-Ne700,-Np200,-Nw300
#define PexCCOptions           -Wp,-H150000 -Wc,-Nd4000,-Ns8100,-Ne700,-Np200
#else
#define OptimizedCDebugFlags   +O1
#define PexCCOptions           -Wp,-H250000
#endif
#define PexShmIPC              NO
#define LintOpts               -ax -Nd4000 -Ns8000 -Ne700 -Np200 -Na25000
#endif
#define MvCmd                  mv -f
#define LdCombineFlags -r
#define ExecableScripts        YES
#define HasVFork               YES
#define HasPoll                YES
#define RemoveTargetProgramByMoving YES
#define ExpandManNames         YES
#define HasPutenv              YES
#define HasNdbm		       YES
#define PrimaryScreenResolution	91
#define ExtensionOSDefines     -DHPINPUT -DXTESTEXT1
#define XhpServer              NO
#define BuildXInputExt         NO
#define HPFastScrolling        YES
#define BuildServer            __hp9000s700
#define NeedBerklib            (BuildServer|BuildFontServer)
#define XawI18nDefines	       -DHAS_WCHAR_H -DHAS_ISW_FUNCS

#if OSMajorVersion > 8
#define HasWChar32             YES
#endif


#if OSMajorVersion > 9
#define UseInstalledMotif
#define StandardIncludes
#include <hpLib.rules>
#endif

#define BuildPex     NO
#define BuildPexExt     NO
#define XvncServer   YES

--uAKRQypu60I7Lcqm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="hpLib.rules"

XCOMM $XConsortium: hpLib.rules,v 1.4 93/09/11 17:57:18 rws Exp $

/*
 * HP shared library rules
 */

#ifndef HasSharedLibraries
#define HasSharedLibraries YES
#endif
#ifndef SharedDataSeparation
#define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
#define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
#define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
#define ShLibIncludeFile <hpLib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
#define SharedLibraryLoadFlags -b
#endif
#ifndef PositionIndependentCFlags
#define PositionIndependentCFlags +z
#endif
#ifndef UseInstalled
#define ExtraLoadOptions -L$(USRLIBDIR)
#endif

/*
 * InstallSharedLibrary - generate rules to install the shared library.
 */
#ifndef InstallSharedLibrary
#define	InstallSharedLibrary(libname,rev,dest)				@@\
install:: Concat(lib,libname.sl) 					@@\
	MakeDir($(DESTDIR)dest)						@@\
	$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) Concat(lib,libname.sl) $(DESTDIR)dest
#endif /* InstallSharedLibrary */

/*
 * InstallRevSharedLibrary - generate rules to install the shared library.
 */
#ifndef InstallRevSharedLibrary
#define	InstallRevSharedLibrary(libname,rev,dest)			@@\
install:: Concat(lib,libname.rev) 					@@\
	MakeDir($(DESTDIR)dest)						@@\
	$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) Concat(lib,libname.rev) $(DESTDIR)dest @@\
	$(RM) Concat($(DESTDIR)dest/lib,libname.sl)			@@\
	$(LN) Concat(lib,libname.rev) Concat($(DESTDIR)dest/lib,libname.sl)
#endif /* InstallRevSharedLibrary */

/*
/*
 * InstallSharedLibraryData - generate rules to install the shared library data
 */
#ifndef InstallSharedLibraryData
#define	InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */


/*
 * SharedLibraryTarget - generate rules to create a shared library;
 * build it into a different name so that we do not hose people by having
 * the library gone for long periods.
 */
#ifndef SharedLibraryTarget
#define SharedLibraryTarget(libname,rev,solist,down,up)			@@\
AllTarget(Concat(lib,libname.sl))					@@\
									@@\
Concat(lib,libname.sl):  solist						@@\
	$(RM) $@~							@@\
	(cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) solist)		@@\
	$(RM) $@ 							@@\
	$(MV) $@~ $@							@@\
									@@\
clean::									@@\
	$(RM) Concat(lib,libname.sl)
#endif /* SharedLibraryTarget */

/*
 * SharedLibraryDataTarget - generate rules to create shlib data file;
 */
#ifndef SharedLibraryDataTarget
#define SharedLibraryDataTarget(libname,rev,salist)
#endif /* SharedLibraryTarget */


/*
 * RevSharedLibraryTarget - generate rules to create a shared library;
 * build it into a different name so that we do not hose people by having
 * the library gone for long periods.
 * This rule creates versioned libraries on HP.
 * It will create library.rev and a link from library.sl to library.rev.
 *
 */
#ifndef RevSharedLibraryTarget
#define RevSharedLibraryTarget(libname,rev,solist,down,up)		@@\
AllTarget(Concat(lib,libname.rev))					@@\
									@@\
Concat(lib,libname.rev):  solist					@@\
	$(RM) $@~							@@\
	(cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) +h $@ solist)		@@\
	$(RM) $@ 							@@\
	$(MV) $@~ $@							@@\
	$(RM) Concat(lib,libname.sl)					@@\
	$(LN) $@ Concat(lib,libname.sl)					@@\
									@@\
clean::									@@\
	$(RM) Concat(lib,libname.rev) Concat(lib,libname.sl)
#endif /* RevSharedLibraryTarget */


--uAKRQypu60I7Lcqm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="hpLib.tmpl"

XCOMM $XConsortium: hpLib.tmpl,v 1.8 93/08/25 15:30:15 rws Exp $

/*
 * HP shared library template
 */

/* nothing needed yet */

--uAKRQypu60I7Lcqm--