#68335 closed defect (fixed)

libGLU @9.0.1_0+universal: undefined symbols

Reported by: JohannaXiao Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: libGLU

Description

Hello, I tried to install molden, but it stuck at the libGLU. and the error message showing below:

--->  Fetching archive for libGLU
--->  Attempting to fetch libGLU-9.0.1_0+universal.darwin_23.arm64-x86_64.tbz2 from https://packages.macports.org/libGLU
--->  Attempting to fetch libGLU-9.0.1_0+universal.darwin_23.arm64-x86_64.tbz2 from https://fra.de.packages.macports.org/libGLU
--->  Attempting to fetch libGLU-9.0.1_0+universal.darwin_23.arm64-x86_64.tbz2 from https://mse.uk.packages.macports.org/libGLU
--->  Fetching distfiles for libGLU
--->  Verifying checksums for libGLU
--->  Extracting libGLU
--->  Configuring libGLU
--->  Building libGLU                                    
Error: Failed to build libGLU: command execution failed  
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_libGLU/libGLU/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port molden failed

MacOS:14.0 (23A344)Sonoma The detailed log, I attached it below.

Attachments (1)

main.log (301.0 KB) - added by JohannaXiao 12 months ago.

Download all attachments as: .zip

Change History (4)

Changed 12 months ago by JohannaXiao

Attachment: main.log added

comment:1 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sonoma added
Summary: libGLU@9.0.1_0+universal :Failed to build libGLUlibGLU @9.0.1_0+universal: undefined symbols

Has duplicate #68334.

The log shows the problem is:

:info:build ld: warning: ignoring file '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_libGLU/libGLU/work/glu-9.0.1/.libs/libGLU.1.dylib-master.o': found architecture 'arm64', required architecture 'x86_64'
:info:build ld: Undefined symbols:
:info:build   _gluBeginCurve, referenced from:
:info:build       <initial-undefines>
:info:build   _gluBeginPolygon, referenced from:
:info:build       <initial-undefines>

So: you're trying to build universal on an arm64 Mac, but it has only built libGLU.1.dylib-master.o for arm64, not universally.

This looks like the same libtool bug we observed elsewhere when using Xcode 15, which was fixed in the libtool port in [85058b4d9bc2b7ab451f7ce622a2786078462ee1/macports-ports] and which now needs to be propagated manually to the zillions of ports like libGLU that include a bundled libtool.

comment:2 Changed 12 months ago by jmroot (Joshua Root)

We can probably just use the second hunk of that patch in ports, which will always disable the workaround for lack of -single_module support, which is fine because we only support 10.4 and later. The patch in libtool is more thorough for the purpose of being upstreamable.

comment:3 Changed 12 months ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 9cf011104cf67bf98a3c077b26593c698c78309b/macports-ports (master):

libGLU: fix build error with Xcode 15

Closes: #68335

Note: See TracTickets for help on using tickets.