Re: "undefined reference" errors while running make

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/28/2016 05:00 PM, Mahmood Naderan wrote:
> Hi,
> The outcome of './configure --prefix=/opt/spice' shows everything is OK
> 
> config.status: executing libtool commands
> configure:
> 
>         Spice 0.13.0.232-8b1e-dirty
>         ==============
> 
>         prefix:                   /opt/spice
>         c compiler:               gcc -std=gnu99
>         c++ compiler:
>         python:                   /usr/bin/python2
> 
>         LZ4 support:              auto
>         Smartcard:                yes
>         SASL support:             no
>         Automated tests:          no
>         Manual:                   no
> 
>         Now type 'make' to build spice
> 
> 
> However, by running 'make', I get a lot of "undefined reference" errors.
> 
> make  all-am
> make[5]: Entering directory `/opt/spice-src/spice-common/tests'
>   CCLD   test_logging
> test_logging-test-logging.o: In function `test_spice_fatal_critical':
> /opt/spice-src/spice-common/tests/test-logging.c:102: undefined
> reference to `g_test_subprocess'
> /opt/spice-src/spice-common/tests/test-logging.c:106: undefined
> reference to `g_test_trap_subprocess'
> test_logging-test-logging.o: In function `test_spice_fatal_return_if_fail':
> /opt/spice-src/spice-common/tests/test-logging.c:145: undefined
> reference to `g_test_subprocess'
> /opt/spice-src/spice-common/tests/test-logging.c:149: undefined
> reference to `g_test_trap_subprocess'
> test_logging-test-logging.o: In function `test_spice_fatal_warning':
> /opt/spice-src/spice-common/tests/test-logging.c:88: undefined reference
> to `g_test_subprocess'
> /opt/spice-src/spice-common/tests/test-logging.c:92: undefined reference
> to `g_test_trap_subprocess'
> test_logging-test-logging.o: In function
> `test_spice_non_fatal_g_return_if_fail':
> /opt/spice-src/spice-common/tests/test-logging.c:161: undefined
> reference to `g_test_subprocess'
> /opt/spice-src/spice-common/tests/test-logging.c:165: undefined
> reference to `g_test_trap_subprocess'
> test_logging-test-logging.o: In function `test_spice_fatal_g_critical':
> 
> 

What is the version of glib in your system? Those functions were added
in version 2.38.


-- 
Eduardo de Barros Lima (Etrunko)
Software Engineer - RedHat
etrunko@xxxxxxxxxx
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]