[MacPorts] #22741: octave-3.2.3 fails to compile on Snow Leopard
#22741: octave-3.2.3 fails to compile on Snow Leopard ------------------------------+--------------------------------------------- Reporter: earcar@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: octave | Port: octave ------------------------------+--------------------------------------------- Octave fails to compile on my Snow Leopard machine. It gives me this error: {{{ Undefined symbols: "_XOpenDisplay", referenced from: display_info::init(bool) in display.o "_XScreenNumberOfScreen", referenced from: display_info::init(bool) in display.o ld: symbol(s) not found }}} I'm attaching the complete build log just in case. Also my variants.conf contains: {{{ +no_x11 +quartz +bash_completion +no_tkinter +mactk }}} Obviously I don't want to install macports' X11 only for octave :) Thanks! -- Ticket URL: <http://trac.macports.org/ticket/22741> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22741: octave-3.2.3 fails to compile on Snow Leopard ------------------------------+--------------------------------------------- Reporter: earcar@… | Owner: alakazam@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: octave ------------------------------+--------------------------------------------- Changes (by macsforever2000@…): * cc: stechert@… (added) * keywords: octave => * owner: macports-tickets@… => alakazam@… -- Ticket URL: <http://trac.macports.org/ticket/22741#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22741: octave-3.2.3 fails to compile on Snow Leopard ------------------------------+--------------------------------------------- Reporter: earcar@… | Owner: alakazam@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: octave ------------------------------+--------------------------------------------- Comment(by earcar@…): It seems that something in the octave build system is broken: {{{ checking for X... no checking whether ld accepts -framework Carbon... no configure: defining UGLY_DEFS to be -DPACKAGE_NAME=\\\"\\\" -DPACKAGE_TARNAME=\\\"\\\" -DPACKAGE_VERSION=\\\"\\\" -DPACKAGE_STRING=\\\"\\\" -DPACKAGE_BUGREPORT=\\\"\\\" -DOCTAVE_SOURCE=1 -D_GNU_SOURCE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DSEPCHAR=\':\' -DSEPCHAR_STR=\\\":\\\" -D__NO_MATH_INLINES=1 -DCXX_NEW_FRIEND_TEMPLATE_DECL=1 -DCXX_ISO_COMPLIANT_LIBRARY=1 -DHAVE_X_WINDOWS=1 [cut] OPENGL libraries: -lftgl -L/opt/local/lib -lfreetype -lz -Wl,-framework -Wl,OpenGL FLTK backend libs: X11 include flags: X11 libraries: CARBON libraries: LIBS: -lreadline -lncurses -lhdf5 -lz -lm }}} Thus in display.cc it will include X related code without a way to link it! Now investingating for a patch... -- Ticket URL: <http://trac.macports.org/ticket/22741#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22741: octave-3.2.3 fails to compile on Snow Leopard ------------------------------+--------------------------------------------- Reporter: earcar@… | Owner: alakazam@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: octave ------------------------------+--------------------------------------------- Changes (by alakazam@…): * status: new => assigned -- Ticket URL: <http://trac.macports.org/ticket/22741#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22741: octave-3.2.3 fails to compile on Snow Leopard ------------------------------+--------------------------------------------- Reporter: earcar@… | Owner: alakazam@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: octave ------------------------------+--------------------------------------------- Comment(by earcar@…): The attached patch fixes the problem. Do I have to report it upstream? -- Ticket URL: <http://trac.macports.org/ticket/22741#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22741: octave-3.2.3 fails to compile on Snow Leopard ------------------------------+--------------------------------------------- Reporter: earcar@… | Owner: alakazam@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: octave ------------------------------+--------------------------------------------- Comment(by alakazam@…): If you can that would be ideal ! -- Ticket URL: <http://trac.macports.org/ticket/22741#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22741: octave-3.2.3 fails to compile on Snow Leopard ------------------------------+--------------------------------------------- Reporter: earcar@… | Owner: alakazam@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: octave ------------------------------+--------------------------------------------- Comment(by alakazam@…): I'm not sure however if the following change is a typo : {{{ -cat >>confdefs.h <<\_ACEOF +cat >>confdefs.h <<_ACEOF }}} in your patch ? -- Ticket URL: <http://trac.macports.org/ticket/22741#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22741: octave-3.2.3 fails to compile on Snow Leopard ------------------------------+--------------------------------------------- Reporter: earcar@… | Owner: alakazam@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: octave ------------------------------+--------------------------------------------- Comment(by earcar@…): It's not a typo, I thought it were a typo in the configure script :) BTW I think it will not screw things up with it, but I haven't tested it without this little change anyway... -- Ticket URL: <http://trac.macports.org/ticket/22741#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22741: octave-3.2.3 fails to compile on Snow Leopard ------------------------------+--------------------------------------------- Reporter: earcar@… | Owner: alakazam@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: octave ------------------------------+--------------------------------------------- Comment(by alakazam@…): Ok, I'll leave it out then for the time being :) I'm looking into the other open octave tickets in hopes of not having everyone recompile octave 3 times instead of only one. -- Ticket URL: <http://trac.macports.org/ticket/22741#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22741: octave-3.2.3 fails to compile on Snow Leopard ------------------------------+--------------------------------------------- Reporter: earcar@… | Owner: alakazam@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: octave ------------------------------+--------------------------------------------- Comment(by earcar@…): Replying to [comment:5 alakazam@…]:
If you can that would be ideal !
Sent, it will appear on the bug@octave.org ml after moderator approval. -- Ticket URL: <http://trac.macports.org/ticket/22741#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22741: octave-3.2.3 fails to compile on Snow Leopard -------------------------------+-------------------------------------------- Reporter: earcar@… | Owner: alakazam@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: fixed | Keywords: Port: octave | -------------------------------+-------------------------------------------- Changes (by alakazam@…): * status: assigned => closed * resolution: => fixed Comment: Fixed in r61159. -- Ticket URL: <http://trac.macports.org/ticket/22741#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts