Opened 7 years ago

Closed 7 years ago

#53358 closed defect (fixed)

webp @0.5.2: fails to build, undefined referenced symbols from freeglut

Reported by: chtonic Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.5
Keywords: Cc:
Port: webp

Description (last modified by ryandesign (Ryan Carsten Schmidt))

:info:build Undefined symbols for architecture x86_64:
:info:build   "_glutLeaveMainLoop", referenced from:
:info:build       _HandleKey in vwebp-vwebp.o
:info:build   "_glutSetOption", referenced from:
:info:build       _main in vwebp-vwebp.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)

Attachments (3)

main.log (8.7 KB) - added by chtonic 7 years ago.
webp build log
main.2.log (36.1 KB) - added by chtonic 7 years ago.
Build log, now from 'port clean webp'
main.3.log (36.3 KB) - added by chtonic 7 years ago.
Third log, obtained after running selfupdate, clean webp and port upgrade webp

Download all attachments as: .zip

Change History (13)

comment:2 Changed 7 years ago by chtonic

  • Uninstalled and reinstalled freeglut to no avail

comment:3 Changed 7 years ago by mf2k (Frank Schima)

Owner: set to ryandesign
Status: newassigned

In the future, please Cc the port maintainers (port info --maintainers webp), if any.

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

Description: modified (diff)

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

As always, please attach the main.log file.

Changed 7 years ago by chtonic

Attachment: main.log added

webp build log

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

That wasn't a clean build attempt. Please clean and try again.

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

Changed 7 years ago by chtonic

Attachment: main.2.log added

Build log, now from 'port clean webp'

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

I committed [0fb0ecb1b8219de69274da728378f31aa6bd24d8/macports-ports] to add a dependency on MacPorts freeglut; before it might have used the system's OpenGL or maybe even something from /usr/local. Please run sudo port selfupdate and try again. If it fails again, please attach the new main.log, because in [1bbfa18aba19dfeb69dbe89e896c342452b7a6aa/macports-ports] I disabled silent rules which should make the log more detailed.

Changed 7 years ago by chtonic

Attachment: main.3.log added

Third log, obtained after running selfupdate, clean webp and port upgrade webp

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

Looks like your third attempt didn't pick up my changes yet. It can take a few hours for the changes to become available via selfupdate. When sudo port selfupdate && port info webp shows version 0.5.2 revision 1, try again.

comment:9 Changed 7 years ago by chtonic

Finally success! Are these packages somehow recursively dependent? It starts by updating webp, then building freeglut, then again building webp.

comment:10 Changed 7 years ago by chtonic

As far as I am concerned this can be closed.

comment:11 in reply to:  9 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Summary: webp fails to build, undefined referenced symbols from freeglutwebp @0.5.2: fails to build, undefined referenced symbols from freeglut

Replying to chtonic:

Finally success! Are these packages somehow recursively dependent? It starts by updating webp, then building freeglut, then again building webp.

In the above commit, I changed webp to depend on freeglut. If you try to install or upgrade webp, freeglut will be installed or upgraded first, if it is not already installed and up to date. If you believe something else happened on your system, you could show us your terminal transcript.

Note: See TracTickets for help on using tickets.