https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61920

            Bug ID: 61920
           Summary: [4.8/4.9/4.10 Regression] libobjc has undefined
                    symbols on powerp*-linux-gnu
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libobjc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org

this is caused by:

2014-07-24  Ulrich Weigand  <ulrich.weig...@de.ibm.com>

        * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
        Add prototype.
        * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
        function.  Issue -Wpsabi warning if future GCC releases will use
        different field alignment rules for this type.
        * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
        * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.

linking libobjc shows:

/«PKGBUILDDIR»/src/libobjc/encoding.c: In function
'objc_layout_structure_next_member':
/«PKGBUILDDIR»/src/libobjc/encoding.c:1163:3: warning: implicit declaration of
function 'rs6000_special_adjust_field_align_p'
[-Wimplicit-function-declaration]
   desired_align = ADJUST_FIELD_ALIGN (type, desired_align);
   ^

and later the packaging tools warn about:

dpkg-shlibdeps: warning: symbol rs6000_special_adjust_field_align_p used by
debian/libobjc4/usr/lib/powerpc-linux-gnu/libobjc.so.4.0.0 found in none of the
libraries

resulting in build failures for any binary linking with -lobjc.

libobjc/encoding.c has a comment saying that it has no business including tm.h,
but up to now it did work.

Reply via email to