Error - FreeBSD 9.0 Won't compile

William Brown william.e.brown at adelaide.edu.au
Wed Jan 25 15:38:50 MST 2012


On 26/01/2012, at 09:01, Amitay Isaacs wrote:

> On Thu, Jan 26, 2012 at 9:25 AM, William Brown
> <william.e.brown at adelaide.edu.au> wrote:
>> 
>>> You were correct. I have removed these ports and will get back to you shortly about how the build goes
>>> 
>>> For those who are following and want to know how to remove these
>>> 
>>> Run pkg_info | less to find the ports. Then run
>>> 
>>> pkg_delete tdb-1.2.9,1
>>> pkg_delete tevent-0.9.13
>>> pkg_delete talloc-2.0.7
>>> 
>> 
>> Yet another new complication rears it's head.
>> 
>> WAF_MAKE=1 ./buildtools/bin/waf build
>> Waf: Entering directory `/root/samba-master/bin'
>> [ 128/3915] Generating VERSION
>> [ 163/3915] Generating smbd/build_options.c
>> [2350/3915] Compiling source3/lib/netapi/cm.c
>> In file included from ../source3/lib/netapi/cm.c:21:
>> ../source3/include/popt_common.h:23:18: error: popt.h: No such file or directory
>> In file included from ../source3/lib/netapi/cm.c:21:
>> ../source3/include/popt_common.h:26: error: array type has incomplete element type
>> ../source3/include/popt_common.h:27: error: array type has incomplete element type
>> ../source3/include/popt_common.h:28: error: array type has incomplete element type
>> ../source3/include/popt_common.h:29: error: array type has incomplete element type
>> ../source3/include/popt_common.h:30: error: array type has incomplete element type
>> ../source3/include/popt_common.h:31: error: array type has incomplete element type
>> ../source3/include/popt_common.h:32: error: array type has incomplete element type
>> ../source3/include/popt_common.h:33: error: array type has incomplete element type
>> Waf: Leaving directory `/root/samba-master/bin'
>> Build failed:  -> task failed (err #1):
>>        {task: cc cm.c -> cm_3.o}
>> *** Error code 1
>> 
>> Stop in /root/samba-master.
>> 
>> Popt is installed
>> 
>> pkg_info | grep popt
>> popt-1.16           A getopt(3) like library with a number of enhancements, fro
>> 
>> And I can find /usr/local/include/popt.h
>> 
>> Perhaps this isn't in the include path? How do I add this?
>> 
> 
> What does configure script say about popt? You can check in bin/config.log.
> 
> Amitay.


Checking for system popt
pkg-config --errors-to-stdout --print-errors "popt >= 0.0.0" --cflags --libs popt
-I/usr/local/include  -L/usr/local/lib -lpopt  
Checking for header popt.h
#include <popt.h>
Checking for library popt
Checking for poptGetContext
#define HAVE_POPT 1
#define HAVE_POPT_H 1
#define HAVE_LIBPOPT 1
                         #define poptGetContext __fake__poptGetContext
                         #undef poptGetContext
                         #if defined __stub_poptGetContext || defined __stub___poptGetContext
                         extern char poptGetContext();
                         int main() { return poptGetContext(); }
['/usr/bin/gcc', 'default/test_1.o', '-o', '/root/samba-master/bin/.conf_check_0/testbuild/default/testprog', '-L/usr/local/lib', '-Wl,-no-undefined', '-Wl,-Bdynamic', '-lpopt']
#define HAVE_POPT 1
#define HAVE_POPT_H 1
#define HAVE_LIBPOPT 1
#define HAVE_POPTGETCONTEXT 1
#define USING_SYSTEM_POPT 1

Followed by those last 5 lines being repeated over and over .... 

Sincerely,

William Brown

Research & Teaching, Technology Services
The University of Adelaide, AUSTRALIA 5005

CRICOS Provider Number 00123M
-----------------------------------------------------------------------------
IMPORTANT: This message may contain confidential or legally privileged
information. If you think it was sent to you by mistake, please delete all
copies and advise the sender. For the purposes of the SPAM Act 2003, this
email is authorised by The University of Adelaide.

pgp.mit.edu
http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x3C0AC6DAB2F928A2




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120126/12ad3228/attachment.pgp>


More information about the samba-technical mailing list