Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#61261 closed defect (fixed)

grace @5.1.25: configure: error: M*tif has not been found

Reported by: andresbsa (Andres Sanchez) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: xcode12 catalina bigsur Cc: Quarkyonic, cjones051073 (Chris Jones), p-bro, erikssorensen, fnajm (Farid Najm), valerie-vallet
Port: grace

Description

I am trying to install grace on Catalina, but I get the following error:

--->  Configuring grace
Error: Failed to configure grace, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_grace/grace/work/grace-5.1.25/config.log
Error: Failed to configure grace: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_grace/grace/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port grace failed

I'm a beginner so I don't know what to look for in the .log files. Sorry :(

Attachments (3)

main.log (317.2 KB) - added by andresbsa (Andres Sanchez) 4 years ago.
config.log (127.5 KB) - added by andresbsa (Andres Sanchez) 4 years ago.
configure.patch (476 bytes) - added by bernstei 4 years ago.
configure patch to fix motif functionality testing

Download all attachments as: .zip

Change History (21)

Changed 4 years ago by andresbsa (Andres Sanchez)

Attachment: main.log added

Changed 4 years ago by andresbsa (Andres Sanchez)

Attachment: config.log added

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

Summary: grace: Processing of port grace failed. Failed to configure gracegrace @5.1.25: configure: error: M*tif has not been found

The error in the main.log is:

configure: error: M*tif has not been found

The reason why from the config.log is:

configure:9531: checking for a Motif >= 1002 compatible API
configure:9569: /usr/bin/clang -o conftest  -I/opt/local/include  -pipe -O1 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64  -I/opt/local/include -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk  -L/opt/local/lib -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 conftest.c -lXm -lXpm -lXp -lXmu -lXt -lXext -lX11  -lSM -lICE  >&5
conftest.c:110:9: error: implicit declaration of function 'XmRegisterConverters' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        XmRegisterConverters();
        ^
conftest.c:110:9: note: did you mean 'XtRegisterCaseConverter'?
/opt/local/include/X11/Intrinsic.h:811:13: note: 'XtRegisterCaseConverter' declared here
extern void XtRegisterCaseConverter(
            ^
conftest.c:113:11: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
          exit(1);
          ^
conftest.c:113:11: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
2 errors generated.

Implicit function declarations are now an error as of Xcode 12. We should fix this but until we do you can avoid the problem by downgrading to Xcode 11 and/or the Xcode 11 command line tools.

comment:2 Changed 4 years ago by mf2k (Frank Schima)

Keywords: xcode12 added

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

Keywords: xcode12 removed
Owner: set to ryandesign
Status: newaccepted

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

Keywords: xcode12 added

comment:5 in reply to:  2 Changed 4 years ago by andresbsa (Andres Sanchez)

Replying to ryandesign:

Implicit function declarations are now an error as of Xcode 12. We should fix this but until we do you can avoid the problem by downgrading to Xcode 11 and/or the Xcode 11 command line tools.

I have Xcode version 11.7. Should I try downgrading to a previous version still?

Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

If you have Xcode 11.7 and are experiencing the problem, then you have the Xcode 12 command line tools and downgrading to the Xcode 11.5 command line tools would work around the problem.

comment:7 in reply to:  6 Changed 4 years ago by andresbsa (Andres Sanchez)

Replying to ryandesign:

If you have Xcode 11.7 and are experiencing the problem, then you have the Xcode 12 command line tools and downgrading to the Xcode 11.5 command line tools would work around the problem.

Indeed it worked. Thank you very much for your support.

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

Cc: Quarkyonic cjones051073 added
Keywords: catalina bigsur added

Has duplicate #61552.

comment:9 Changed 4 years ago by p-bro

Cc: p-bro added

comment:10 Changed 4 years ago by bernstei

If anyone else more familiar with the port has time to look at it, I'm pretty sure that it's easy to fix. At least to get past the immediate problem you just need to patch configure (around line 9553) to get rid of the call to XmRegisterConverters (apparently an internal motif function that isn't supposed to be called anyway (https://groups.google.com/g/comp.windows.x/c/26_NXxPPPhY), and to "#include <stdlib.h>". I'll try to attach my patch.

Version 0, edited 4 years ago by bernstei (next)

Changed 4 years ago by bernstei

Attachment: configure.patch added

configure patch to fix motif functionality testing

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

Yes, I was working on it... I need to finish it up.

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

Cc: erikssorensen added

Has duplicate #61793.

comment:13 Changed 4 years ago by bernstei

Hi Ryan - any progress in finishing the patch?

comment:14 Changed 4 years ago by fnajm (Farid Najm)

Cc: fnajm added

comment:15 Changed 4 years ago by valerie-vallet

I have the same error. Is the patch ready ? Thanks for your help

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

Cc: valerie-vallet added

Has duplicate #62357.

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

Resolution: fixed
Status: acceptedclosed

In 8e5162b8e36511d287b5e7ee70470c7dd1242a9e/macports-ports (master):

grace: Fix implicit declaration of functions

Closes: #61261

Fix netcdf variant so that it actually uses netcdf by removing a patch
of unknown purpose that has been in the port since the netcdf variant
was added:

See: #16910

Fix port to ensure that netcdf support is not included unless the netcdf
variant is selected.

Add size to checksums.

comment:18 Changed 4 years ago by valerie-vallet

Thanks for the fix

Note: See TracTickets for help on using tickets.