M Kiran Kumar <[EMAIL PROTECTED]> wrote on 05/28/2007 02:54:05 PM:
> Hi ,
>
> I want to write a test application for injecting custom events. As
> part of this I am trying to run the test application 'hpiinjector'
> that has been shipped with OPENHPI sourcecode but which is giving
> unresolved symbols for 'oh_evt_queue_push'. I don't know what other
> unresolved symbols it may list but seems it is failing @
> saHpiSessionOpen() itself. I could able to run all the HPI tools
> but not the test applications, which may be directly linking with
> libsimulator.la and giving unresolved symbol for
> 'oh_evt_queue_push'. Following are the details
>
> I am tried the following on FC4 & FC5 systems.
> 1) I unzipped the openhpi-2.8.1.tgz in to <WORK-DIR>
> 2) cd <WORK-DIR>/openhpi-2.8.1
>
> 3) ./configure --prefix=/usr --sysconfdir=/etc
--with-varpath=/var/lib/openhpi
> 4) make && make install
You don't have to install to run the tests. The tests link to the built
libraries within the tree.
> 5) Started openhpid daemon
> service openhpid start
Currently, you don't have to start the daemon to run the tests. The tests
use the non-daemonized version of libopenhpi within the tree.
> 6) make check
>
> As part of this the test application 'hpiinjector' is not giving
> any unresolved symbol but fail because 'noconfig' is not there.
> 7) I just copied the /etc/openhpi/openhpi.conf file to <WORK-
> DIR>/openhpi-2.8.1/src/t/ohpi directory
>
> cp /etc/openhpi/openhpi.conf src/t/ohpi/
This is strange, because there is already a openhpi.conf file in
src/t/ohpi. I checked the 2.8.1 tarball and saw it there.
Thus, I was able to run the tests without having to do this. Also,
./noconfig does not need to exist. Actually, some tests set the
configuration environment variable to this, expecting that it doesn't
exist in order to perform a valid test.
>
> 8) I did make check again as
>
> make check -C src/t/ohpi
>
> Following is the output
I downloaded openhpi-2.8.1 and was able to run all the tests without
problems. I did ./configure --sysconfdir=/etc
--with-varpath=/var/lib/openhpi && make && make check. And then to make
sure I did make check -C src/t/ohpi. All good.
Sounds like you need to delete your tree, re-download the tarball and try
again. Also, clean up your system from installed openhpi libraries, just
in case (e.g. /usr/lib/liboh*connx*, /usr/lib/libopenhpi*,
/usr/lib/openhpi).
Let me know if you still see problems as it may be an autotools problem
and we may need to check versions.
Saludos,
--Renier
>
> -------------------------------------------------
> [EMAIL PROTECTED] openhpi-2.8.1]# make check -C src/t/ohpi
> make: Entering directory `/home/kiran/openhpi-2.8.1/src/t/ohpi'
> make[1]: Entering directory `/home/kiran/openhpi-2.8.1'
> make[1]: Leaving directory `/home/kiran/openhpi-2.8.1'
> make ohpi_007 ohpi_008 ohpi_009 ohpi_010 ohpi_024 ohpi_025 ohpi_026
> ohpi_027 ohpi_028 ohpi_029 ohpi_030 ohpi_031 ohpi_032 ohpi_033
> ohpi_034 ohpi_035 ohpi_036 ohpi_037 ohpi_038 ohpi_039 ohpi_version
hpiinjector
> make[1]: Entering directory `/home/kiran/openhpi-2.8.1/src/t/ohpi'
> make[2]: Entering directory `/home/kiran/openhpi-2.8.1'
> make[2]: Leaving directory `/home/kiran/openhpi-2.8.1'
> make[1]: `ohpi_007' is up to date.
> make[1]: `ohpi_008' is up to date.
> make[1]: `ohpi_009' is up to date.
> make[1]: `ohpi_010' is up to date.
> make[1]: `ohpi_024' is up to date.
> make[1]: `ohpi_025' is up to date.
> make[1]: `ohpi_026' is up to date.
> make[1]: `ohpi_027' is up to date.
> make[1]: `ohpi_028' is up to date.
> make[1]: `ohpi_029' is up to date.
> make[1]: `ohpi_030' is up to date.
> make[1]: `ohpi_031' is up to date.
> make[1]: `ohpi_032' is up to date.
> make[1]: `ohpi_033' is up to date.
> make[1]: `ohpi_034' is up to date.
> make[1]: `ohpi_035' is up to date.
> make[1]: `ohpi_036' is up to date.
> make[1]: `ohpi_037' is up to date.
> make[1]: `ohpi_038' is up to date.
> make[1]: `ohpi_039' is up to date.
> make[1]: `ohpi_version' is up to date.
> make[1]: `hpiinjector' is up to date.
> make[1]: Leaving directory `/home/kiran/openhpi-2.8.1/src/t/ohpi'
> make check-TESTS
> make[1]: Entering directory `/home/kiran/openhpi-2.8.1/src/t/ohpi'
> make[2]: Entering directory `/home/kiran/openhpi-2.8.1'
> make[2]: Leaving directory `/home/kiran/openhpi-2.8.1'
> PASS: ohpi_007
> PASS: ohpi_008
> PASS: ohpi_009
> PASS: ohpi_010
> PASS: ohpi_024
> PASS: ohpi_025
> PASS: ohpi_026
> PASS: ohpi_027
> PASS: ohpi_028
> PASS: ohpi_029
> PASS: ohpi_030
> PASS: ohpi_031
> PASS: ohpi_032
> PASS: ohpi_033
> PASS: ohpi_034
> /home/kiran/openhpi-2.8.1/src/t/ohpi/.libs/lt-ohpi_035: symbol
> lookup error: ../../../plugins/simulator/.libs/libsimulator.so.2:
> undefined symbol: oh_evt_queue_push
> FAIL: ohpi_035
> PASS: ohpi_036
> /home/kiran/openhpi-2.8.1/src/t/ohpi/.libs/lt-ohpi_037: symbol
> lookup error: ../../../plugins/simulator/.libs/libsimulator.so.2:
> undefined symbol: oh_evt_queue_push
> FAIL: ohpi_037
> /home/kiran/openhpi-2.8.1/src/t/ohpi/.libs/lt-ohpi_038: symbol
> lookup error: ../../../plugins/simulator/.libs/libsimulator.so.2:
> undefined symbol: oh_evt_queue_push
> FAIL: ohpi_038
> PASS: ohpi_039
> PASS: ohpi_version
> /home/kiran/openhpi-2.8.1/src/t/ohpi/.libs/lt-hpiinjector: symbol
> lookup error: ../../../plugins/simulator/.libs/libsimulator.so.2:
> undefined symbol: oh_evt_queue_push
> FAIL: hpiinjector
> ====================
> 4 of 22 tests failed
> ====================
> make[1]: *** [check-TESTS] Error 1
> make[1]: Leaving directory `/home/kiran/openhpi-2.8.1/src/t/ohpi'
> make: *** [check-am] Error 2
> make: Leaving directory `/home/kiran/openhpi-2.8.1/src/t/ohpi'
> [EMAIL PROTECTED] openhpi-2.8.1]#
> ----------------------------------------------------------------------
>
> Did I miss any thing ? Please help me out, to resolve this
> unresolved symbol problem.
>
>
> with regards,
>
> Kiran
>
> Get the Yahoo! toolbar and be alerted to new email wherever you're
surfing.
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Openhpi-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openhpi-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel