Simple service crash

Vitaly V. Ch vitaly.v.ch at gmail.com
Mon Nov 5 08:44:56 PST 2007


I'm surprised.

but ok, there are attached another sources without *any* libraries:

bash-3.1# tar xzf sim300.dbus-2.tgz && cd sim300.dbus-2.tmp &&
./sim300_dbus_init.make && ./sim300_dbus_init
g++ -c -pipe -O2 -Wall -W -D_REENTRANT  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt-4.2.2/mkspecs/linux-g++
-I. -I/usr/lib/qt-4.2.2/include/QtCore -I/usr/lib/qt-4.2.2/include/QtCore
-I/usr/lib/qt-4.2.2/include -I/usr/lib/qt-4.2.2/include/QtDBus -I. -I. -I.
-o sim300_dbus.o sim300_dbus.cpp
sim300_dbus.cpp:60: warning: unused parameter 'rssi'
sim300_dbus.cpp:60: warning: unused parameter 'ber'
sim300_dbus.cpp:69: warning: unused parameter 'money'
sim300_dbus.cpp:78: warning: unused parameter 'money'
sim300_dbus.cpp:87: warning: unused parameter 'parent'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt-4.2.2/mkspecs/linux-g++
-I. -I/usr/lib/qt-4.2.2/include/QtCore -I/usr/lib/qt-4.2.2/include/QtCore
-I/usr/lib/qt-4.2.2/include -I/usr/lib/qt-4.2.2/include/QtDBus -I. -I. -I.
-o sim300_dbus_adaptor.o sim300_dbus_adaptor.cpp
sim300_dbus_adaptor.cpp:36: warning: unused parameter 'rssi'
sim300_dbus_adaptor.cpp:36: warning: unused parameter 'ber'
sim300_dbus_adaptor.cpp:42: warning: unused parameter 'money'
sim300_dbus_adaptor.cpp:48: warning: unused parameter 'money'
sim300_dbus_adaptor.cpp: In member function 'QString
Sim300Adaptor::get_money_cusd(QString&)':
sim300_dbus_adaptor.cpp:52: warning: control reaches end of non-void
function
sim300_dbus_adaptor.cpp: In member function 'QString
Sim300Adaptor::get_money_atd(QString&)':
sim300_dbus_adaptor.cpp:46: warning: control reaches end of non-void
function
sim300_dbus_adaptor.cpp: In member function 'QString
Sim300Adaptor::get_csq(uchar&, uchar&)':
sim300_dbus_adaptor.cpp:40: warning: control reaches end of non-void
function
g++ -c -pipe -O2 -Wall -W -D_REENTRANT  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt-4.2.2/mkspecs/linux-g++
-I. -I/usr/lib/qt-4.2.2/include/QtCore -I/usr/lib/qt-4.2.2/include/QtCore
-I/usr/lib/qt-4.2.2/include -I/usr/lib/qt-4.2.2/include/QtDBus -I. -I. -I.
-o sim300_dbus_interface.o sim300_dbus_interface.cpp
/usr/lib/qt-4.2.2/bin/moc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG
-DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt-4.2.2/mkspecs/linux-g++ -I.
-I/usr/lib/qt-4.2.2/include/QtCore -I/usr/lib/qt-4.2.2/include/QtCore
-I/usr/lib/qt-4.2.2/include -I/usr/lib/qt-4.2.2/include/QtDBus -I. -I. -I.
sim300_dbus.h -o moc_sim300_dbus.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt-4.2.2/mkspecs/linux-g++
-I. -I/usr/lib/qt-4.2.2/include/QtCore -I/usr/lib/qt-4.2.2/include/QtCore
-I/usr/lib/qt-4.2.2/include -I/usr/lib/qt-4.2.2/include/QtDBus -I. -I. -I.
-o moc_sim300_dbus.o moc_sim300_dbus.cpp
/usr/lib/qt-4.2.2/bin/moc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG
-DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt-4.2.2/mkspecs/linux-g++ -I.
-I/usr/lib/qt-4.2.2/include/QtCore -I/usr/lib/qt-4.2.2/include/QtCore
-I/usr/lib/qt-4.2.2/include -I/usr/lib/qt-4.2.2/include/QtDBus -I. -I. -I.
sim300_dbus_adaptor.h -o moc_sim300_dbus_adaptor.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt-4.2.2/mkspecs/linux-g++
-I. -I/usr/lib/qt-4.2.2/include/QtCore -I/usr/lib/qt-4.2.2/include/QtCore
-I/usr/lib/qt-4.2.2/include -I/usr/lib/qt-4.2.2/include/QtDBus -I. -I. -I.
-o moc_sim300_dbus_adaptor.o moc_sim300_dbus_adaptor.cpp
/usr/lib/qt-4.2.2/bin/moc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG
-DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt-4.2.2/mkspecs/linux-g++ -I.
-I/usr/lib/qt-4.2.2/include/QtCore -I/usr/lib/qt-4.2.2/include/QtCore
-I/usr/lib/qt-4.2.2/include -I/usr/lib/qt-4.2.2/include/QtDBus -I. -I. -I.
sim300_dbus_interface.h -o moc_sim300_dbus_interface.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt-4.2.2/mkspecs/linux-g++
-I. -I/usr/lib/qt-4.2.2/include/QtCore -I/usr/lib/qt-4.2.2/include/QtCore
-I/usr/lib/qt-4.2.2/include -I/usr/lib/qt-4.2.2/include/QtDBus -I. -I. -I.
-o moc_sim300_dbus_interface.o moc_sim300_dbus_interface.cpp
g++ -Wl,-rpath,/usr/lib/qt-4.2.2/lib -o sim300_dbus_init sim300_dbus.o
sim300_dbus_adaptor.o sim300_dbus_interface.o moc_sim300_dbus.o
moc_sim300_dbus_adaptor.o moc_sim300_dbus_interface.o
-L/usr/lib/qt-4.2.2/lib
-lQtDBus -L/usr/lib/qt/lib -ldbus-1 -lQtXml -lQtCore -lz -lm -lglib-2.0 -ldl
-lpthread
Segmentation fault
bash-3.1#

\\wbr Vitaly

On 11/5/07, Thiago Macieira <thiago at kde.org> wrote:
>
> Em Monday 05 November 2007 17:08:39 Vitaly V. Ch escreveu:
> > Yes. source which striped from any dependencies is attached.
> >
> > I build service binary in next case:
> >
> > # ./sim300_dbus_init.make && sim300_dbus_test.make
> >
> > where first script build static library and second - test application
> >
> > \\wbr Vitaly
>
> I repeat my request: can you provide us with a small *compileable*
> example?
>
> /usr/bin/ld: cannot find -lsim300_dbus_init
>
> Do not include files that are unrelated to the build.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>   PGP/GPG: 0x6EF45358; fingerprint:
>   E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20071105/437fc9af/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sim300.dbus-2.tgz
Type: application/x-gzip
Size: 14132 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20071105/437fc9af/attachment-0001.bin 


More information about the dbus mailing list