bugGNU FreeIPMI - Bugs: bug #66677, rpmbuild errors: bmc-watchdog: No...

 
 

bug #66677: rpmbuild errors: bmc-watchdog: No such file or directory

Submitter:  Ole Holm Nielsen <oleholmnielsen>
Submitted:  Fri 17 Jan 2025 07:23:27 AM UTC
   
 
Category:  bmc-watchdog Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Installation Problem
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 21 Jan 2025 06:52:10 PM UTC, comment #3: 

Sounds like a good idea, I'll document it somewhere.

Albert Chu <chu11>
Group administrator
Mon 20 Jan 2025 09:57:01 AM UTC, comment #2: 

Hi Al,

> By default the rpm still builds for init.d instead of systemd, can you try "rpmbuild -ta --with systemd freeipmi-1.6.15.tar.gz"


Ah, thanks a lot, I had forgotten about "--with systemd" which is required on RHEL derived distributions.  The build works correctly now.

Could you kindly document this in the README.build instructions?

Thanks,
Ole

Ole Holm Nielsen <oleholmnielsen>
Fri 17 Jan 2025 06:08:17 PM UTC, comment #1: 

By default the rpm still builds for init.d instead of systemd, can you try "rpmbuild -ta --with systemd freeipmi-1.6.15.tar.gz"

I will take a look at those warnings

Albert Chu <chu11>
Group administrator
Fri 17 Jan 2025 07:23:27 AM UTC, original submission:  

On our RockyLinux 8.10 systems I tried to build the v1.6.15 RPMs by:

$ rpmbuild -ta freeipmi-1.6.15.tar.gz

but it fails with the error: bmc-watchdog': No such file or directory

(lines deleted)
+ mkdir -p /root/rpmbuild/BUILDROOT/freeipmi-1.6.15-1.el8.x86_64//etc/rc.d/init.d/
+ [[ /etc/init.d != \/\e\t\c\/\r\c\.\d\/\i\n\i\t\.\d ]]
+ mv /root/rpmbuild/BUILDROOT/freeipmi-1.6.15-1.el8.x86_64//etc/init.d/bmc-watchdog /root/rpmbuild/BUILDROOT/freeipmi-1.6.15-1.el8.x86_64//etc/rc.d/init.d/bmc-watchdog
mv: cannot stat '/root/rpmbuild/BUILDROOT/freeipmi-1.6.15-1.el8.x86_64//etc/init.d/bmc-watchdog': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.vjqsOl (%install)


RPM build errors:
    bogus date in %changelog: Wed May 28 2021 Albert Chu <chu11@llnl.gov> 1.7.0
    bogus date in %changelog: Mon May 3 2012 Albert Chu <chu11@llnl.gov> 1.2.1
    bogus date in %changelog: Tue Sep 29 2008 Albert Chu <chu11@llnl.gov> 0.7.0
    bogus date in %changelog: Sat May 21 2008 Albert Chu <chu11@llnl.gov> 0.7.0
    bogus date in %changelog: Tue Mar 27 2008 Albert Chu <chu11@llnl.gov> 0.6.0
    bogus date in %changelog: Wed Nov 19 2007 Albert Chu <chu11@llnl.gov> 0.5.0
    bogus date in %changelog: Wed Nov 19 2007 Phil Knirsch <pknirsch@redhat.com> 0.5.0
    bogus date in %changelog: Fri Feb 28 2007 Albert Chu <chu11@llnl.gov> 0.4.beta0-1
    Bad exit status from /var/tmp/rpm-tmp.vjqsOl (%install)

In addition, there are several of these warnings during the building process:

libtool: warning: '../libipmiconsole/libipmiconsole.la' has not been installed in '/usr/lib64'
libtool: warning: '../libfreeipmi/libfreeipmi.la' has not been installed in '/usr/lib64'
libtool: warning: '../libipmidetect/libipmidetect.la' has not been installed in '/usr/lib64'

The compiler also issued some warnings (this is a partial list only):

util/ipmi-rmcpplus-util.c: In function 'ipmi_rmcpplus_check_packet_session_authentication_code':
util/ipmi-rmcpplus-util.c:1251:16: warning: variable 'expected_digest_len' set but not used [-Wunused-but-set-variable]
   unsigned int expected_digest_len, compare_digest_len, hash_data_len = 0;
                ^~~~~~~~~~~~~~~~~~~


scbuf.c: In function 'scbuf_peek_line':
scbuf.c:701:15: warning: variable 'l' set but not used [-Wunused-but-set-variable]
     int n, m, l;
               ^
