Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UNKNOWN on netbsd 5.1_rc3: cannot find -lpng #129

Open
kthakore opened this issue Jul 24, 2011 · 0 comments
Open

UNKNOWN on netbsd 5.1_rc3: cannot find -lpng #129

kthakore opened this issue Jul 24, 2011 · 0 comments
Assignees

Comments

@kthakore
Copy link
Member

looks like we have to link against libpng14 instead of libpng:

SKIPPING package 'libpng-1.4.1' (already installed)...
BUILDING package 'SDL_image-1.2.10'...
Configuring package 'SDL_image'...
(cmd: PATH="/home/cpan/pit/thr/conf/perl-5.10.0/.cpanplus/5.10.0/build/Alien-SDL-1.423/sharedir/1.423_8b9a9d00/bin:$PATH" ./configure --prefix=/home/cpan/pit/thr/conf/perl-5.10.0/.cpanplus/5.10.0/build/Alien-SDL-1.423/sharedir/1.423_8b9a9d00 --enable-static=no --enable-shared=yes  --with-sdl-prefix=/home/cpan/pit/thr/conf/perl-5.10.0/.cpanplus/5.10.0/build/Alien-SDL-1.423/sharedir/1.423_8b9a9d00 CFLAGS="-I/home/cpan/pit/thr/conf/perl-5.10.0/.cpanplus/5.10.0/build/Alien-SDL-1.423/sharedir/1.423_8b9a9d00/include -I/usr/X11R6/include" LDFLAGS="-L/home/cpan/pit/thr/conf/perl-5.10.0/.cpanplus/5.10.0/build/Alien-SDL-1.423/sharedir/1.423_8b9a9d00/lib -L/usr/X11R6/lib")
checking build system type... x86_64-unknown-netbsd5.1.
checking host system type... x86_64-unknown-netbsd5.1.
checking for gcc... gcc
[...]
checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so|_pic\.a)$
[...]
checking for pkg-config... /usr/pkg/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for sdl-config... /home/cpan/pit/thr/conf/perl-5.10.0/.cpanplus/5.10.0/build/Alien-SDL-1.423/sharedir/1.423_8b9a9d00/bin/sdl-config
checking for SDL - version >= 1.2.10... yes
[...]
checking for LIBPNG... yes
[...]
Running make install SDL_image...
(cmd: gmake install)
[...]
IMG_png.c: In function 'IMG_LoadPNG_RW':
IMG_png.c:350: warning: 'jmpbuf' is deprecated (declared at /usr/pkg/include/libpng14/png.h:1096)
IMG_png.c:419: warning: 'channels' is deprecated (declared at /usr/pkg/include/libpng14/png.h:664)
IMG_png.c:421: warning: 'channels' is deprecated (declared at /usr/pkg/include/libpng14/png.h:664)
IMG_png.c:429: warning: 'channels' is deprecated (declared at /usr/pkg/include/libpng14/png.h:664)
IMG_png.c:477: warning: 'num_palette' is deprecated (declared at /usr/pkg/include/libpng14/png.h:647)
IMG_png.c:478: warning: 'num_palette' is deprecated (declared at /usr/pkg/include/libpng14/png.h:647)
IMG_png.c:479: warning: 'num_palette' is deprecated (declared at /usr/pkg/include/libpng14/png.h:647)
IMG_png.c:480: warning: 'palette' is deprecated (declared at /usr/pkg/include/libpng14/png.h:645)
IMG_png.c:481: warning: 'palette' is deprecated (declared at /usr/pkg/include/libpng14/png.h:645)
IMG_png.c:482: warning: 'palette' is deprecated (declared at /usr/pkg/include/libpng14/png.h:645)
[...]
*** Warning: linker path does not have real file for library -lpng.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libpng but no candidates were found. (...for regex pattern test)
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.
[...]
ld: cannot find -lpng

Reports:
http://www.cpantesters.org/cpan/report/99999bec-2943-11e0-bb29-ad544afd17af
http://www.cpantesters.org/cpan/report/a0f7e5f0-2967-11e0-bb29-ad544afd17af
http://www.cpantesters.org/cpan/report/3b29d11a-29d1-11e0-bb29-ad544afd17af
http://www.cpantesters.org/cpan/report/e9566ee8-2a2f-11e0-afb0-adca6bb533f3
http://www.cpantesters.org/cpan/report/4c778b36-2acd-11e0-bb29-ad544afd17af
http://www.cpantesters.org/cpan/report/9afd0ae2-2acd-11e0-afb0-adca6bb533f3
http://www.cpantesters.org/cpan/report/b8cd9966-2b03-11e0-bb29-ad544afd17af
http://www.cpantesters.org/cpan/report/dcfae062-2b32-11e0-bb29-ad544afd17af
http://www.cpantesters.org/cpan/report/f4fbd2d8-2b65-11e0-bb29-ad544afd17af
http://www.cpantesters.org/cpan/report/551ffa5a-2ba1-11e0-bb29-ad544afd17af
http://www.cpantesters.org/cpan/report/e260f79e-2bbe-11e0-bb29-ad544afd17af

@ghost ghost assigned FROGGS Jul 24, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants