Opened 14 years ago

Last modified 14 years ago

#24751 new request

gspiceui-0.9.99 i386 SL wxWidgets error

Reported by: anddam (Andrea D'Amore) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: gspiceui

Description

I'm trying to port gspiceui to complete the gEDA suite, it uses wxWidgets but I'm getting

/usr/bin/gcc-4.2 -c -O -pipe -I/opt/local/lib/wx/include/mac-unicode-release-2.8 -I/opt/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__  -arch i386 -I/usr/include -I/usr/X11R6/include -I. utility/iStrCmp.c -o obj/iStrCmp.o
In file included from /opt/local/include/wx-2.8/wx/string.h:55,
                 from /opt/local/include/wx-2.8/wx/memory.h:16,
                 from /opt/local/include/wx-2.8/wx/object.h:20,
                 from /opt/local/include/wx-2.8/wx/wx.h:16,
                 from ./utility/iStrCmp.h:29,
                 from utility/iStrCmp.c:19:
/opt/local/include/wx-2.8/wx/buffer.h:127: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wxCharBuffer'

and then a lot of error lines, full output is attached.

I'm attaching the actual Portfile too, from what I can see the problem is that iStrCmp.c, a C source file, is using wx/wx.h, that is C++ and this make the build fails.

I'm attaching the actual portfile and patches I've used, patcj-iStrCmp.diff isn't actually used. I placed it into "cad" category.

Any hint appreciated.

Attachments (3)

gspice.cpio (4.5 KB) - added by anddam (Andrea D'Amore) 14 years ago.
build error.txt (181.0 KB) - added by anddam (Andrea D'Amore) 14 years ago.
gspiceui.tar (4.5 KB) - added by anddam (Andrea D'Amore) 14 years ago.

Download all attachments as: .zip

Change History (6)

Changed 14 years ago by anddam (Andrea D'Amore)

Attachment: gspice.cpio added

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

The developers of gspiceui are probable the best ones to contact for assistance in compiling their software.

comment:2 Changed 14 years ago by anddam (Andrea D'Amore)

I already did and got no reply until now.

comment:3 Changed 14 years ago by anddam (Andrea D'Amore)

The author acknowledged the errors and will fix them mainstream, meanwhile I patched Makefiles and changed name of guilty iStrCmp.[ch] files by hand.

Now when building I'm getting lot of undef symbols.

I'm attaching updated port archive and full debug output for build fase, here's an excerpt:

/usr/bin/gcc-4.2 -pipe -o ../bin/gspiceui obj/*.o -L/opt/local/lib   -L/opt/local/lib -arch i386 -L/opt/local/lib -framework IOKit -framework Carbon -framework Cocoa -framework System -framework QuickTime -framework OpenGL -framework AGL  -lwx_macu-2.8  -R/opt/local/lib -L/opt/local/lib -lpangox-1.0 -lX11 -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv  
Undefined symbols:
  "std::cerr", referenced from:
      __ZSt4cerr$non_lazy_ptr in SpinCtrl.o
     (maybe you meant: __ZSt4cerr$non_lazy_ptr)
  "std::cout", referenced from:
      __ZSt4cout$non_lazy_ptr in CmdBase.o
      __ZSt4cout$non_lazy_ptr in CmdGnuCapAC.o

I'm attaching new archive containing the port directory and full build debug output.

Changed 14 years ago by anddam (Andrea D'Amore)

Attachment: build error.txt added

Changed 14 years ago by anddam (Andrea D'Amore)

Attachment: gspiceui.tar added
Note: See TracTickets for help on using tickets.