scbuf.c: In function 'scbuf_read_line':
scbuf.c:737:15: warning: variable 'l' set but not used [-Wunused-but-set-variable]
     int n, m, l;
               ^
scbuf.c: In function 'scbuf_replay_line':
scbuf.c:774:15: warning: variable 'l' set but not used [-Wunused-but-set-variable]
     int n, m, l;
               ^
scbuf.c: In function 'scbuf_write_line':
scbuf.c:848:23: warning: variable 'n' set but not used [-Wunused-but-set-variable]
     int nfree, ncopy, n;
                       ^


ipmi_monitoring_sdr_cache.c: In function '_ipmi_monitoring_sdr_cache_filename.constprop':
ipmi_monitoring_sdr_cache.c:195:16: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=]
             "%s/%s",
                ^
In file included from /usr/include/stdio.h:873,
                 from ipmi_monitoring_sdr_cache.c:31:
/usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 2 and 8194 bytes into a destination of size 4096
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __glibc_objsize (__s), __fmt,
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~


ipmi-config-category-sensors-threshold-section.c: In function 'ipmi_config_sensors_threshold_section':
ipmi-config-category-sensors-threshold-section.c:1372:63: warning: '%s' directive output may be truncated writing up to 1024 bytes into a region of size between 967 and 979 [-Wformat-truncation=]
               "Give valid input for sensor type = %s; units = %s",
                                                               ^~
ipmi-config-category-sensors-threshold-section.c:1374:15:
               sensor_units_buf);
               ~~~~~~~~~~~~~~~~                                
In file included from /usr/include/stdio.h:873,
                 from ipmi-config-category-sensors-threshold-section.c:23:
/usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 46 or more bytes (assuming 1082) into a destination of size 1024
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __glibc_objsize (__s), __fmt,
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~
ipmi-config-category-sensors-threshold-section.c:1223:16: warning: '; 'None' to not use hysteresis' directive output may be truncated writing 30 bytes into a region of size between 0 and 1024 [-Wformat-truncation=]
             "%s; 'None' to not use hysteresis",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:873,
                 from ipmi-config-category-sensors-threshold-section.c:23:
/usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 31 and 1055 bytes into a destination of size 1024
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __glibc_objsize (__s), __fmt,
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~


ipmi-oem.c: In function 'run_cmd_args':
ipmi-oem.c:1810:30: warning: variable 'args' set but not used [-Wunused-but-set-variable]
   struct ipmi_oem_arguments *args;
                              ^~~~
ipmi-oem-ibm.c: In function '_get_led_name.constprop':
ipmi-oem-ibm.c:351:19: warning: '__builtin_snprintf' output may be truncated before the last format character [-Wformat-truncation=]
                "%s",
                   ^
In file included from /usr/include/stdio.h:873,
                 from ipmi-oem-ibm.c:23:
/usr/include/bits/stdio2.h:68:10: note: '__builtin_snprintf' output between 3 and 18 bytes into a destination of size 17
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __glibc_objsize (__s), __fmt,
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~
ipmi-oem-ibm.c: In function '_get_led_sdr_callback':
ipmi-oem-ibm.c:770:41: warning: '%s' directive output may be truncated writing up to 1024 bytes into a region of size between 992 and 1002 [-Wformat-truncation=]
             "%%-%du | %%-%ds | %%-%ds | %s\n",
                                         ^~
ipmi-oem-ibm.c:774:13:
             led_info);
             ~~~~~~~~                    
In file included from /usr/include/stdio.h:873,
                 from ipmi-oem-ibm.c:23:
/usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 24 and 1058 bytes into a destination of size 1024
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __glibc_objsize (__s), __fmt,
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~


ipmidetectd.c: In function '_nodes_setup':
ipmidetectd.c:297:33: warning: '%s' directive output may be truncated writing up to 1024 bytes into a region of size 1017 [-Wformat-truncation=]
                         "::ffff:%s", tmpipv4buf);
                                 ^~   ~~~~~~~~~~
In file included from /usr/include/stdio.h:873,
                 from ipmidetectd.c:31:
/usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 8 and 1032 bytes into a destination of size 1024
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __glibc_objsize (__s), __fmt,
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~


FYI: EL8 has this GCC version:

# gcc --version
gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-22)

Ole Holm Nielsen <oleholmnielsen>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by chu11 (Posted a comment)
  • -email is unavailable- added by oleholmnielsen (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-01-21 chu11 Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.14-5139.
    Corresponding source code