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

Build error #7

Closed
pepa65 opened this issue Oct 29, 2023 · 4 comments
Closed

Build error #7

pepa65 opened this issue Oct 29, 2023 · 4 comments

Comments

@pepa65
Copy link

pepa65 commented Oct 29, 2023

./configure runs fine, but make gives:

Making all in src                                                                                                              [80/7859]
make[1]: Entering directory '/data/git/pngloss/src'                                                                                     
gcc -DPACKAGE_NAME=\"pngloss\" -DPACKAGE_TARNAME=\"pngloss\" -DPACKAGE_VERSION=\"1.0.1\" -DPACKAGE_STRING=\"pngloss\ 1.0.1\" -DPACKAGE_B
UGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"pngloss\" -DVERSION=\"1.0.1\" -I.    -I/usr/include/libpng16 -g -O2 -MT pngloss-color_delta
.o -MD -MP -MF .deps/pngloss-color_delta.Tpo -c -o pngloss-color_delta.o `test -f 'color_delta.c' || echo './'`color_delta.c            
mv -f .deps/pngloss-color_delta.Tpo .deps/pngloss-color_delta.Po                                                                        
gcc -DPACKAGE_NAME=\"pngloss\" -DPACKAGE_TARNAME=\"pngloss\" -DPACKAGE_VERSION=\"1.0.1\" -DPACKAGE_STRING=\"pngloss\ 1.0.1\" -DPACKAGE_B
UGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"pngloss\" -DVERSION=\"1.0.1\" -I.    -I/usr/include/libpng16 -g -O2 -MT pngloss-optimize_st
ate.o -MD -MP -MF .deps/pngloss-optimize_state.Tpo -c -o pngloss-optimize_state.o `test -f 'optimize_state.c' || echo './'`optimize_stat
e.c                                                                                                                                     
mv -f .deps/pngloss-optimize_state.Tpo .deps/pngloss-optimize_state.Po                                                                  
gcc -DPACKAGE_NAME=\"pngloss\" -DPACKAGE_TARNAME=\"pngloss\" -DPACKAGE_VERSION=\"1.0.1\" -DPACKAGE_STRING=\"pngloss\ 1.0.1\" -DPACKAGE_B
UGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"pngloss\" -DVERSION=\"1.0.1\" -I.    -I/usr/include/libpng16 -g -O2 -MT pngloss-pngloss_ima
ge.o -MD -MP -MF .deps/pngloss-pngloss_image.Tpo -c -o pngloss-pngloss_image.o `test -f 'pngloss_image.c' || echo './'`pngloss_image.c  
mv -f .deps/pngloss-pngloss_image.Tpo .deps/pngloss-pngloss_image.Po                                                                    
gcc -DPACKAGE_NAME=\"pngloss\" -DPACKAGE_TARNAME=\"pngloss\" -DPACKAGE_VERSION=\"1.0.1\" -DPACKAGE_STRING=\"pngloss\ 1.0.1\" -DPACKAGE_B
UGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"pngloss\" -DVERSION=\"1.0.1\" -I.    -I/usr/include/libpng16 -g -O2 -MT pngloss-pngloss_opt
s.o -MD -MP -MF .deps/pngloss-pngloss_opts.Tpo -c -o pngloss-pngloss_opts.o `test -f 'pngloss_opts.c' || echo './'`pngloss_opts.c
mv -f .deps/pngloss-pngloss_opts.Tpo .deps/pngloss-pngloss_opts.Po
gcc -DPACKAGE_NAME=\"pngloss\" -DPACKAGE_TARNAME=\"pngloss\" -DPACKAGE_VERSION=\"1.0.1\" -DPACKAGE_STRING=\"pngloss\ 1.0.1\" -DPACKAGE_B
UGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"pngloss\" -DVERSION=\"1.0.1\" -I.    -I/usr/include/libpng16 -g -O2 -MT pngloss-pngloss.o -
MD -MP -MF .deps/pngloss-pngloss.Tpo -c -o pngloss-pngloss.o `test -f 'pngloss.c' || echo './'`pngloss.c
mv -f .deps/pngloss-pngloss.Tpo .deps/pngloss-pngloss.Po
gcc -DPACKAGE_NAME=\"pngloss\" -DPACKAGE_TARNAME=\"pngloss\" -DPACKAGE_VERSION=\"1.0.1\" -DPACKAGE_STRING=\"pngloss\ 1.0.1\" -DPACKAGE_B
UGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"pngloss\" -DVERSION=\"1.0.1\" -I.    -I/usr/include/libpng16 -g -O2 -MT pngloss-rwpng.o -MD
 -MP -MF .deps/pngloss-rwpng.Tpo -c -o pngloss-rwpng.o `test -f 'rwpng.c' || echo './'`rwpng.c
