[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
Wed Nov 20 21:28:00 UTC 2024


#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:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:  gphoto2
      Port:           |
----------------------+---------------------

Comment (by jaypike):

 Building from the source directory gives the same error:

 MacBook-
 Pro:root:[4:27pm]:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gphoto2/gphoto2/work/gphoto2-2.5.28/gphoto2>
 make
 /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-main.o
 -MD -MP -MF .deps/gphoto2-main.Tpo -c -o gphoto2-main.o `test -f 'main.c'
 || echo './'`main.c
 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]
  1218 |         return (tid);
       |                ^~~~~
 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]
  1225 |         pthread_t tid = id;
       |                   ^     ~~
 2 errors generated.
 make: *** [gphoto2-main.o] Error 1
 MacBook-
 Pro:root:[4:27pm]:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gphoto2/gphoto2/work/gphoto2-2.5.28/gphoto2>

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


More information about the macports-tickets mailing list