From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078617110445.tru64-unix-managers.marc@archive.invalid> From: Bill Bergman Date: Thu, 18 Sep 1997 14:03:04 +0000 To: tru64-unix-managers Subject: SUMMARY: inn-1.6b3 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078617110445 I received 3 replies to my question. I have since gotten inn-1.6b3 to compile. Thanks to Mike, Tom, and Barry for their help. I'll post all 3 replies below. Bill ----------------------------------------------------------------------- >From System Janitor isnan is in libm.a, so somehow cause that to to get referenced at link time. I did it by adding -lm after -lutil in config/config.data. isinf is a define in snprintf/local.h that gets ifdefed out on ALPHAs. Later it gets referenced in the code, resulting in the undefined external reference. I just stripped the ifdef wrapper off of isinf's define, and it seems to go. -Mike -------------------------------------------------------------------------- >From TNG@hawk.sys.swt.edu I had the same errors with 1.5.1sec2; I assume the same fixes will work. You need the following to get isnan: ## If you need to link in other libraries, add them here. ## On NetBSD and FreeBSD, you must add the -lcrypt directive here ## -lutil on BSD/OS gives you setproctitle() see HAVE_SETPROCTITLE. #### =()@>()= LIBS -lm and this for isinf: ## ## What compiler flags do you need to build the snprintf library. ## ## On Solaris 2.5 and 2.5.1 (and maybe higher) with the Sun C compiler. ## you want ## -Xc -Dsun -D__svr4__ -DBad_float_h ## with gcc ## -Dsnprintf=__snprintf -Dvsnprintf=__vsnprintf ## is reported to work (with HAVE_SNPRINTF set to DO and LIBSNPRINT to nothing) ## #### =()@>()= SNPRINTF_CFLAGS -Dsun -D__svr4__ Your other values look OK, and I don't recall any other problems. The values for SNPRINTF_CFLAGS invoke a local definition for isinf, and the source (snprintf/local.h) really should be modified to use another flag, but I prefer to make changes in config.data rather than the source if possible. Hopefully 1.6 will include such a change -- these errors were pretty widely discussed for 1.5.1sec2. Tom Greer (tng@swt.edu) Systems Programmer Southwest Texas State University --------------------------------------------------------------------------- >From Barry Lynam I had the same problem with 1.5sec2. I had to modify the code and add a library to link with. In config.data add -lm to LIBS. And in local.h in the snprintf directory at the end of the file change this line, #if defined(sgi) || (defined(sun) && defined(__svr4__)) to #if defined(sgi) || (defined(sun) && defined(__svr4__)) || defined(__osf__) That fixed my problems. I'm not sure if there is a way without modifying the code. Please let me know if someone has an easier way. Barry Lynam +------------------------------------------------------------------+ | Barry Lynam EMail: B.Lynam@qut.edu.au | | Internetworking Software Services Phone: +61 7 3864 2883 | | Computing Services Fax: +61 7 3864 5272 | | Queensland University of Technology Postal: Computing Services | | Brisbane AUSTRALIA Margaret St Offices| +---------------------------------------+ GPO Box 2434 | | People don't act without good reason..| Brisbane QLD 4001 | | ..Finding the reason is the hard part.| AUSTRALIA | +---------------------------------------+--------------------------+ Bill Bergman Westinghouse Communications (412) 247-6206 wrb@wcsmail.com