OpenLDAP
Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest

Viewing Incoming/8787
Full headers

From: jinxinliang@yahoo.com
Subject: mkdep does not get CFLAGS during cross compilation
Compose comment
Download message
State:
0 replies:
0 followups:

Major security issue: yes  no

Notes:

Notification:


Date: Fri, 08 Dec 2017 23:08:06 +0000
From: jinxinliang@yahoo.com
To: openldap-its@OpenLDAP.org
Subject: mkdep does not get CFLAGS during cross compilation
Full_Name: Jeremy Jin
Version: 2.4
OS: mingw and ubuntu
URL: 
Submission from: (NULL) (209.29.4.43)


I am trying to build mingw in two different situations,

1. on mingw 
2. cross build from ubuntu 14 for target arm linux

In both situation I found that, some dependencies (such as regex) does not exist
in system default /usr/include. So I download regex from somewhere and build it.
Then I need to specify a custom CFLAGS for configure command such as below

./configure CFLAGS=-I/home/user1/include LDFLAGS=-L/home/user1/lib LIBS=-lregex


the configuration run successfully,then I proceed to do "make depend". However
it will report "regex.h" file not found. And I found that "mkdep" command does
not make use of the CFLAGS I provided on configure command at all. I worked
around it by create another mkdep command to wrap the existing mkdep command and
add my additional include folders and it worked.

Then next issue I found is I had to modify "portable.h" file as well. I had to
comment out  "#define socklen_t int" and add "typedef unsigned int uint32_t". I
am not sure why the portable.h is not generated correctly (this only happens on
mingw, not tested on ubuntu cross compiling ARM at all). 

Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest


The OpenLDAP Issue Tracking System uses a hacked version of JitterBug

______________
© Copyright 2013, OpenLDAP Foundation, info@OpenLDAP.org