<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Compiling and running logrotate 3.7.1 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-and-running-logrotate-3-7-1/m-p/4406921#M682005</link>
    <description>I installed the following from the HP-UX Porting and Archive site on an HP-UX 11.11 system:&lt;BR /&gt;&lt;BR /&gt;gcc-4.2.3&lt;BR /&gt;libgcc-4.2.3&lt;BR /&gt;make-3.81&lt;BR /&gt;patch-2.5.9 (used only to apply the 3.7.1-5 diff)&lt;BR /&gt;popt-1.7&lt;BR /&gt;zlib-1.2.3&lt;BR /&gt;libiconv-1.13&lt;BR /&gt;gettext-0.17&lt;BR /&gt;&lt;BR /&gt;I also have HPLX installed from the Linux to hp-ux 11.0/11i porting kit media.&lt;BR /&gt;&lt;BR /&gt;The compile seemed to go fairly smoothly and generated a binary.&lt;BR /&gt;&lt;BR /&gt;# gmake&lt;BR /&gt;gcc -E -Wall -D_GNU_SOURCE -DHP-UX -DVERSION=\"3.7.1\" -O2  -I/usr/local -M logrotate.c log.c config.c basenames.c  &amp;gt; .depend&lt;BR /&gt;gcc -Wall -D_GNU_SOURCE -DHP-UX -DVERSION=\"3.7.1\" -O2  -I/usr/local   -c -o logrotate.o logrotate.c&lt;BR /&gt;&lt;COMMAND-LINE&gt;: warning: missing whitespace after the macro name&lt;BR /&gt;logrotate.c: In function 'mailLog':&lt;BR /&gt;logrotate.c:206: warning: 'uncompressChild' may be used uninitialized in this function&lt;BR /&gt;gcc -Wall -D_GNU_SOURCE -DHP-UX -DVERSION=\"3.7.1\" -O2  -I/usr/local   -c -o log.o log.c&lt;BR /&gt;&lt;COMMAND-LINE&gt;: warning: missing whitespace after the macro name&lt;BR /&gt;gcc -Wall -D_GNU_SOURCE -DHP-UX -DVERSION=\"3.7.1\" -O2  -I/usr/local   -c -o config.o config.c&lt;BR /&gt;&lt;COMMAND-LINE&gt;: warning: missing whitespace after the macro name&lt;BR /&gt;config.c: In function 'isolateValue':&lt;BR /&gt;config.c:66: warning: array subscript has type 'char'&lt;BR /&gt;config.c: In function 'readPath':&lt;BR /&gt;config.c:88: warning: array subscript has type 'char'&lt;BR /&gt;config.c: In function 'readAddress':&lt;BR /&gt;config.c:118: warning: array subscript has type 'char'&lt;BR /&gt;config.c: In function 'readConfigFile':&lt;BR /&gt;config.c:460: warning: array subscript has type 'char'&lt;BR /&gt;config.c:462: warning: array subscript has type 'char'&lt;BR /&gt;config.c:531: warning: array subscript has type 'char'&lt;BR /&gt;config.c:591: warning: array subscript has type 'char'&lt;BR /&gt;config.c:737: warning: array subscript has type 'char'&lt;BR /&gt;config.c:746: warning: array subscript has type 'char'&lt;BR /&gt;config.c:759: warning: array subscript has type 'char'&lt;BR /&gt;gcc -Wall -D_GNU_SOURCE -DHP-UX -DVERSION=\"3.7.1\" -O2  -I/usr/local   -c -o basenames.o basenames.c&lt;BR /&gt;&lt;COMMAND-LINE&gt;: warning: missing whitespace after the macro name&lt;BR /&gt;gcc   logrotate.o log.o config.o basenames.o -lpopt -lhplx -L/usr/local/hplx/lib -L/usr/local  -o logrotate&lt;BR /&gt;&lt;BR /&gt;However, when I try to execute the command, it fails:&lt;BR /&gt;&lt;BR /&gt;# /opt/logrotate/sbin/logrotate /etc/logrotate.conf&lt;BR /&gt;error: /etc/logrotate.conf:25 duplicate log entry for&lt;BR /&gt;&lt;BR /&gt;If I try to run it without the conf file specified, it dumps core instead of displaying the proper syntax.&lt;BR /&gt;&lt;BR /&gt;# /opt/logrotate/sbin/logrotate&lt;BR /&gt;logrotate 3.7.1 - Copyright (C) 1995-2001 Red Hat, Inc.&lt;BR /&gt;This may be freely redistributed under the terms of the GNU Public License&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: libintl_dgettext (code)  from /usr/local/lib/libpopt.sl&lt;BR /&gt;Abort(coredump)&lt;BR /&gt;&lt;BR /&gt;The logrotate.conf is pretty much the example that comes with the source code, with only the path of the wtmp and utmp files changed for HP-UX:&lt;BR /&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;# see "man logrotate" for details&lt;BR /&gt;# rotate log files weekly&lt;BR /&gt;weekly&lt;BR /&gt;&lt;BR /&gt;# keep 4 weeks worth of backlogs&lt;BR /&gt;rotate 4&lt;BR /&gt;&lt;BR /&gt;# create new (empty) log files after rotating old ones&lt;BR /&gt;create&lt;BR /&gt;&lt;BR /&gt;# uncomment this if you want your log files compressed&lt;BR /&gt;#compress&lt;BR /&gt;&lt;BR /&gt;# packages drop log rotation information into this directory&lt;BR /&gt;include /etc/logrotate.d&lt;BR /&gt;&lt;BR /&gt;# no packages own wtmp, or btmp -- we'll rotate them here&lt;BR /&gt;/var/adm/wtmp {&lt;BR /&gt;    missingok&lt;BR /&gt;    monthly&lt;BR /&gt;    create 0664 adm adm&lt;BR /&gt;    rotate 1&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;/var/adm/btmp {&lt;BR /&gt;    missingok&lt;BR /&gt;    monthly&lt;BR /&gt;    create 0600 root other&lt;BR /&gt;    rotate 1&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# system-specific logs may be configured here&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;&lt;BR /&gt;It looks like it's failing to parse the conf file appropriately so doesn't know what files are configured to be rotated. Anyone else attempted this and know what the issue might be?&lt;/COMMAND-LINE&gt;&lt;/COMMAND-LINE&gt;&lt;/COMMAND-LINE&gt;&lt;/COMMAND-LINE&gt;</description>
    <pubDate>Thu, 23 Apr 2009 18:10:56 GMT</pubDate>
    <dc:creator>Jeff_Traigle</dc:creator>
    <dc:date>2009-04-23T18:10:56Z</dc:date>
    <item>
      <title>Compiling and running logrotate 3.7.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-and-running-logrotate-3-7-1/m-p/4406921#M682005</link>
      <description>I installed the following from the HP-UX Porting and Archive site on an HP-UX 11.11 system:&lt;BR /&gt;&lt;BR /&gt;gcc-4.2.3&lt;BR /&gt;libgcc-4.2.3&lt;BR /&gt;make-3.81&lt;BR /&gt;patch-2.5.9 (used only to apply the 3.7.1-5 diff)&lt;BR /&gt;popt-1.7&lt;BR /&gt;zlib-1.2.3&lt;BR /&gt;libiconv-1.13&lt;BR /&gt;gettext-0.17&lt;BR /&gt;&lt;BR /&gt;I also have HPLX installed from the Linux to hp-ux 11.0/11i porting kit media.&lt;BR /&gt;&lt;BR /&gt;The compile seemed to go fairly smoothly and generated a binary.&lt;BR /&gt;&lt;BR /&gt;# gmake&lt;BR /&gt;gcc -E -Wall -D_GNU_SOURCE -DHP-UX -DVERSION=\"3.7.1\" -O2  -I/usr/local -M logrotate.c log.c config.c basenames.c  &amp;gt; .depend&lt;BR /&gt;gcc -Wall -D_GNU_SOURCE -DHP-UX -DVERSION=\"3.7.1\" -O2  -I/usr/local   -c -o logrotate.o logrotate.c&lt;BR /&gt;&lt;COMMAND-LINE&gt;: warning: missing whitespace after the macro name&lt;BR /&gt;logrotate.c: In function 'mailLog':&lt;BR /&gt;logrotate.c:206: warning: 'uncompressChild' may be used uninitialized in this function&lt;BR /&gt;gcc -Wall -D_GNU_SOURCE -DHP-UX -DVERSION=\"3.7.1\" -O2  -I/usr/local   -c -o log.o log.c&lt;BR /&gt;&lt;COMMAND-LINE&gt;: warning: missing whitespace after the macro name&lt;BR /&gt;gcc -Wall -D_GNU_SOURCE -DHP-UX -DVERSION=\"3.7.1\" -O2  -I/usr/local   -c -o config.o config.c&lt;BR /&gt;&lt;COMMAND-LINE&gt;: warning: missing whitespace after the macro name&lt;BR /&gt;config.c: In function 'isolateValue':&lt;BR /&gt;config.c:66: warning: array subscript has type 'char'&lt;BR /&gt;config.c: In function 'readPath':&lt;BR /&gt;config.c:88: warning: array subscript has type 'char'&lt;BR /&gt;config.c: In function 'readAddress':&lt;BR /&gt;config.c:118: warning: array subscript has type 'char'&lt;BR /&gt;config.c: In function 'readConfigFile':&lt;BR /&gt;config.c:460: warning: array subscript has type 'char'&lt;BR /&gt;config.c:462: warning: array subscript has type 'char'&lt;BR /&gt;config.c:531: warning: array subscript has type 'char'&lt;BR /&gt;config.c:591: warning: array subscript has type 'char'&lt;BR /&gt;config.c:737: warning: array subscript has type 'char'&lt;BR /&gt;config.c:746: warning: array subscript has type 'char'&lt;BR /&gt;config.c:759: warning: array subscript has type 'char'&lt;BR /&gt;gcc -Wall -D_GNU_SOURCE -DHP-UX -DVERSION=\"3.7.1\" -O2  -I/usr/local   -c -o basenames.o basenames.c&lt;BR /&gt;&lt;COMMAND-LINE&gt;: warning: missing whitespace after the macro name&lt;BR /&gt;gcc   logrotate.o log.o config.o basenames.o -lpopt -lhplx -L/usr/local/hplx/lib -L/usr/local  -o logrotate&lt;BR /&gt;&lt;BR /&gt;However, when I try to execute the command, it fails:&lt;BR /&gt;&lt;BR /&gt;# /opt/logrotate/sbin/logrotate /etc/logrotate.conf&lt;BR /&gt;error: /etc/logrotate.conf:25 duplicate log entry for&lt;BR /&gt;&lt;BR /&gt;If I try to run it without the conf file specified, it dumps core instead of displaying the proper syntax.&lt;BR /&gt;&lt;BR /&gt;# /opt/logrotate/sbin/logrotate&lt;BR /&gt;logrotate 3.7.1 - Copyright (C) 1995-2001 Red Hat, Inc.&lt;BR /&gt;This may be freely redistributed under the terms of the GNU Public License&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: libintl_dgettext (code)  from /usr/local/lib/libpopt.sl&lt;BR /&gt;Abort(coredump)&lt;BR /&gt;&lt;BR /&gt;The logrotate.conf is pretty much the example that comes with the source code, with only the path of the wtmp and utmp files changed for HP-UX:&lt;BR /&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;# see "man logrotate" for details&lt;BR /&gt;# rotate log files weekly&lt;BR /&gt;weekly&lt;BR /&gt;&lt;BR /&gt;# keep 4 weeks worth of backlogs&lt;BR /&gt;rotate 4&lt;BR /&gt;&lt;BR /&gt;# create new (empty) log files after rotating old ones&lt;BR /&gt;create&lt;BR /&gt;&lt;BR /&gt;# uncomment this if you want your log files compressed&lt;BR /&gt;#compress&lt;BR /&gt;&lt;BR /&gt;# packages drop log rotation information into this directory&lt;BR /&gt;include /etc/logrotate.d&lt;BR /&gt;&lt;BR /&gt;# no packages own wtmp, or btmp -- we'll rotate them here&lt;BR /&gt;/var/adm/wtmp {&lt;BR /&gt;    missingok&lt;BR /&gt;    monthly&lt;BR /&gt;    create 0664 adm adm&lt;BR /&gt;    rotate 1&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;/var/adm/btmp {&lt;BR /&gt;    missingok&lt;BR /&gt;    monthly&lt;BR /&gt;    create 0600 root other&lt;BR /&gt;    rotate 1&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# system-specific logs may be configured here&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;&lt;BR /&gt;It looks like it's failing to parse the conf file appropriately so doesn't know what files are configured to be rotated. Anyone else attempted this and know what the issue might be?&lt;/COMMAND-LINE&gt;&lt;/COMMAND-LINE&gt;&lt;/COMMAND-LINE&gt;&lt;/COMMAND-LINE&gt;</description>
      <pubDate>Thu, 23 Apr 2009 18:10:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-and-running-logrotate-3-7-1/m-p/4406921#M682005</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2009-04-23T18:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling and running logrotate 3.7.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-and-running-logrotate-3-7-1/m-p/4406922#M682006</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;As the app has remained static and HP-UX has improved, more and more problems have come up.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1283881" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1283881&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=945765" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=945765&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1304549" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1304549&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Somewhere in there may be code changes you need to make to the app to get it to work right.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 23 Apr 2009 19:53:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-and-running-logrotate-3-7-1/m-p/4406922#M682006</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-04-23T19:53:23Z</dc:date>
    </item>
  </channel>
</rss>

