Opened 15 years ago

Closed 15 years ago

#5193 closed defect (fixed)

BUG: samba 3.0.20 fails to build

Reported by: josebiro@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: markd@…
Port:

Description

It's a very similar error to that contained in this post: http://lists.samba.org/archive/samba-technical/2005-September/042654.html

Compiling dynconfig.c In file included from dynconfig.c:21: include/includes.h:799: error: redefinition of `struct timespec'

The solution in the post above fixed the issue and after manually altering config.h to say: /* Whether we have struct timespec */ #define HAVE_STRUCT_TIMESPEC 1

apparently configure still does not set this correctly

Ran make clean; make and all was well...

Change History (4)

comment:1 Changed 15 years ago by mww@…

Owner: changed from darwinports-bugs@… to mww@…
Summary: samba 3.0.20 fails to buildBUG: samba 3.0.20 fails to build

as I have no 10.3 machine, would you mind providing a working patch? Thanks!

comment:2 Changed 15 years ago by mww@…

does simply changing the CPPFLAGS line in the Portfile to:

CPPFLAGS="-I${prefix}/include -DHAVE_STRUCT_TIMESPEC" \

solve this issue?

comment:3 Changed 15 years ago by markd@…

Cc: markd@… added

(In reply to comment #2)

does simply changing the CPPFLAGS line in the Portfile to:

CPPFLAGS="-I${prefix}/include -DHAVE_STRUCT_TIMESPEC" \

solve this issue?

Samba installs on 10.3 fine now. I see somebody has added -DHAVE_STRUCT_TIMESPEC so that must have done it. This can be closed.

comment:4 Changed 15 years ago by mww@…

Resolution: fixed
Status: newclosed

(In reply to comment #3)

(In reply to comment #2)

does simply changing the CPPFLAGS line in the Portfile to:

CPPFLAGS="-I${prefix}/include -DHAVE_STRUCT_TIMESPEC" \

solve this issue?

Samba installs on 10.3 fine now. I see somebody has added -DHAVE_STRUCT_TIMESPEC so that must have done it. This can be closed.

yes, this was me - thanks for the feed-back!

Note: See TracTickets for help on using tickets.