[MacPorts] #61454: samba3 3.6.25_3: gettimeofday wrong

MacPorts noreply at macports.org
Sun Nov 22 16:22:04 UTC 2020


#61454: samba3 3.6.25_3: gettimeofday wrong
--------------------------+--------------------
  Reporter:  MaddTheSane  |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.6.4
Resolution:               |   Keywords:
      Port:  samba3       |
--------------------------+--------------------

Comment (by ballapete):

 Replying to [comment:5 ballapete]:
 >
 > Is `configure` faulty?

 Yes, it seems so:

 {{{
 configure:7348: result: /opt/local/bin/python-config
 configure:7430: /usr/bin/clang -o conftest -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch
 x86_64
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 -L/opt/local/lib -Wl,-headerpad_max_install_names -lintl
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 -arch x86_64 conftest.c
 -L/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/config-3.8-darwin
 -ldl -framework CoreFoundation >&5
 conftest.c:51:5: error: implicit declaration of function 'Py_InitModule'
 is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                                 Py_InitModule(NULL, NULL);
                                 ^
 1 error generated.
 configure:7430: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "Samba"
 | #define PACKAGE_TARNAME "samba"
 | #define PACKAGE_VERSION "3"
 | #define PACKAGE_STRING "Samba 3"
 | #define PACKAGE_BUGREPORT "samba-technical at samba.org"
 | #define PACKAGE_URL ""
 | #define CONFIG_H_IS_FROM_SAMBA 1
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define __EXTENSIONS__ 1
 | #define _ALL_SOURCE 1
 | #define _GNU_SOURCE 1
 | #define _POSIX_PTHREAD_SEMANTICS 1
 | #define _TANDEM_SOURCE 1
 | #ifndef _XOPEN_SOURCE_EXTENDED
 | #define _XOPEN_SOURCE_EXTENDED 1
 | #endif
 | #define HAVE_STANDARDS_H 1
 | #define HAVE_LONG_LONG 1
 | #define SIZEOF_INT 4
 | #define SIZEOF_CHAR 1
 | #define SIZEOF_SHORT 2
 | #define SIZEOF_LONG 8
 | #define SIZEOF_LONG_LONG 8
 | #define SIZEOF_OFF_T 8
 | #define SIZEOF_SIZE_T 8
 | #define SIZEOF_SSIZE_T 8
 | #define HAVE_INTPTR_T 1
 | #define HAVE_UINTPTR_T 1
 | #define HAVE_PTRDIFF_T 1
 | #define HAVE_IMMEDIATE_STRUCTURES 1
 | /* end confdefs.h.  */
 |
 |                                 #undef HAVE_UINTPTR_T
 |                               /* we have our own configure tests */
 |                               #include <Python.h>
 |
 | int
 | main ()
 | {
 |
 |                               Py_InitModule(NULL, NULL);
 |
 |   ;
 |   return 0;
 | }
 configure:7467: /usr/bin/clang -o conftest -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch
 x86_64
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8
 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic
 -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 -L/opt/local/lib -Wl,-headerpad_max_install_names -lintl
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 -arch x86_64 conftest.c
 -L/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/config-3.8-darwin
 -ldl -framework CoreFoundation >&5
 conftest.c:51:5: error: implicit declaration of function 'Py_InitModule'
 is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                                 Py_InitModule(NULL, NULL);
                                 ^
 1 error generated.
 configure:7467: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "Samba"
 | #define PACKAGE_TARNAME "samba"
 | #define PACKAGE_VERSION "3"
 | #define PACKAGE_STRING "Samba 3"
 | #define PACKAGE_BUGREPORT "samba-technical at samba.org"
 | #define PACKAGE_URL ""
 | #define CONFIG_H_IS_FROM_SAMBA 1
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define __EXTENSIONS__ 1
 | #define _ALL_SOURCE 1
 | #define _GNU_SOURCE 1
 | #define _POSIX_PTHREAD_SEMANTICS 1
 | #define _TANDEM_SOURCE 1
 | #ifndef _XOPEN_SOURCE_EXTENDED
 | #define _XOPEN_SOURCE_EXTENDED 1
 | #endif
 | #define HAVE_STANDARDS_H 1
 | #define HAVE_LONG_LONG 1
 | #define SIZEOF_INT 4
 | #define SIZEOF_CHAR 1
 | #define SIZEOF_SHORT 2
 | #define SIZEOF_LONG 8
 | #define SIZEOF_LONG_LONG 8
 | #define SIZEOF_OFF_T 8
 | #define SIZEOF_SIZE_T 8
 | #define SIZEOF_SSIZE_T 8
 | #define HAVE_INTPTR_T 1
 | #define HAVE_UINTPTR_T 1
 | #define HAVE_PTRDIFF_T 1
 | #define HAVE_IMMEDIATE_STRUCTURES 1
 | /* end confdefs.h.  */
 |
 |                                 #undef HAVE_UINTPTR_T
 |                               /* we have our own configure tests */
 |                               #include <Python.h>
 |
 | int
 | main ()
 | {
 |
 |                               Py_InitModule(NULL, NULL);
 |
 |   ;
 |   return 0;
 | }
 configure:7507: /usr/bin/clang -o conftest -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch
 x86_64
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 -L/opt/local/lib -Wl,-headerpad_max_install_names -lintl
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 -arch x86_64 conftest.c  -n
 -L/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib
 -L/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/config-3.8-darwin
 -ldl -framework CoreFoundation >&5
 clang: error: unknown argument: '-n'
 configure:7507: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "Samba"
 | #define PACKAGE_TARNAME "samba"
 | #define PACKAGE_VERSION "3"
 | #define PACKAGE_STRING "Samba 3"
 | #define PACKAGE_BUGREPORT "samba-technical at samba.org"
 | #define PACKAGE_URL ""
 | #define CONFIG_H_IS_FROM_SAMBA 1
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define __EXTENSIONS__ 1
 | #define _ALL_SOURCE 1
 | #define _GNU_SOURCE 1
 | #define _POSIX_PTHREAD_SEMANTICS 1
 | #define _TANDEM_SOURCE 1
 | #ifndef _XOPEN_SOURCE_EXTENDED
 | #define _XOPEN_SOURCE_EXTENDED 1
 | #endif
 | #define HAVE_STANDARDS_H 1
 | #define HAVE_LONG_LONG 1
 | #define SIZEOF_INT 4
 | #define SIZEOF_CHAR 1
 | #define SIZEOF_SHORT 2
 | #define SIZEOF_LONG 8
 | #define SIZEOF_LONG_LONG 8
 | #define SIZEOF_OFF_T 8
 | #define SIZEOF_SIZE_T 8
 | #define SIZEOF_SSIZE_T 8
 | #define HAVE_INTPTR_T 1
 | #define HAVE_UINTPTR_T 1
 | #define HAVE_PTRDIFF_T 1
 | #define HAVE_IMMEDIATE_STRUCTURES 1
 | /* end confdefs.h.  */
 |
 |                                 #undef HAVE_UINTPTR_T
 |                               /* we have our own configure tests */
 |                               #include <Python.h>
 |
 | int
 | main ()
 | {
 |
 |                               Py_InitModule(NULL, NULL);
 |
 |   ;
 |   return 0;
 | }
 configure:7544: /usr/bin/clang -o conftest -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch
 x86_64
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8
 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic
 -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 -L/opt/local/lib -Wl,-headerpad_max_install_names -lintl
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 -arch x86_64 conftest.c  -n
 -L/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib
 -L/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/config-3.8-darwin
 -ldl -framework CoreFoundation >&5
 clang: error: unknown argument: '-n'
 configure:7544: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "Samba"
 | #define PACKAGE_TARNAME "samba"
 | #define PACKAGE_VERSION "3"
 | #define PACKAGE_STRING "Samba 3"
 | #define PACKAGE_BUGREPORT "samba-technical at samba.org"
 | #define PACKAGE_URL ""
 | #define CONFIG_H_IS_FROM_SAMBA 1
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define __EXTENSIONS__ 1
 | #define _ALL_SOURCE 1
 | #define _GNU_SOURCE 1
 | #define _POSIX_PTHREAD_SEMANTICS 1
 | #define _TANDEM_SOURCE 1
 | #ifndef _XOPEN_SOURCE_EXTENDED
 | #define _XOPEN_SOURCE_EXTENDED 1
 | #endif
 | #define HAVE_STANDARDS_H 1
 | #define HAVE_LONG_LONG 1
 | #define SIZEOF_INT 4
 | #define SIZEOF_CHAR 1
 | #define SIZEOF_SHORT 2
 | #define SIZEOF_LONG 8
 | #define SIZEOF_LONG_LONG 8
 | #define SIZEOF_OFF_T 8
 | #define SIZEOF_SIZE_T 8
 | #define SIZEOF_SSIZE_T 8
 | #define HAVE_INTPTR_T 1
 | #define HAVE_UINTPTR_T 1
 | #define HAVE_PTRDIFF_T 1
 | #define HAVE_IMMEDIATE_STRUCTURES 1
 | /* end confdefs.h.  */
 |
 |                                 #undef HAVE_UINTPTR_T
 |                               /* we have our own configure tests */
 |                               #include <Python.h>
 |
 | int
 | main ()
 | {
 |
 |                               Py_InitModule(NULL, NULL);
 |
 |   ;
 |   return 0;
 | }
 configure:7599: /usr/bin/clang -o conftest -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch
 x86_64  -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 -L/opt/local/lib -Wl,-headerpad_max_install_names -lintl
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 -arch x86_64 conftest.c   >&5
 conftest.c:45:14: fatal error: 'Python.h' file not found
                                 #include <Python.h>
                                          ^~~~~~~~~~
 1 error generated.
 configure:7599: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "Samba"
 | #define PACKAGE_TARNAME "samba"
 | #define PACKAGE_VERSION "3"
 | #define PACKAGE_STRING "Samba 3"
 | #define PACKAGE_BUGREPORT "samba-technical at samba.org"
 | #define PACKAGE_URL ""
 | #define CONFIG_H_IS_FROM_SAMBA 1
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define __EXTENSIONS__ 1
 | #define _ALL_SOURCE 1
 | #define _GNU_SOURCE 1
 | #define _POSIX_PTHREAD_SEMANTICS 1
 | #define _TANDEM_SOURCE 1
 | #ifndef _XOPEN_SOURCE_EXTENDED
 | #define _XOPEN_SOURCE_EXTENDED 1
 | #endif
 | #define HAVE_STANDARDS_H 1
 | #define HAVE_LONG_LONG 1
 | #define SIZEOF_INT 4
 | #define SIZEOF_CHAR 1
 | #define SIZEOF_SHORT 2
 | #define SIZEOF_LONG 8
 | #define SIZEOF_LONG_LONG 8
 | #define SIZEOF_OFF_T 8
 | #define SIZEOF_SIZE_T 8
 | #define SIZEOF_SSIZE_T 8
 | #define HAVE_INTPTR_T 1
 | #define HAVE_UINTPTR_T 1
 | #define HAVE_PTRDIFF_T 1
 | #define HAVE_IMMEDIATE_STRUCTURES 1
 | /* end confdefs.h.  */
 |
 |                                 #undef HAVE_UINTPTR_T
 |                               /* we have our own configure tests */
 |                               #include <Python.h>
 |
 | int
 | main ()
 | {
 |
 |                               Py_InitModule(NULL, NULL);
 |
 |   ;
 |   return 0;
 | }
 configure:7621: checking working python module support
 configure:7628: result: no
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61454#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list