pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: .wrapper/bin/cc ignoring -I/usr/pkg/include flag



On Mon, 13 Aug 2007 18:57:07 +1000
Brendon Costa <brendon%christian.net@localhost> wrote:

> In particular i am finding now that the configure script fails to locate
> libbfd. In particular a conftest program:
> 
> #include <bfd.h>
> int main()
> {
>    bfd_init();
>    return 0;
> }
> 
> fails to compile with the error:
> bfd.h: No such file or directory
> 
> There is such a file in /usr/pkg/include/bfd.h and the configure script
> tests for it there using a -I/usr/pkg/include. The actual command line is:
> 
> cc -o conftest -O2 -I/usr/pkg/include/python2.4 -I/usr/include
> -I/usr/pkg/include/python2.4 -I/usr/include  -I/usr/pkg/include
> -L/usr/pkg/lib/python2.4/config -Wl,-R/usr/pkg/lib/python2.4/config
> -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib  -L/usr/pkg/lib conftest.c
>  -lbfd -liberty  -lintl
> 
> I tried compiling it manually and it works fine with /usr/bin/cc however
> compiling with: /usr/pkgsrc/wip/edoc/work/.wrapper/bin/cc seems to
> filter out the -I/usr/pkg/include
> 
> Is there a specific way i should tell the wrapper scripts not to filter
> out libbfd? Note: I have also got an include line in my Makefile:
> .include "../../devel/binutils/buildlink3.mk"
> 
> Thanks,
> Brendon.

Please do:

make clean
make wrapper
make show-var VARNAME=BUILDLINK_DIR

In the directory shown, there should be a file include/bfd.h.
The pkgsrc wrappers replace -I/usr/pkg/include with
-I${BUILDLINK_DIR}/include. If this doesn't work, you can look at
${WRKDIR}/.work.log to see the translated commands that are executed.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss




Home | Main Index | Thread Index | Old Index