Wrong ELF class: ELFCLASS64

119 views
Skip to first unread message

Selva Manoharan

unread,
Aug 25, 2016, 11:18:58 AM8/25/16
to mod-pagespeed-discuss
Hi Team,

I am trying to install pagespeed for IBM IHS by building from source. I was able to follow the steps at https://developers.google.com/speed/pagespeed/module/build_mod_pagespeed_from_source

and install successfully. But when i tried to restart the server for the installation to take effect i got the below error 

Cannot load /opt/IBM/HTTPServer/modules/mod_pagespeed.so into server: /opt/IBM/HTTPServer/modules/mod_pagespeed.so: wrong ELF class: ELFCLASS64

It seems that I have Architecture: 32-bit and the module is 64 bit. 

Can some one please help me on building the module for 32-bit? I know that we need to use gcc with '-m32' but I am not sure where to do this. 


Regards
Selva

Jeffrey Crowell

unread,
Aug 25, 2016, 11:21:09 AM8/25/16
to mod-pagespeed-discuss
you should be able to "export CFLAGS=-m32" and "export CXXFLAGS=-m32" before building. which should work

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/3d046164-ebc1-4cee-a743-0b95cb8cab84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeff Kaufman

unread,
Aug 25, 2016, 11:21:42 AM8/25/16
to mod-pagespeed-discuss
(I'm not sure if mod_pagespeed will work with IBM IHS; while that's
based on Apache it might be too different for us to work with.)

On Thu, Aug 25, 2016 at 11:21 AM, 'Jeffrey Crowell' via
mod-pagespeed-discuss <mod-pagesp...@googlegroups.com> wrote:
> you should be able to "export CFLAGS=-m32" and "export CXXFLAGS=-m32" before
> building. which should work
>
> On Thu, Aug 25, 2016 at 11:18 AM, Selva Manoharan <selvama...@gmail.com>
> wrote:
>>
>> Hi Team,
>>
>> I am trying to install pagespeed for IBM IHS by building from source. I
>> was able to follow the steps at
>> https://developers.google.com/speed/pagespeed/module/build_mod_pagespeed_from_source
>>
>> and install successfully. But when i tried to restart the server for the
>> installation to take effect i got the below error
>>
>> Cannot load /opt/IBM/HTTPServer/modules/mod_pagespeed.so into server:
>> /opt/IBM/HTTPServer/modules/mod_pagespeed.so: wrong ELF class: ELFCLASS64
>>
>> It seems that I have Architecture: 32-bit and the module is 64 bit.
>>
>> Can some one please help me on building the module for 32-bit? I know that
>> we need to use gcc with '-m32' but I am not sure where to do this.
>>
>>
>> Regards
>> Selva
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "mod-pagespeed-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to mod-pagespeed-di...@googlegroups.com.
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mod-pagespeed-di...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mod-pagespeed-discuss/CA%2B7dWME07fx%3DcK0JJRg-dPYgA9dwZWC_o-%3DT_LZYJ7aTYqOg0Q%40mail.gmail.com.

Selva Manoharan

unread,
Aug 25, 2016, 1:54:41 PM8/25/16
to mod-pagespeed-discuss
@ Jeffrey thanks a lot for the pointer, i am  now running the build, faced some issues with stub-32.h, got it resolved, but it confirms it is building with 32-bit :). thanks again

Selva Manoharan

unread,
Aug 25, 2016, 1:58:09 PM8/25/16
to mod-pagespeed-discuss
@Jeff, yes I am not sure if this will work, but I am just trying. No other option but to use IBM IHS for our project. It would be nice if this is included and supported, most of the major eCommerce sites i have worked still use IBM IHS :( and they expect us to deliver high performance sites :(
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/mod-pagespeed-discuss/3d046164-ebc1-4cee-a743-0b95cb8cab84%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
Reply all
Reply to author
Forward
0 new messages