Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#56621 closed defect (worksforme)

libftdi1@1.4_3: error: redefinition of 'charp2str' 'str2charp_size' 'ftdi_eeprom'

Reported by: DanielO (Daniel O'Connor) Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version: 2.5.2
Keywords: Cc:
Port: libftdi1

Description

:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libftdi/libftdi1/work/build'
:info:build [ 34%] Building C object python/CMakeFiles/_ftdi1.dir/ftdi1PYTHON_wrap.c.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libftdi/libftdi1/work/build/python && /usr/bin/clang -D_ftdi1_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libftdi/libftdi1/work/libftdi1-1.4/src -I/opt/local/include/libusb-1.0 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Headers  -Os -DNDEBUG -arch x86_64 -mmacosx-version-min=10.13 -fPIC   -Wall -o CMakeFiles/_ftdi1.dir/ftdi1PYTHON_wrap.c.o   -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libftdi/libftdi1/work/build/python/ftdi1PYTHON_wrap.c
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libftdi/libftdi1/work/build/python/ftdi1PYTHON_wrap.c:3521:18: error: redefinition of 'charp2str'
:info:build inline PyObject* charp2str(const char *v_, long len)
:info:build                  ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libftdi/libftdi1/work/build/python/ftdi1PYTHON_wrap.c:3038:18: note: previous definition is here
:info:build inline PyObject* charp2str(const char *v_, long len)
:info:build                  ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libftdi/libftdi1/work/build/python/ftdi1PYTHON_wrap.c:3530:15: error: redefinition of 'str2charp_size'
:info:build inline char * str2charp_size(PyObject* pyObj, int * size)
:info:build               ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libftdi/libftdi1/work/build/python/ftdi1PYTHON_wrap.c:3047:15: note: previous definition is here
:info:build inline char * str2charp_size(PyObject* pyObj, int * size)
:info:build               ^
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libftdi/libftdi1/work/build/python/ftdi1PYTHON_wrap.c:3545:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libftdi/libftdi1/work/libftdi1-1.4/src/ftdi_i.h:30:8: error: redefinition of 'ftdi_eeprom'
:info:build struct ftdi_eeprom
:info:build        ^

Attachments (1)

main.log (120.4 KB) - added by DanielO (Daniel O'Connor) 6 years ago.

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by DanielO (Daniel O'Connor)

Attachment: main.log added

comment:1 Changed 6 years ago by jmroot (Joshua Root)

Owner: changed from snc@… to nerdling

comment:2 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: libftdi1@1.4_3: doesn't build (swig generated file)libftdi1@1.4_3: error: redefinition of 'charp2str' 'str2charp_size' 'ftdi_eeprom'

comment:3 Changed 6 years ago by nerdling (Jeremy Lavergne)

Resolution: worksforme
Status: assignedclosed

Unable to replicate.

Both default and universal variants build successfully.

Are you able to replicate this error when invoking macports' trace mode (port -t)?

comment:4 Changed 6 years ago by DanielO (Daniel O'Connor)

I tried but could not replicate it today (with libftdi0).

Note: See TracTickets for help on using tickets.