Opened 15 years ago

Closed 15 years ago

#22741 closed defect (fixed)

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 (2)

octave.log (890.9 KB) - added by earcar@… 15 years ago.
octave build log
octave-3.2.3-configure-nox.patch (687 bytes) - added by earcar@… 15 years ago.

Download all attachments as: .zip

Change History (12)

Changed 15 years ago by earcar@…

Attachment: octave.log added

octave build log

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Cc: stechert@… added
Keywords: octave removed
Owner: changed from macports-tickets@… to alakazam@…

comment:2 Changed 15 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...

comment:3 Changed 15 years ago by alakazam@…

Status: newassigned

Changed 15 years ago by earcar@…

comment:4 Changed 15 years ago by earcar@…

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

comment:5 Changed 15 years ago by alakazam@…

If you can that would be ideal !

comment:6 Changed 15 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 ?

comment:7 Changed 15 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...

comment:8 Changed 15 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.

comment:9 in reply to:  5 Changed 15 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.

comment:10 Changed 15 years ago by alakazam@…

Resolution: fixed
Status: assignedclosed

Fixed in r61159.

Note: See TracTickets for help on using tickets.