This is the log of the conversation kwm.
<kwm> ericbsd: if you could post config.log, configure output and where I can find the configure.[ac|in] file?
<ericbsd> https://github.com/linuxmint/mdm/blob/m ... nfigure.ac
<ericbsd> line 612
<ericbsd> it is the old GDM maintain by Linux mint.
<kwm> ericbsd: try putting the following line in post-patch: ${REINPLACE_CMD} -e 's|/usr/X11R6/lib|${LOCALBASE}/include|g' ${WRKSRC}/configure
<kwm> make clean configure
<kwm> it might just work if you add CPPFLAGS+=-I${LOCALBASE}/include also
<ericbsd> I will try.
This is for building a port.
MDM
Re: MDM
it turned out to not be a case of wrong path:
from log files:
the test fail because of the compiler option: "-Werror=implicit-function-declaration"
removing that option from "configure" solved the problem.
PS: please note that while the "configure" problem is solved, the code still doesn't build as expected, further patching is required.
from log files:
Code: Select all
configure:18893: result: no
configure:18907: checking for -lXi in /usr/local/lib
configure:18920: cc -o conftest -g -O2 -Wall -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror
=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs conftest.c -L/usr/local/lib -lXi >&5
conftest.c:64:1: error: implicit declaration of function 'XOpenDevice' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
XOpenDevice()
removing that option from "configure" solved the problem.
PS: please note that while the "configure" problem is solved, the code still doesn't build as expected, further patching is required.