Webalizer will not build...Acts as if libgd is not installed, even though it is. graphs.o(.text+0x6ea): In function `year_graph6x': : undefined reference to `gdImagePng' graphs.o(.text+0x16e9): In function `month_graph6': : undefined reference to `gdImagePng' graphs.o(.text+0x22e0): In function `day_graph3': : undefined reference to `gdImagePng' graphs.o(.text+0x2bb5): In function `pie_chart': : undefined reference to `gdImagePng' collect2: ld returned 1 exit status make: *** [webalizer] Error 1 !!! ERROR: app-admin/webalizer-2.01.10-r4 failed. !!! Function src_compile, Line 31, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. emerge webalizer 2. that's 3. all Actual Results: graphs.o(.text+0x6ea): In function `year_graph6x': : undefined reference to `gdImagePng' graphs.o(.text+0x16e9): In function `month_graph6': : undefined reference to `gdImagePng' graphs.o(.text+0x22e0): In function `day_graph3': : undefined reference to `gdImagePng' graphs.o(.text+0x2bb5): In function `pie_chart': : undefined reference to `gdImagePng' collect2: ld returned 1 exit status make: *** [webalizer] Error 1 !!! ERROR: app-admin/webalizer-2.01.10-r4 failed. !!! Function src_compile, Line 31, Exitcode 2 !!! (no error message) Expected Results: It should have built without complaining about non-existent functions or data types in libgd. Even the original source from the author's web site fails to build. So, it's most likely a problem in libgd, gdbm, or (?)...mrtg complains about the same thing when you try to build it as well.
I got the following trying to emerge analog, I believe the problem is the same: gcc -O2 -mcpu=athlon-xp -fomit-frame-pointer -o ../analog alias.o analog.o cache.o dates.o globals.o hash.o init.o init2.o input.o macinput.o macstuff.o output.o output2.o process.o settings.o sort.o tree.o utils.o win32.o libgd/gd.o libgd/gd_io.o libgd/gd_io_file.o libgd/gd_png.o libgd/gdfontf.o libgd/gdfonts.o libgd/gdtables.o libpng/png.o libpng/pngerror.o libpng/pngmem.o libpng/pngset.o libpng/pngtrans.o libpng/pngwio.o libpng/pngwrite.o libpng/pngwtran.o libpng/pngwutil.o pcre/pcre.o zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o zlib/gzio.o zlib/infblock.o zlib/infcodes.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/infutil.o zlib/trees.o zlib/uncompr.o zlib/zutil.o -lgd -lz -lpcre -lm -lpng -ljpeg output2.o(.text+0x8bef): In function `piechart_write': : undefined reference to `gdImagePng' collect2: ld returned 1 exit status make: *** [analog] Error 1 make: Leaving directory `/var/tmp/portage/analog-5.32/work/analog-5.32/src' !!! ERROR: app-admin/analog-5.32 failed. !!! Function src_compile, Line 46, Exitcode 2 !!! (no error message)
Possible solution: - Add "png" to USE flags - Re-emerge libgd - emerge webalizer Somehow webalizer depends on features in libgd which are not always present :-(
Hi Larry, Thanks for the bug report. Unfortunately, there's currently no way we can detect whether or not PNG support has been compiled into libgd. I'm told that this will be added in a future version of Portage; but until then, I'm not sure what we can do :( Best regards, Stu