Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Compilation error with gcc 4.9 #739

Closed

Description

@rcarl01

Error Message

/ngx_pagespeed-release-1.8.31.4-beta/src/ngx_pagespeed.cc
/root/ngx_pagespeed-release-1.8.31.4-beta/src/ngx_pagespeed.cc:1264:17: error: 'net_instaweb::{anonymous}::ps_main_conf_t* net_instaweb::{anonymous}::ps_get_main_config(ngx_http_request_t*)' defined but not used [-Werror=unused-function]
 ps_main_conf_t* ps_get_main_config(ngx_http_request_t* r) {

Activity

  1. added a commit that references this issue on Jun 27, 2014
    e55b062
  2. jeffkaufman commented on Jun 27, 2014

    @jeffkaufman
    Contributor

    The error is accurate: ps_get_main_config is defined and not used. I'll remove it.

    For now, could you compile without the unused-function warning? This would mean adding something like CFLAGS="$CFLAGS -Wno-unused-function" to ngx_pagespeed/config.

  3. jeffkaufman commented on Jun 27, 2014

    @jeffkaufman
    Contributor

    Oh, and what compiler and version are you using?

  4. rcarl01 commented on Jun 27, 2014

    @rcarl01
    Author

    Nginx 1.7.2
    gcc 4.9.0 (Debian 4.9.0.7)

  5. added a commit that references this issue on Jun 30, 2014
    72c7e58
  6. loadaverage commented on Jul 9, 2014

    @loadaverage

    I have the similar issue.
    Debian GNU/Linux jessie/sid
    gcc version 4.9.0 (Debian 4.9.0-7)
    On nginx 1.6 (and 1.7.3 too) and ngx_pagespeed-release-1.8.31.4-beta

  7. oschaaf commented on Jul 9, 2014

    @oschaaf
    Member

    @jeffkaufman fixed this via e55b062 on the trunk-tracking branch. The patch should apply cleanly.

  8. loadaverage commented on Jul 9, 2014

    @loadaverage

    @oschaaf Thanks.

  9. jeffkaufman commented on Aug 4, 2014

    @jeffkaufman
    Contributor

    Fixed by #740

  10. changed the title [-]Compile error build from source src/ngx_pagespeed.cc:1264:17: error: 'net_instaweb::{anonymous}[/-] [+]Compilation error with gcc 4.9[/+] on Aug 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions