Welcome! Log In Create A New Profile

Advanced

Re: Статическая сборка nginx с GD

Anton Kiryushkin
April 06, 2019 07:08AM
Добавил и не помогло.

сб, 6 апр. 2019 г. в 11:06, Igor Sysoev <igor@sysoev.ru>:

> > On 6 Apr 2019, at 12:54, Anton Kiryushkin <swood@fotofor.biz> wrote:
> >
> > Здравствуйте.
> >
> > Подскажите, пожалуйста, почему nginx в данном случае никак не может
> собраться статически с libgd:
> >
> > ----------
> > cc -static -static-libgcc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I
> /usr/pkg/include -o objs/autotest objs/autotest.c -static -L/usr/pkg/lib
> -lgd
> > ----------
> >
> > ----------------------------------------
> > checking for GD library in /opt/local/
> >
> > /opt/local/lib/libgd.a(gd.o): In function `lsqrt':
> > /usr/src/libgd/src/gd.c:1722: undefined reference to `sqrt'
> > /opt/local/lib/libgd.a(gd.o): In function `gdImageDashedLine':
> > /usr/src/libgd/src/gd.c:1471: undefined reference to `atan2'
> > /usr/src/libgd/src/gd.c:1471: undefined reference to `sin'
> > /usr/src/libgd/src/gd.c:1520: undefined reference to `atan2'
> > /usr/src/libgd/src/gd.c:1520: undefined reference to `sin'
> > /opt/local/lib/libgd.a(gd.o): In function `gdImageAALine':
> > /usr/src/libgd/src/gd.c:3514: undefined reference to `atan2'
> > /usr/src/libgd/src/gd.c:3514: undefined reference to `cos'
> > /opt/local/lib/libgd.a(gd.o): In function `gdImageLine':
> > /usr/src/libgd/src/gd.c:1394: undefined reference to `atan2'
> > /usr/src/libgd/src/gd.c:1394: undefined reference to `sin'
> > /usr/src/libgd/src/gd.c:1333: undefined reference to `atan2'
> > /usr/src/libgd/src/gd.c:1333: undefined reference to `cos'
> > /opt/local/lib/libgd.a(gd.o): In function `gdImageAALine':
> > /usr/src/libgd/src/gd.c:3514: undefined reference to `atan2'
> > /usr/src/libgd/src/gd.c:3514: undefined reference to `sin'
> > /opt/local/lib/libgd.a(gd.o): In function `gdImageCopyRotated':
> > /usr/src/libgd/src/gd.c:2792: undefined reference to `sincos'
> > /usr/src/libgd/src/gd.c:2791: undefined reference to `sqrt'
> > collect2: error: ld returned 1 exit status
> > ----------
> >
> > Сам libgd собран в /opt/local с флагом static. К сожалению, мне
> действительно нужна статическая сборка. Остается страдать и все же так не
> делать или есть способ что-то тут сделать?
>
> Нужно добавить "-lm" в --with-ld-opt
>
>
> --
> Igor Sysoev
> http://nginx.com
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru



--
Best regards,
Anton Kiryushkin
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Статическая сборка nginx с GD

Anton Kiryushkin April 06, 2019 05:56AM

Re: Статическая сборка nginx с GD

Igor Sysoev April 06, 2019 06:08AM

Re: Статическая сборка nginx с GD

Anton Kiryushkin April 06, 2019 07:08AM

Re: Статическая сборка nginx с GD

Igor Sysoev April 06, 2019 07:16AM

Re: Статическая сборка nginx с GD

Anton Kiryushkin April 06, 2019 07:58AM

Re: Статическая сборка nginx с GD

Igor Sysoev April 06, 2019 02:24PM

Re: Статическая сборка nginx с GD

Anton Kiryushkin April 07, 2019 07:36AM

Re: Статическая сборка nginx с GD

Anton Kiryushkin April 07, 2019 03:18PM

Re: Статическая сборка nginx с GD

Igor Sysoev April 07, 2019 03:42PM

Re: Статическая сборка nginx с GD

Maxim Dounin April 07, 2019 09:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 268
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready