Solved [www/nginx] nginx/1.16.1 ngx_http_image_filter_module - load error

spag

Member

Reaction score: 6
Messages: 49

Hi,
I have a problem recently:
Code:
nginx: [emerg] dlopen() "/usr/local/libexec/nginx/ngx_http_image_filter_module.so" failed (/usr/local/libexec/nginx/ngx_http_image_filter_module.so: Undefined symbol "gdImageCreateFromPngPtr") in /usr/local/etc/nginx/nginx.conf:5
Any Idea how to fix? Thanks.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,744
Messages: 39,332

Did you build from ports or are you using packages? This looks like a missing dependency, most likely graphics/gd.
 
OP
spag

spag

Member

Reaction score: 6
Messages: 49

Building from ports/pounderie, but yes you are right graphics/gd did changes recently and few ports do not build properly like graphics/php73-gd , graphics/graphviz :
Code:
In file included from /wrkdirs/usr/ports/graphics/php73-gd/work/php-7.3.9/ext/gd/gd_compat.c:13:
/usr/local/include/jpeglib.h:792:3: error: unknown type name 'size_t'
  size_t free_in_buffer;        /* # of byte spaces remaining in buffer */
  ^
/usr/local/include/jpeglib.h:804:3: error: unknown type name 'size_t'
  size_t bytes_in_buffer;       /* # of bytes remaining in buffer */
  ^
/usr/local/include/jpeglib.h:835:58: error: unknown type name 'size_t'
  void *(*alloc_small) (j_common_ptr cinfo, int pool_id, size_t sizeofobject);
 

Attachments

  • php73-gd-7.3.9.txt
    27.9 KB · Views: 90
  • graphviz-2.42.2.txt.zip
    197.9 KB · Views: 61
OP
spag

spag

Member

Reaction score: 6
Messages: 49

Solved:
poudriere options -j 120-amd64 graphics/gd - redoing options for that package fixed failed builds. Thanks for help.
 
Top