Public bug reported:

0.3-8 is in hirsute and builds fine with :
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -Wall -fPIC -DLINUX_PAM -I. -DBUG_STAT_MISSING 
-Wdate-time -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -UBUG_STAT_MISSING   -c 
pam_alreadyloggedin.c

0.3-9 in impish proposed fails with : 
gcc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects 
-fstack-protector-strong -Wformat -Werror=format-security -Wall -fPIC 
-DLINUX_PAM -I. -DBUG_STAT_MISSING -Wdate-time -D_FORTIFY_SOURCE=2  -c 
pam_alreadyloggedin.c

Comparing these shows that -D_FILE_OFFSET_BITS=64 and -UBUG_STAT_MISSING
were lost in the 0.3-9 release. This comes as a result of the
debian/rules being overhauled to use dh sequencer. Before the rules
update, it had :

export CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) \
        -D_FILE_OFFSET_BITS=64 \
        -UBUG_STAT_MISSING \

This block is gone in impish, so BUG_STAT_MISSING is no longer being
undefined (it is defined over in the makefile.diff). And
pam_alreadyloggedin.c uses __xstat if BUG_STAT_MISSING is defined,
leading to our failure.

** Affects: libpam-alreadyloggedin (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: ftbfs

** Tags added: ftbfs

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1935081

Title:
  FTBFS: Cannot build with BUG_STAT_MISSING defined

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libpam-alreadyloggedin/+bug/1935081/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to