getting an error: relink message when doing a make install for openldap

jfha73

I'm trying to compile/install OpenLDAP from source on Ubuntu 14.04, ./configure goes well, make goes well too, but when I do amake install I get this:

/usr/bin/ld: /usr/lib/libssl.a(s23_meth.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libssl.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
libtool: install: error: relink `libldap.la' with the above command before installing it
make[2]: *** [install-local] Error 1
make[2]: Leaving directory `/home/user/Downloads/openldap-2.4.40/libraries/libldap'
make[1]: *** [install-common] Error 1
make[1]: Leaving directory `/home/user/Downloads/openldap-2.4.40/libraries'
make: *** [install-common] Error 1

It does mention above to compile using -fPIC which I have as follows:

CFLAGS=-fPIC
CXXFlAGS=-fPIC
CPPGLAGS=-fPIC

So I don't think that's the problem, I think it has more to do with the relink issue, or the bad value error.

Any ideas how I can get this to work?

jfha73

I was able to fix it using:

-D_GNU_SOURCE

Along with -fPIC for CFLAGS and CPPFLAGS

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to hide tablix in ssrs? getting error message when doing preview

From Dev

I'm getting a "No podspec found" message when doing "pod install" against a private gitlab pod/project container

From Dev

Getting Error Message when trying to install Chrome by command line

From Dev

Getting error message when returning a boolean in Swift

From Dev

Getting this error when I am doing npm start

From Dev

Getting 500 ERROR when doing an AJAX request in Laravel

From Dev

Getting error in Xcode when doing this if let objects = objects as? [PFObject]

From Dev

Error message when installing scipy with pip install

From Dev

Error message when installing scipy with pip install

From Dev

EACCESS Error when doing npm install -g bower

From Dev

Getting error when trying to install PHP on Ubuntu

From Dev

Getting this error when I want to install PyAutoIt

From Dev

make:No rule to make target install. Stop for openldap

From Dev

make install error when compiling a program with cuda

From Dev

Error when using 'make install' command

From Dev

PHP - getting error message on submit when no error is present

From Dev

Getting error message when trying to break out of a while loop in Python

From Dev

NServiceBus - getting error when message spawns many child messages

From Dev

Why am I getting this error message when searching for a library?

From Dev

Getting error message when trying to start a virtual machine

From Dev

Getting an error message when trying to open an excel file by double click

From Dev

Getting error message when trying to break out of a while loop in Python

From Dev

Getting an error message when I instantiate my ArrayAdapter subclass

From Dev

Getting error when trying to do the customized message in jQuery validate

From Dev

NSURL - getting error message

From Dev

Getting an Array error message

From Dev

Error message in terminal when installing pip install xlwt

From Dev

Error message (popping up 5 times) when doing apt-get update

From Dev

Getting an error when attempting to install a cocoapod from a mercurial repo by commit

Related Related

  1. 1

    How to hide tablix in ssrs? getting error message when doing preview

  2. 2

    I'm getting a "No podspec found" message when doing "pod install" against a private gitlab pod/project container

  3. 3

    Getting Error Message when trying to install Chrome by command line

  4. 4

    Getting error message when returning a boolean in Swift

  5. 5

    Getting this error when I am doing npm start

  6. 6

    Getting 500 ERROR when doing an AJAX request in Laravel

  7. 7

    Getting error in Xcode when doing this if let objects = objects as? [PFObject]

  8. 8

    Error message when installing scipy with pip install

  9. 9

    Error message when installing scipy with pip install

  10. 10

    EACCESS Error when doing npm install -g bower

  11. 11

    Getting error when trying to install PHP on Ubuntu

  12. 12

    Getting this error when I want to install PyAutoIt

  13. 13

    make:No rule to make target install. Stop for openldap

  14. 14

    make install error when compiling a program with cuda

  15. 15

    Error when using 'make install' command

  16. 16

    PHP - getting error message on submit when no error is present

  17. 17

    Getting error message when trying to break out of a while loop in Python

  18. 18

    NServiceBus - getting error when message spawns many child messages

  19. 19

    Why am I getting this error message when searching for a library?

  20. 20

    Getting error message when trying to start a virtual machine

  21. 21

    Getting an error message when trying to open an excel file by double click

  22. 22

    Getting error message when trying to break out of a while loop in Python

  23. 23

    Getting an error message when I instantiate my ArrayAdapter subclass

  24. 24

    Getting error when trying to do the customized message in jQuery validate

  25. 25

    NSURL - getting error message

  26. 26

    Getting an Array error message

  27. 27

    Error message in terminal when installing pip install xlwt

  28. 28

    Error message (popping up 5 times) when doing apt-get update

  29. 29

    Getting an error when attempting to install a cocoapod from a mercurial repo by commit

HotTag

Archive