Skip to content

COMPILATION: shared library build fails with gcc (Debian 14.2.0-16) 14.2.0 #1

@newbie-02

Description

@newbie-02

Tried with patched decBasic.c, decNumber.c, decNumberLocal.h,
build.sh chmoded "+x", "dos2unixed", and "re-commented" to use gcc.

Result:

...  
Making static lib libdecnum.a
Making shared lib libdecnum.so
/usr/bin/ld: decimal128.o: warning: relocation against `COMBMSD' in read-only section `.text'
/usr/bin/ld: decNumber.o: relocation R_X86_64_PC32 against symbol `DECPOWERS' 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
Installing libdecnum.a to install
Installing libdecnum.so to install
cp: cannot stat 'build/libdecnum.so': No such file or directory
Installing headers to install

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions