Opened 9 years ago

Closed 9 years ago

#22295 closed defect (fixed)

wxMaxima-0.8.2 build failure with wxWidgets-2.9.0

Reported by: KubaO (Kuba Ober) Owned by: usami-k@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: mf2k (Frank Schima)
Port: wxMaxima

Description

Build fails in src/MathCtrl.cpp. This should be fixed upstream, for now the attached patches will do.

Attachments (3)

Portfile-wxMaxima.diff (708 bytes) - added by KubaO (Kuba Ober) 9 years ago.
patch-src_MathCtrl.cpp.diff (774 bytes) - added by KubaO (Kuba Ober) 9 years ago.
fixes building with newest wxWidgets-2.9.0
patch-src_MathCtrl.cpp.2.diff (862 bytes) - added by usami-k@… 9 years ago.
fixed patch : building with wxWidgets-2.8 and wxWidgets-2.9

Download all attachments as: .zip

Change History (10)

Changed 9 years ago by KubaO (Kuba Ober)

Attachment: Portfile-wxMaxima.diff added

Changed 9 years ago by KubaO (Kuba Ober)

Attachment: patch-src_MathCtrl.cpp.diff added

fixes building with newest wxWidgets-2.9.0

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

Owner: changed from macports-tickets@… to usami-k@…

Changed 9 years ago by usami-k@…

fixed patch : building with wxWidgets-2.8 and wxWidgets-2.9

comment:2 in reply to:  description ; Changed 9 years ago by usami-k@…

Thank you for your patch. Using attached patch, build failed with wxWidgets-2.8. Therefore, I fixed the patch.

comment:3 in reply to:  2 ; Changed 9 years ago by usami-k@…

Sorry, I don't have commitment right. Please commit this patch, anyone.

comment:4 in reply to:  3 ; Changed 9 years ago by mf2k (Frank Schima)

Replying to usami-k@…:

Sorry, I don't have commitment right. Please commit this patch, anyone.

I tried your patch but i see the following configure error:

:msg:patch --->  Configuring wxMaxima
:debug:patch Using compiler 'Mac OS X gcc 4.2'
:debug:configure configure phase started at Sat Jan 23 13:18:03 MST 2010
:debug:configure Executing org.macports.configure (wxMaxima)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_mports_trunk_dports_math_wxMaxima/work/.CC_PRINT_OPTIONS' F90FLAGS='-O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' OBJC='/usr/bin/gcc-4.2' FCFLAGS='-O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch x86_64' FFLAGS='-O2 -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.2'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_mports_trunk_dports_math_wxMaxima/work/wxMaxima-0.8.2" && ./configure --prefix=/opt/local --enable-dnd --enable-printing --enable-unicode-glyphs'
:info:configure checking build system type... i386-apple-darwin10.2.0
:info:configure checking host system type... i386-apple-darwin10.2.0
:info:configure checking target system type... i386-apple-darwin10.2.0
:info:configure checking for C++ compiler default output file name... a.out
:info:configure checking whether the C++ compiler works... yes
:info:configure checking whether we are cross compiling... no
:info:configure checking for suffix of executables... 
:info:configure checking for suffix of object files... o
:info:configure checking whether we are using the GNU C++ compiler... yes
:info:configure checking whether /usr/bin/g++-4.2 accepts -g... yes
:info:configure checking for gcc... /usr/bin/gcc-4.2
:info:configure checking whether we are using the GNU C compiler... yes
:info:configure checking whether /usr/bin/gcc-4.2 accepts -g... yes
:info:configure checking for /usr/bin/gcc-4.2 option to accept ANSI C... none needed
:info:configure checking for a BSD-compatible install... /usr/bin/install -c
:info:configure checking whether make sets $(MAKE)... yes
:info:configure checking whether build environment is sane... yes
:info:configure checking for gawk... gawk
:info:configure checking for style of include used by make... GNU
:info:configure checking dependency style of /usr/bin/gcc-4.2... gcc3
:info:configure checking dependency style of /usr/bin/g++-4.2... gcc3
:info:configure checking for wx-config... /opt/local/bin/wx-config
:info:configure checking for wxWindows version >= 2.8.4... 
:info:configure   Warning: No config found to match: /opt/local/bin/wx-config --static --libs
:info:configure            in /opt/local/lib/wx/config
:info:configure   If you require this configuration, please install the desired
:info:configure   library build.  If this is part of an automated configuration
:info:configure   test and no other errors occur, you may safely ignore it.
:info:configure   You may use wx-config --list to see all configs available in
:info:configure   the default prefix.
:info:configure 
:info:configure yes (version 2.8.9)
:info:configure checking if we can compile a wxWidgets program... 
:info:configure 
:info:configure *** The test program failed to compile or link. See the file config.log for the
:info:configure *** exact error that occured. This usually means that wxWidgets library was
:info:configure *** incorrectly installed.
:info:configure 
:info:configure configure: error: Failed to compile a test program
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_mports_trunk_dports_math_wxMaxima/work/wxMaxima-0.8.2" && ./configure --prefix=/opt/local --enable-dnd --enable-printing --enable-unicode-glyphs " returned error 1
:error:configure Target org.macports.configure returned: configure failure: shell command failed
:debug:configure Backtrace: configure failure: shell command failed
    while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for wxMaxima): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:msg:configure Log for wxMaxima is at: /opt/local/var/macports/logs/wxMaxima/main.log

comment:5 Changed 9 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

comment:6 in reply to:  4 Changed 9 years ago by usami-k@…

Replying to macsforever2000@…:

I tried your patch but i see the following configure error:

It works fine for me... Currently, I use Mac OS X 10.5 and wxWidgets-2.8.9_1.

comment:7 Changed 9 years ago by usami-k@…

Resolution: fixed
Status: newclosed

I committed wxMaxima 0.8.4 (r66746). This version support wxWidgets 2.8 and 2.9.

Please confirm it.

Note: See TracTickets for help on using tickets.