mv -f .deps/pngloss-rwpng.Tpo .deps/pngloss-rwpng.Po
gcc -I/usr/include/libpng16 -g -O2 -lpng16 -lz  -o pngloss pngloss-color_delta.o pngloss-optimize_state.o pngloss-pngloss_image.o pnglos
s-pngloss_opts.o pngloss-pngloss.o pngloss-rwpng.o  
/usr/bin/ld: pngloss-rwpng.o: in function `rwpng_read_image24_libpng':
/home/pp/git/pngloss/src/rwpng.c:186: undefined reference to `png_create_read_struct'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:192: undefined reference to `png_create_info_struct'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:207: undefined reference to `png_set_option'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:221: undefined reference to `png_set_read_fn'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:223: undefined reference to `png_read_info'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:229: undefined reference to `png_get_IHDR'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:255: undefined reference to `png_set_gray_to_rgb'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:260: undefined reference to `png_get_valid'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:277: undefined reference to `png_set_interlace_handling'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:282: undefined reference to `png_read_update_info'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:284: undefined reference to `png_get_rowbytes'
/usr/bin/ld: pngloss-rwpng.o: in function `rwpng_create_row_pointers':
/home/pp/git/pngloss/src/rwpng.c:117: undefined reference to `png_get_rowbytes'
/usr/bin/ld: pngloss-rwpng.o: in function `rwpng_read_image24_libpng':
/home/pp/git/pngloss/src/rwpng.c:302: undefined reference to `png_read_image'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:307: undefined reference to `png_read_end'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:394: undefined reference to `png_destroy_read_struct'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:202: undefined reference to `png_destroy_read_struct'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:294: undefined reference to `png_destroy_read_struct'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:213: undefined reference to `png_set_keep_unknown_chunks'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:217: undefined reference to `png_set_read_user_chunk_fn'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:264: undefined reference to `png_get_gAMA'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:240: undefined reference to `png_set_expand'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:241: undefined reference to `png_set_filler'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:251: undefined reference to `png_set_strip_16'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:194: undefined reference to `png_destroy_read_struct'
/usr/bin/ld: pngloss-rwpng.o: in function `user_read_data':
/home/pp/git/pngloss/src/rwpng.c:75: undefined reference to `png_get_io_ptr'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:79: undefined reference to `png_error'
/usr/bin/ld: pngloss-rwpng.o: in function `read_chunk_callback':
/home/pp/git/pngloss/src/rwpng.c:141: undefined reference to `png_get_user_chunk_ptr'
/usr/bin/ld: pngloss-rwpng.o: in function `rwpng_error_handler':
/home/pp/git/pngloss/src/rwpng.c:655: undefined reference to `png_get_error_ptr'
/usr/bin/ld: pngloss-rwpng.o: in function `user_write_data':
/home/pp/git/pngloss/src/rwpng.c:94: undefined reference to `png_get_io_ptr'
/usr/bin/ld: pngloss-rwpng.o: in function `rwpng_write_image_init':                                                                     
/home/pp/git/pngloss/src/rwpng.c:449: undefined reference to `png_create_write_struct'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:455: undefined reference to `png_create_info_struct'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:471: undefined reference to `png_set_compression_level'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:472: undefined reference to `png_set_compression_mem_level'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:467: undefined reference to `png_destroy_write_struct'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:457: undefined reference to `png_destroy_write_struct'
/usr/bin/ld: pngloss-rwpng.o: in function `rwpng_version_info':
/home/pp/git/pngloss/src/rwpng.c:43: undefined reference to `png_get_header_ver'
/usr/bin/ld: pngloss-rwpng.o: in function `rwpng_write_image24':
/home/pp/git/pngloss/src/rwpng.c:524: undefined reference to `png_init_io'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:532: undefined reference to `png_set_write_fn'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:546: undefined reference to `png_set_unknown_chunks'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:610: undefined reference to `png_set_IHDR'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:610: undefined reference to `png_set_IHDR'
/usr/bin/ld: pngloss-rwpng.o: in function `rwpng_write_end':
/home/pp/git/pngloss/src/rwpng.c:481: undefined reference to `png_write_info'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:486: undefined reference to `png_set_packing'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:488: undefined reference to `png_set_filter'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:490: undefined reference to `png_write_row'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:493: undefined reference to `png_set_filter'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:494: undefined reference to `png_write_row'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:500: undefined reference to `png_write_end'
/usr/bin/ld: /home/pp/git/pngloss/src/rwpng.c:502: undefined reference to `png_destroy_write_struct'
/usr/bin/ld: pngloss-rwpng.o: in function `rwpng_set_gamma':
/home/pp/git/pngloss/src/rwpng.c:508: undefined reference to `png_set_gAMA'
/usr/bin/ld: pngloss-rwpng.o: in function `rwpng_write_end':
/home/pp/git/pngloss/src/rwpng.c:484: undefined reference to `png_set_filler'
/usr/bin/ld: pngloss-rwpng.o: in function `rwpng_create_row_pointers':
/home/pp/git/pngloss/src/rwpng.c:117: undefined reference to `png_get_rowbytes'
/usr/bin/ld: pngloss-rwpng.o: in function `rwpng_write_end':
/home/pp/git/pngloss/src/rwpng.c:497: undefined reference to `png_write_image'
/usr/bin/ld: pngloss-rwpng.o: in function `rwpng_set_gamma':
/home/pp/git/pngloss/src/rwpng.c:511: undefined reference to `png_set_sRGB'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:346: pngloss] Error 1
make[1]: Leaving directory '/data/git/pngloss/src'
make: *** [Makefile:410: all-recursive] Error 1
@pepa65
Copy link
Author

pepa65 commented Oct 29, 2023

That works! You should probably archive this repo..!

@pepa65 pepa65 closed this as completed Oct 29, 2023
@zvezdochiot
Copy link

@pepa65 , this is not my repo. I have provided mine in a list. 😄

@pepa65
Copy link
Author

pepa65 commented Oct 30, 2023

@zvezdochiot Thank you!

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