You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2015/07/20 12:58:11 UTC

[Issue 126414] New: missing -fPIC flag

https://bz.apache.org/ooo/show_bug.cgi?id=126414

          Issue ID: 126414
        Issue Type: DEFECT
           Summary: missing -fPIC flag
           Product: General
           Version: 4.2.0-dev
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P5
         Component: code
          Assignee: issues@openoffice.apache.org
          Reporter: hramrach@gmail.com

When building openoffice the build fails due to something missing -fPIC flag. I
am building on Linux AMD64.


I added -fPIC to ARCH_FLAGS and the build seems to proceed much further.

This needs further investigation as to where the flag is missing. The object
where the build fails probably links to something that should have been built
with -fPIC but is not.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 126414] missing -fPIC flag

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126414

--- Comment #2 from hramrach@gmail.com ---
hmm, to the best of my knowledge both fmgridif.c and the directory containing
WindowListenerMultiplexer are built with -fPIC so the error is misleading at
best.

g++ (Debian 4.9.2-10) 4.9.2

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 126414] missing -fPIC flag

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126414

--- Comment #1 from hramrach@gmail.com ---
ok, I have the exact error now:

[ build LNK ] Library/libsvxcore.so
/scratch/build/aoo/main/solver/420/unxlngx6.pro/workdir/CxxObject/svx/source/fmcomp/fmgridif.o:
In function
`FmXGridControl::createPeer(com::sun::star::uno::Reference<com::sun::star::awt::XToolkit>
const&, com::sun::star::uno::Reference<com::sun::star::awt::XWindowPeer>
const&)':
fmgridif.cxx:(.text+0x68b2): undefined reference to `non-virtual thunk to
WindowListenerMultiplexer::acquire()'
/usr/bin/ld:
/scratch/build/aoo/main/solver/420/unxlngx6.pro/workdir/CxxObject/svx/source/fmcomp/fmgridif.o:
relocation R_X86_64_PC32 against undefined symbol
`_ZThn48_N25WindowListenerMultiplexer7acquireEv' can not be used when making a
shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
/scratch/build/aoo/main/solenv/gbuild/LinkTarget.mk:259: recipe for target
'/scratch/build/aoo/main/solver/420/unxlngx6.pro/workdir/LinkTarget/Library/libsvxcore.so'
failed
make: ***
[/scratch/build/aoo/main/solver/420/unxlngx6.pro/workdir/LinkTarget/Library/libsvxcore.so]
Error 1
dmake:  Error code 2, while making 'all'


So adding -fPIC to flags at random does not help.

-- 
You are receiving this mail because:
You are the assignee for the issue.