X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_40,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Fri, 26 Mar 2010 09:02:04 -0400 Message-ID: Subject: trying to run 1.7 question on gtk_init or function ptr's From: mike marchywka To: cygwin Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com In the last episode of this saga, I was trying to build QtWebkit without using the cygwin package and using 1.5. Having been illuminated about how stupid this was, I installed 1.7 and 1.7 and 1.5 do seem to coexist. I opened a 1.7 windoh and started to rebuild the project. Apparently it had some problems with the 1.5 links, I deleted those and that was ok- should links be compatible? The "make confclean" option dies part way through and apparently the mixed binaries don't work too well ( and the fact I changed configure options may not have helped much either). rm `find -name "*.o"` seems to have fixed that ( probably a quirk of the project unless there is some thing in clean script that hit a cygwin problem, maybe old links I dunno). It hasn't run into any char issues but it hit what appears to be an issue with a function pointer. ( the point of the above story is that both I and the "project" may be a bit confused at this point so take this FWIW). This error, styles/qgtkstyle_p.cpp: In member function `virtual void QGtkStylePrivate::initG tkWidgets() const': styles/qgtkstyle_p.cpp:506: error: `gtk_init_abi_check' is not a member of `QGtk StylePrivate' make[1]: *** [.obj/release-shared/qgtkstyle_p.o] Error 1 make: *** [sub-gui-make_default-ordered] Error 2 points to this line, ( note that the "abi_check" is not here), ./src/gui/styles/qgtkstyle_p.cpp:506: QGtkStylePrivate::gtk_init (NULL, NULL); and it goes away ( AFAIK right now), if I change the line to this, ( retyped, may not be exact) (*QGtkStylePrivate::gtk_init) (NULL, NULL); anyone know offhand what this issue may be or should I just go get the cygwin port? I can't find this gtk_init_abi_check anywhere in the project as either source or remaining temp file. Where is the compiler getting the "gtk_init_abi_check" name? It is acting as if it thought it found a compile time constant and just tossed it in there. The relevant lines include, ./src/gui/styles/qgtkstyle_p.cpp:506: QGtkStylePrivate::gtk_init (NULL, N ULL); ./src/gui/styles/qgtkstyle_p.h:82:typedef void (*Ptr_gtk_init)(int *, char ***); As near as I could tell, this pointer variable is getting set ( would get set if it ran LOL) from something called libgtk.resolve() $ grep -n "Ptr_gtk_init" `cat fff| grep -v " "` ./src/gui/styles/qgtkstyle_p.cpp:85:Ptr_gtk_init QGtkStylePrivate::gtk_init = 0; ./src/gui/styles/qgtkstyle_p.cpp:305: gtk_init = (Ptr_gtk_init)libgtk.resolve ("gtk_init"); ./src/gui/styles/qgtkstyle_p.h:82:typedef void (*Ptr_gtk_init)(int *, char ***); ./src/gui/styles/qgtkstyle_p.h:298: static Ptr_gtk_init gtk_init; A represenative compiler invoke looks like this, g++ -c -pipe -g -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -O2 -Wall -W -D_REENTRANT -I/usr/include/freetype2 -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -I../../mkspecs/cygwin-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -I../3rdparty/xorg -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared -o .obj/release-shared/moc_qgtkstyle_p.o .moc/release-shared/moc_qgtkstyle_p.cpp Eventually the build ran into something that looks like a pthread problem but I was curious about this issue as it looks like sometihng odd with function pointer. Thanks. -- marchywka AT gmail DOT com note new address 2009-12-16: Mike Marchywka 1975 Village Round Marietta GA 30064 415-264-8477 (w)<- use this 404-788-1216 (C)<- leave message 989-348-4796 (P)<- emergency only marchywka AT hotmail DOT com Note: If I am asking for free stuff, I normally use for hobby/non-profit information but may use in investment forums, public and private. Please indicate any concerns if applicable. Note: hotmail is censoring incoming mail using random criteria beyond my control and often hangs my browser but all my subscriptions are here..., try also marchywka AT yahoo DOT com -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple