pkgsrc-WIP-discuss archive

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

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



Sorry for the additional questions.

I am trying to compile a new pkgsrc project which builds fine from
source using ./configure && gmake && gmake install, however it fails to
build under the pkgsrc framework.

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.


-------------------------------------------------------------------------
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