New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #22741 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

octave-3.2.3 fails to compile on Snow Leopard

Reported by: earcar@… Owned by: alakazam@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: stechert@…
Port: octave

Description

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!

Attachments

octave.log Download (0.9 MB) - added by earcar@… 2 years ago.
octave build log
octave-3.2.3-configure-nox.patch Download (0.7 KB) - added by earcar@… 2 years ago.

Change History

Changed 2 years ago by earcar@…

octave build log

  Changed 2 years ago by macsforever2000@…

  • owner changed from macports-tickets@… to alakazam@…
  • cc stechert@… added
  • keywords octave removed

  Changed 2 years ago 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...

  Changed 2 years ago by alakazam@…

  • status changed from new to assigned

Changed 2 years ago by earcar@…

  Changed 2 years ago by earcar@…

The attached patch fixes the problem. Do I have to report it upstream?

follow-up: ↓ 9   Changed 2 years ago by alakazam@…

If you can that would be ideal !

  Changed 2 years ago 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 ?

  Changed 2 years ago 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...

  Changed 2 years ago 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.

in reply to: ↑ 5   Changed 2 years ago by earcar@…

Replying to alakazam@…:

If you can that would be ideal !

Sent, it will appear on the bug@… ml after moderator approval.

  Changed 2 years ago by alakazam@…

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r61159.

Note: See TracTickets for help on using tickets.