Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#56813 closed defect (fixed)

ntfs-3g @2017.3.23: fails to build on macOS High Sierra 10.13.6 (17G65)

Reported by: maehne (Torsten Maehne) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: ntfs-3g

Description

After working around issue #54939 to install osxfuse, ntfs-3g fails to build as a dependency for the testdisk port:

$ sudo port -v install testdisk
--->  Computing dependencies for testdisk..
The following dependencies will be installed:  ntfs-3g
Continue? [Y/n]: y
[...]
libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -I../include/ntfs-3g -pipe -Os -arch x86_64 -Wall -MT libntfs_3g_la-compat.lo -MD -MP -MF .deps/libntfs_3g_la-compat.Tpo -c compat.c -o libntfs_3g_la-compat.o >/dev/null 2>&1
In file included from attrlist.c:43In file included from collate.c:
:39/opt/local/include/debug.h:
:1:/opt/local/include/debug.h:1:1: error: expected identifier or '('
!
^
1: error: expected identifier or '('
!
^
In file included from bootsect.c:43:
/opt/local/include/debug.h:1:1: error: expected identifier or '('
!
^
In file included from bitmap.c:44:
/opt/local/include/debug.h:1:1: error: expected identifier or '('
!
^
1 error generated.
In file included from attrib.c:53:
/opt/local/include/debug.h:1:1: error: expected identifier or '('
!
^
collate.c:230:16: warning: taking address of packed member 'file_name' of class or structure 'FILE_NAME_ATTR' may result in an unaligned pointer value [-Waddress-of-packed-member]
                        (ntfschar*)&file_name_attr1->file_name,
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
collate.c:232:16: warning: taking address of packed member 'file_name' of class or structure 'FILE_NAME_ATTR' may result in an unaligned pointer value [-Waddress-of-packed-member]
                        (ntfschar*)&file_name_attr2->file_name,
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
1 error generated.
2 warnings and 1 error generated.
make[2]: *** [libntfs_3g_la-bootsect.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [libntfs_3g_la-collate.lo] Error 1
make[2]: *** [libntfs_3g_la-bitmap.lo] Error 1
make[2]: *** [libntfs_3g_la-attrlist.lo] Error 1
1 error generated.
mv -f .deps/libntfs_3g_la-compat.Tpo .deps/libntfs_3g_la-compat.Plo
make[2]: *** [libntfs_3g_la-attrib.lo] Error 1
libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -I../include/ntfs-3g -pipe -Os -arch x86_64 -Wall -MT libntfs_3g_la-cache.lo -MD -MP -MF .deps/libntfs_3g_la-cache.Tpo -c cache.c -o libntfs_3g_la-cache.o >/dev/null 2>&1
mv -f .deps/libntfs_3g_la-cache.Tpo .deps/libntfs_3g_la-cache.Plo
libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -I../include/ntfs-3g -pipe -Os -arch x86_64 -Wall -MT libntfs_3g_la-acls.lo -MD -MP -MF .deps/libntfs_3g_la-acls.Tpo -c acls.c -o libntfs_3g_la-acls.o >/dev/null 2>&1
mv -f .deps/libntfs_3g_la-acls.Tpo .deps/libntfs_3g_la-acls.Plo
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_ntfs-3g/ntfs-3g/work/ntfs-3g_ntfsprogs-2017.3.23/libntfs-3g'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_ntfs-3g/ntfs-3g/work/ntfs-3g_ntfsprogs-2017.3.23'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_ntfs-3g/ntfs-3g/work/ntfs-3g_ntfsprogs-2017.3.23'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_ntfs-3g/ntfs-3g/work/ntfs-3g_ntfsprogs-2017.3.23" && /usr/bin/make -j8 -w all
Exit code: 2
Error: Failed to build ntfs-3g: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_ntfs-3g/ntfs-3g/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port testdisk failed

The full build.log is attached to this ticket.

Attachments (2)

main.log (40.8 KB) - added by maehne (Torsten Maehne) 6 years ago.
ntfs-3g build.log file
libntfs-3g_Makefile.in.patch (768 bytes) - added by jmroot (Joshua Root) 6 years ago.

Download all attachments as: .zip

Change History (11)

Changed 6 years ago by maehne (Torsten Maehne)

Attachment: main.log added

ntfs-3g build.log file

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Port: testdisk removed

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

Which port provides /opt/local/include/debug.h?

Changed 6 years ago by jmroot (Joshua Root)

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

Ping. Could you please answer my question from comment:2? To find out, you can run:

port provides /opt/local/include/debug.h

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

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 39b2a470c279e4554de01194fb220b8a1ca5bdc0/macports-ports (master):

ntfs-3g: fix some -I flag ordering

Closes: #56813

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

This may only be a half fix, but no more can be done without information from the reporter.

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

Perhaps arpack. See #56718.

comment:7 Changed 6 years ago by maehne (Torsten Maehne)

Sorry for reacting so late to your additional inquiries. I was on vacation at that time and then the e-mail notification got lost in my e-mail back log. I can confirm that the implemented fix works and ntfs-3g now builds without any problems on my machine. Thanks!

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

So debug.h did come from arpack?

comment:9 Changed 6 years ago by maehne (Torsten Maehne)

Probably, debug.h doesn't exist anymore while arpack is installed:

$ port provides /opt/local/include/debug.h
/opt/local/include/debug.h does not exist.
$ port installed arpack
The following ports are currently installed:
  arpack @3.6.2_0+accelerate+gfortran (active)
Note: See TracTickets for help on using tickets.