stress-ng 0.08.10 fails to compile on SLES11 SP4

Bug #1709905 reported by Andy Williams
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
stress-ng (Ubuntu)
Fix Released
Medium
Colin Ian King

Bug Description

When trying to build stress-ng 0.08.10 under SLES11 SP4 I see the following:

loninenglled12:~/stress-ng-0.08.10 # make
cc -Wall -Wextra -DVERSION="0.08.10" -O2 -std=gnu99 -DHAVE_LIB_CRYPT -DHAVE_LIB_RT -DHAVE_LIB_PTHREAD -DHAVE_LIB_AIO -DHAVE_FLOAT_DECIMAL -DHAVE_ASM_NOP -DHAVE_ALIGNED_64 -DHAVE_ALIGNED_128 -DHAVE_ALIGNED_64K -DHAVE_AFFINITY -DHAVE_MADVISE -DHAVE_SEM_POSIX -DHAVE_MQ_SYSV -DHAVE_SHM_SYSV -DHAVE_INOTIFY -c -o stress-fcntl.o stress-fcntl.c
stress-fcntl.c: In function ‘do_fcntl’:
stress-fcntl.c:203: error: ‘F_OWNER_PGRP’ undeclared (first use in this function)
stress-fcntl.c:203: error: (Each undeclared identifier is reported only once
stress-fcntl.c:203: error: for each function it appears in.)
make: *** [stress-fcntl.o] Error 1
loninenglled12:~/stress-ng-0.08.10 #

Cheers,

-Andy

Tags: ftbfs
Revision history for this message
Andy Williams (wilandy) wrote :

Sorry; I forgot to include the compiler version, just in case it helps:

loninenglled12:~/stress-ng-0.08.10 # cc --version
cc (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973]
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

loninenglled12:~/stress-ng-0.08.10 #

tags: added: ftbfs
Revision history for this message
Colin Ian King (colin-king) wrote :
Changed in stress-ng (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Colin Ian King (colin-king)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package stress-ng - 0.08.13-1

---------------
stress-ng (0.08.13-1) unstable; urgency=medium

  * stress-rdrand: use 32 bit rdrand for i386
  * stress_drop_capabilities: voidify name to avoid warning
  * Enable 64 bit large file system support by default
  * debian/rules: Add hardening=+all
  * manual: fix several spelling mistakes
  * stress-cpu: fix spelling mistake "assigment" -> "assignment"
  * stress-ng: fix spelling mistake "afer" -> "after"
  * stress-opcode: drop all capabilties so we can't do much
    damage (LP: #1714044)
  * helper: add stress_drop_capabilities to drop all capabilities
  * stress-socket-diag: use new HAVE_SOCK_DIAG_H build time check flag
  * Add sock_diag.h auto configure build time checking
  * Add sockdiag stressor
  * stress-fcntl: fix build failure on SLES11 SP4 (LP: #1709905)
  * stress-cyclic: fix build warning on systems w/o atomic ops
  * stress-softlockup: fix build warning on systems w/o atomic ops

 -- Colin King <email address hidden> Wed, 30 Aug 2017 22:06:11 +0100

Changed in stress-ng (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Andy Williams (wilandy) wrote :

Hi Colin,

Sorry for not replying earlier; I've been out on holiday until today. Unfortunately the fix didn't solve the problem on SLES11 SP4. I tried with both the 0.08-13 and the 0.08-15 tarballs and the result is the same:

stress-ng-0.08.13 # make
autoconfig: using -lcrypt
autoconfig: using -lrt
autoconfig: using -lpthread
autoconfig: using -laio
autoconfig: using float decimal support
autoconfig: using nop assembler instruction
autoconfig: using 64 byte alignment attribute
autoconfig: using 128 byte alignment attribute
autoconfig: using 64K byte alignment attribute
autoconfig: using sched affinity CPU masks
autoconfig: using madvise
autoconfig: using POSIX semaphores
autoconfig: using SYSV message queues
autoconfig: using SYSV shared memory
autoconfig: using inotify
... ... ...
... ... ...
cc -Wall -Wextra -DVERSION="0.08.13" -O2 -std=gnu99 -DHAVE_LIB_CRYPT -DHAVE_LIB_RT -DHAVE_LIB_PTHREAD -DHAVE_LIB_AIO -DHAVE_FLOAT_DECIMAL -DHAVE_ASM_NOP -DHAVE_ALIGNED_64 -DHAVE_ALIGNED_128 -DHAVE_ALIGNED_64K -DHAVE_AFFINITY -DHAVE_MADVISE -DHAVE_SEM_POSIX -DHAVE_MQ_SYSV -DHAVE_SHM_SYSV -DHAVE_INOTIFY -c -o stress-fallocate.o stress-fallocate.c
cc -Wall -Wextra -DVERSION="0.08.13" -O2 -std=gnu99 -DHAVE_LIB_CRYPT -DHAVE_LIB_RT -DHAVE_LIB_PTHREAD -DHAVE_LIB_AIO -DHAVE_FLOAT_DECIMAL -DHAVE_ASM_NOP -DHAVE_ALIGNED_64 -DHAVE_ALIGNED_128 -DHAVE_ALIGNED_64K -DHAVE_AFFINITY -DHAVE_MADVISE -DHAVE_SEM_POSIX -DHAVE_MQ_SYSV -DHAVE_SHM_SYSV -DHAVE_INOTIFY -c -o stress-fault.o stress-fault.c
cc -Wall -Wextra -DVERSION="0.08.13" -O2 -std=gnu99 -DHAVE_LIB_CRYPT -DHAVE_LIB_RT -DHAVE_LIB_PTHREAD -DHAVE_LIB_AIO -DHAVE_FLOAT_DECIMAL -DHAVE_ASM_NOP -DHAVE_ALIGNED_64 -DHAVE_ALIGNED_128 -DHAVE_ALIGNED_64K -DHAVE_AFFINITY -DHAVE_MADVISE -DHAVE_SEM_POSIX -DHAVE_MQ_SYSV -DHAVE_SHM_SYSV -DHAVE_INOTIFY -c -o stress-fcntl.o stress-fcntl.c
stress-fcntl.c: In function ‘do_fcntl’:
stress-fcntl.c:233: error: ‘F_OWNER_PGRP’ undeclared (first use in this function)
stress-fcntl.c:233: error: (Each undeclared identifier is reported only once
stress-fcntl.c:233: error: for each function it appears in.)
make: *** [stress-fcntl.o] Error 1
stress-ng-0.08.13 #

Cheers,

-Andy

Revision history for this message
Hubba (hubba) wrote :

I have managed to compile 0.09.00 by renaming F_OWNER_PGRP back to F_OWNER_GID which I believe from some reading is what this was called on older Linux distros (https://gitlab.collabora.com/martyn/linux/commit/978b4053aefd422713f289f2a315ce2acba62018) so I did on the source:

sed -i 's/F_OWNER_PGRP/F_OWNER_GID/g' stress-fcntl.c

Not sure yet as that has any negative impact.

Best regards
Hubba

Revision history for this message
Colin Ian King (colin-king) wrote :

This has been fixed, I just pushed the change to the stress-ng repository:

http://kernel.ubuntu.com/git/cking/stress-ng.git/commit/?id=5f7e38f43c6ef0c1930c4868c1189523bd279452

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.