You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2013/09/24 23:45:14 UTC

[jira] [Updated] (TS-2249) make check failed on test_AIO.cc:494: undefined reference to `cache_config_threads_per_disk'

     [ https://issues.apache.org/jira/browse/TS-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-2249:
------------------------------

    Fix Version/s: 4.1.0
    
> make check failed on test_AIO.cc:494: undefined reference to `cache_config_threads_per_disk'
> --------------------------------------------------------------------------------------------
>
>                 Key: TS-2249
>                 URL: https://issues.apache.org/jira/browse/TS-2249
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Yunkai Zhang
>             Fix For: 4.1.0
>
>
> Compiles ATS master branch with:
> {code}
> [qiushu.zyk@dev163005 trafficserver]$ pwd
> /home/qiushu.zyk/trafficserver
> [qiushu.zyk@dev163005 trafficserver]$ ./configure --enable-layout=Gentoo --with-user=ats --with-group=ats --enable-experimental-plugins --enable-wccp --disable-debug --enable-linux-native-aio --enable-reclaimable-freelist --enable-interim-cache
> {code}
> *make check* failed on test_AIO.cc:494: undefined reference to `cache_config_threads_per_disk':
> {code}
> [qiushu.zyk@dev163005 aio]$ pwd
> /home/qiushu.zyk/trafficserver/iocore/aio
> [qiushu.zyk@dev163005 aio]$ make check
> make  test_AIO
> make[1]: Entering directory `/home/qiushu.zyk/trafficserver/iocore/aio'
>   CXX    test_AIO-test_AIO.o
>   CXXLD  test_AIO
> test_AIO-test_AIO.o: In function `main':
> /home/qiushu.zyk/trafficserver/iocore/aio/test_AIO.cc:494: undefined reference to `cache_config_threads_per_disk'
> collect2: ld returned 1 exit status
> make[1]: *** [test_AIO] Error 1
> make[1]: Leaving directory `/home/qiushu.zyk/trafficserver/iocore/aio'
> make: *** [check-am] Error 2
> {code}
> Use following patch can solve *undefined error*:
> {code}
> [qiushu.zyk@dev163005 aio]$ git diff
> diff --git a/iocore/aio/test_AIO.cc b/iocore/aio/test_AIO.cc
> index 817d8a2..22d06a4 100644
> --- a/iocore/aio/test_AIO.cc
> +++ b/iocore/aio/test_AIO.cc
> @@ -135,7 +135,7 @@ volatile int n_accessors = 0;
>  int orig_n_accessors;
>  AIO_Device *dev[MAX_DISK_THREADS];
>  
> -extern RecInt cache_config_threads_per_disk;
> +RecInt cache_config_threads_per_disk;
>  
>  int write_after = 0;
>  int write_skip = 0;
> {code}
> After applied above patch, *make check* will also fail:
> {code}
> [qiushu.zyk@dev163005 aio]$ make check
> make  test_AIO
> make[1]: Entering directory `/home/qiushu.zyk/trafficserver/iocore/aio'
>   CXX    test_AIO-test_AIO.o
>   CXXLD  test_AIO
> make[1]: Leaving directory `/home/qiushu.zyk/trafficserver/iocore/aio'
> make  check-TESTS
> make[1]: Entering directory `/home/qiushu.zyk/trafficserver/iocore/aio'
> reading disk_size = 1
> reading hotset_size = 1
> reading hotset_frequency = 0.5
> reading run_time = 30
> reading threads_per_disk = 1
> reading touch_data = 1
> reading seq_read_percent = 0.5
> reading seq_write_percent = 0.3
> reading rand_read_percent = 0.2
> reading seq_read_size = 131072
> reading seq_write_size = 4093
> reading rand_read_size = 4096
> reading write_skip = 5
> reading chains = 1
> reading delete_disks = 1
> reading disk_path = ./aio.tst
> Starting hotset document writing 
> /bin/sh: line 5: 20105 Segmentation fault      (core dumped) ${dir}$tst
> FAIL: test_AIO.sample
> =============================================
> 1 of 1 test failed
> Please report to dev@trafficserver.apache.org
> =============================================
> make[1]: *** [check-TESTS] Error 1
> make[1]: Leaving directory `/home/qiushu.zyk/trafficserver/iocore/aio'
> make: *** [check-am] Error 2
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira