[MacPorts] #71362: gphoto2 2.5.28: :info:build main.c:1218:9: error: incompatible pointer to integer conversion returning 'pthread_t' (aka 'struct _opaque_pthread_t *') from a function with result type 'unsigned int' [-Wint-conversion]

MacPorts noreply at macports.org
Mon Jun 2 15:39:11 UTC 2025


#71362: gphoto2 2.5.28: :info:build main.c:1218:9: error: incompatible pointer to
integer conversion returning 'pthread_t' (aka 'struct _opaque_pthread_t *')
from a function with result type 'unsigned int' [-Wint-conversion]
----------------------+------------------------
  Reporter:  jaypike  |      Owner:  ryandesign
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:  gphoto2  |
----------------------+------------------------
Changes (by jmroot):

 * status:  new => assigned
 * owner:  (none) => ryandesign
 * port:   => gphoto2
 * keywords:  gphoto2 =>


Old description:

> Failure to build gphoto2 port and getting the following error:
>
> :info:build /usr/bin/clang -DHAVE_CONFIG_H -I. -I..
> -DLOCALEDIR=\"/opt/local/share/locale\" -D_GPHOTO2_INTERNAL_CODE
> -I/opt/local/include
> -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -I..
> -I../gphoto2 -I/opt/local/include/gphoto2
> -DLOCALEDIR=\"/opt/local/share/locale\" -D_GPHOTO2_INTERNAL_CODE
> -I/opt/local/include
> -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk
> -I/opt/local/include -pipe -Os
> -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -arch
> arm64 -Wall -Wmissing-declarations -Wmissing-prototypes -g -MT
> gphoto2-shell.o -MD -MP -MF .deps/gphoto2-shell.Tpo -c -o gphoto2-shell.o
> `test -f 'shell.c' || echo './'`shell.c
> :info:build mv -f .deps/gphoto2-version.Tpo .deps/gphoto2-version.Po
> :info:build main.c:1218:9: error: incompatible pointer to integer
> conversion returning 'pthread_t' (aka 'struct _opaque_pthread_t *') from
> a function with result type 'unsigned int' [-Wint-conversion]
> :info:build  1218 |         return (tid);
> :info:build       |                ^~~~~
> :info:build main.c:1225:12: error: incompatible integer to pointer
> conversion initializing 'pthread_t' (aka 'struct _opaque_pthread_t *')
> with an expression of type 'unsigned int' [-Wint-conversion]
> :info:build  1225 |         pthread_t tid = id;
> :info:build       |                   ^     ~~
> :info:build mv -f .deps/gphoto2-spawnve.Tpo .deps/gphoto2-spawnve.Po
> :info:build 2 errors generated.
> :info:build make[2]: *** [gphoto2-main.o] Error 1
> :info:build make[2]: *** Waiting for unfinished jobs....

New description:

 Failure to build gphoto2 port and getting the following error:
 {{{
 :info:build /usr/bin/clang -DHAVE_CONFIG_H -I. -I..
 -DLOCALEDIR=\"/opt/local/share/locale\" -D_GPHOTO2_INTERNAL_CODE
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -I..
 -I../gphoto2 -I/opt/local/include/gphoto2
 -DLOCALEDIR=\"/opt/local/share/locale\" -D_GPHOTO2_INTERNAL_CODE
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk
 -I/opt/local/include -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -arch arm64
 -Wall -Wmissing-declarations -Wmissing-prototypes -g -MT gphoto2-shell.o
 -MD -MP -MF .deps/gphoto2-shell.Tpo -c -o gphoto2-shell.o `test -f
 'shell.c' || echo './'`shell.c
 :info:build mv -f .deps/gphoto2-version.Tpo .deps/gphoto2-version.Po
 :info:build main.c:1218:9: error: incompatible pointer to integer
 conversion returning 'pthread_t' (aka 'struct _opaque_pthread_t *') from a
 function with result type 'unsigned int' [-Wint-conversion]
 :info:build  1218 |         return (tid);
 :info:build       |                ^~~~~
 :info:build main.c:1225:12: error: incompatible integer to pointer
 conversion initializing 'pthread_t' (aka 'struct _opaque_pthread_t *')
 with an expression of type 'unsigned int' [-Wint-conversion]
 :info:build  1225 |         pthread_t tid = id;
 :info:build       |                   ^     ~~
 :info:build mv -f .deps/gphoto2-spawnve.Tpo .deps/gphoto2-spawnve.Po
 :info:build 2 errors generated.
 :info:build make[2]: *** [gphoto2-main.o] Error 1
 :info:build make[2]: *** Waiting for unfinished jobs....
 }}}

--

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


More information about the macports-tickets mailing list