On 2014/12/25 21:28, Adam Wolk wrote: > 2. gcc warnings after compilation > Linking CXX executable otter-browser > /usr/local/lib/qt5/libQt5Script.so.0.0: warning: random() may return > deterministic values, is that what you want? > /usr/local/lib/qt5/libQt5WebKit.so.0.0: warning: strcpy() is almost > always misused, please use strlcpy() > /usr/local/lib/qt5/libQt5Core.so.0.0: warning: rand() may return > deterministic values, is that what you want? > /usr/local/lib/qt5/libQt5Script.so.0.0: warning: sprintf() is often > misused, please use snprintf() > /usr/X11R6/lib/libX11.so.16.0: warning: strcat() is almost always > misused, please use strlcat() > /usr/local/lib/libglib-2.0.so.4200.0: warning: stpcpy() is dangerous; do > not use it > /usr/local/lib/libglib-2.0.so.4200.0: warning: vsprintf() is often > misused, please use vsnprintf()
These are api warnings from the linker, unfortunately fairly common to trigger them when porting software, they're mostly helpful for people using OpenBSD as a dev platform (and as a bit of a warning to porters that some things might be worse than usual ;) > 3. Crash on first run > > On first run I see the browser window rendered and a second later I hit > the following crash > > $ ./otter-browser > ./otter-browser:/usr/local/lib/libestdc++.so.16.0: > /usr/lib/libstdc++.so.57.0 : WARNING: > symbol(_ZN11__gnu_debug17_S_debug_messagesE) size mismatch, relink your > program Some ports are compiled with g++ 4.8 rather than the default 4.2.1 from the base os (last GPLv2 version), so mixing c++ libraries. It's not ideal but in practice hasn't caused problems. As far as Otter goes I think building with 4.8 would be a good idea, if you're doing this within the ports framework, something like the below in the Makefile will set it up: MODULES += gcc4 MODGCC4_ARCHS = * MODGCC4_LANGS = c++ > Warning: QGtkStyle could not resolve GTK. Make sure you have installed > the proper libraries. > (/usr/obj/ports/qt-everywhere-opensource-src-5.3.2/qt-everywhere-opensource-src-5.3.2/qtbase/src/widgets/styles/qgtkstyle_p.cpp:583, > virtual void QGtkStylePrivate::initGtkWidgets() const) > otter-browser(20064) in free(): error: bogus pointer (double free?) > 0xdfdfdfdf > Abort trap (core dumped) Most likely a use-after-free; we have some malloc hardening on by default. See malloc.conf(5) about 0xdf. > 4. Crash on consecutive runs Seems like it maybe related to the above.