Patch Name: PHCO_24705 Patch Description: s700_800 11.00 cumulative patch for mkmf(1) Creation Date: 01/11/23 Post Date: 01/12/03 Hardware Platforms - OS Releases: s700: 11.00 s800: 11.00 Products: N/A Filesets: ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP Automatic Reboot?: No Status: General Release Critical: Yes PHCO_24705: ABORT Category Tags: defect_repair general_release critical halts_system Path Name: /hp-ux_patches/s700_800/11.X/PHCO_24705 Symptoms: PHCO_24705: 1. mkmf(1) does not recognize C++ style commenting. 2. mkmf(1) dumps core for large macro expansion when it is executed for second time on the generated makefile. PHCO_13362: 1. mkmf(1) does not expand macros longer than 1024 bytes. Defect Description: PHCO_24705: 1. mkmf(1) code was not supporting C++ style commenting. It was printing the error message "Non-terminating comment at end of file" for C++ comments like "//comment***//****a comment". Resolution: Now, code is modified to support C++ style comments. 2. Some buffers were capable of holding upto 1024 characters, when macro expansion was made. So for large macro expansion (macro expansion of more than 1024 characters) mkmf(1) was dumping the core, when executed for second time. eg. $ cat xx yyyyyy....(2000 times) $ mkmf "CFLAGS=`cat xx`" /* generates Makefile */ $ mkmf "CFLAGS=`cat xx`" /* dumps core */ Resolution: Now, the buffers to hold the macro expansions are increased to support upto 20478 characters. PHCO_13362: 1. mkmf(1) was supporting the buffers to hold the macro expansion upto 1024 characters. Resolution: Now, the buffers to hold the macro expansions are increased to support upto 20478 characters. SR: 8606224049 8606220199 8606140979 4701376244 Patch Files: ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/ccs/bin/mkmf /usr/ccs/lib/mf/C++.L /usr/ccs/lib/mf/C++.l /usr/ccs/lib/mf/C++.p /usr/ccs/lib/mf/C.L /usr/ccs/lib/mf/C.l /usr/ccs/lib/mf/C.p /usr/ccs/lib/mf/C.t /usr/ccs/lib/mf/dir.p /usr/ccs/lib/mf/man.p what(1) Output: ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/ccs/bin/mkmf: $Revision: 82.1.1.7 $ ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/ccs/lib/mf/C++.L: None ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/ccs/lib/mf/C++.l: None ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/ccs/lib/mf/C++.p: None ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/ccs/lib/mf/C.L: None ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/ccs/lib/mf/C.l: None ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/ccs/lib/mf/C.p: None ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/ccs/lib/mf/C.t: None ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/ccs/lib/mf/dir.p: None ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/ccs/lib/mf/man.p: None cksum(1) Output: ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 1954009157 49152 /usr/ccs/bin/mkmf ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 539214104 898 /usr/ccs/lib/mf/C++.L ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 3163363428 975 /usr/ccs/lib/mf/C++.l ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 1725776206 1040 /usr/ccs/lib/mf/C++.p ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 4246260579 897 /usr/ccs/lib/mf/C.L ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 3642154340 974 /usr/ccs/lib/mf/C.l ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 2123548597 1039 /usr/ccs/lib/mf/C.p ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 860779250 226 /usr/ccs/lib/mf/C.t ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 10103758 793 /usr/ccs/lib/mf/dir.p ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 2396924717 589 /usr/ccs/lib/mf/man.p Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_13362 Equivalent Patches: None Patch Package Size: 90 KBytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHCO_24705 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_24705.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_24705. If you do not wish to retain a copy of the original software, include the patch_save_files option in the swinstall command above: -x patch_save_files=false WARNING: If patch_save_files is false when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. For future reference, the contents of the PHCO_24705.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_24705.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_24705.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None