Subject: Re: pkg/34561 (links-gui needs pcre)
To: None <,,>
From: Thomas Klausner <>
List: pkgsrc-bugs
Date: 09/24/2006 07:15:05
The following reply was made to PR pkg/34561; it has been noted by GNATS.

From: Thomas Klausner <>
To: =?iso-8859-1?Q?C=E9sar_Catri=E1n_Carre=F1o?= <>
Subject: Re: pkg/34561 (links-gui needs pcre)
Date: Sun, 24 Sep 2006 09:12:11 +0200

 On Sat, Sep 23, 2006 at 06:22:55PM -0400, César Catrián Carreño wrote:
 > Fails to configure in my system with pcre installed.
 > It compiles fine without pcre installed.
 > checking for libpng >= 1.0.0... yes
 > checking LIBPNG_CFLAGS... -I/usr/pkg/include/libpng12  
 > checking LIBPNG_LIBS... -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lpng12  
 > checking for png.h... yes
 > checking for libpng/png.h... no
 > checking for png_create_info_struct in -lpng... no
 > configure: error: You need libpng to compile Links in graphics mode
 > *** Error code 1
 > Please test compiling again, with pcre installed, and original Makefile.
 Still can't reproduce:
 # pkg_info pcre
 Information for pcre-6.7:
 Perl Compatible Regular Expressions library
 Required by:
 PCRE is a Perl compatible library of regular expressions.  They
 are based on a completely separate code-base from Henry Spencers
 originals.  It has been designed to make efficient use of memory
 for compiled regex's.
 # cd /usr/pkgsrc/www/links
 # make
 => Required installed package digest>=20010302: digest-20060826 found
 ===> Checking for vulnerabilities in links-
 => Checksum SHA1 OK for links-2.1pre23.tar.bz2
 => Checksum RMD160 OK for links-2.1pre23.tar.bz2
 work.i386 -> /usr/obj/www/links/work.i386
 ===> Installing dependencies for links-
 The following variables will affect the build process of this package,
 links-  Their current value is shown below:
         * SSLBASE = /usr
         * SSLCERTS = /etc/openssl/certs
         * SSLDIR = /etc/openssl
         * SSLKEYS = /etc/openssl/private
 You may want to abort the process now with CTRL-C and change their value
 before continuing.  Be sure to run `/usr/bin/make clean' after
 the changes.
 ===> Overriding tools for links-
 ===> Extracting for links-
 ===> Patching for links-
 => Applying pkgsrc patches for links-
 ===> Creating toolchain wrappers for links-
 ===> Configuring for links-
 => Modifying GNU configure scripts to avoid --recheck
 => Replacing config-guess with pkgsrc versions
 => Replacing config-sub with pkgsrc versions
 creating cache ./config.cache
 checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
 checking whether build environment is sane... yes
 checking whether make sets ${MAKE}... yes
 checking for working aclocal... found
 checking for working autoconf... found
 checking for working automake... found
 checking for working autoheader... found
 checking for working makeinfo... missing
 checking for gcc... cc
 checking whether the C compiler (cc -O2 -I/usr/include -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib) works... yes
 checking whether the C compiler (cc -O2 -I/usr/include -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib) is a cross-compiler... no
 checking whether we are using GNU C... yes
 checking whether cc accepts -g... yes
 checking how to run the C preprocessor... cc -E
 checking for ANSI C header files... yes
 checking whether cc needs -traditional... no
 checking for EMX... no
 checking for typeof... yes
 checking for long long... yes
 checking for dirent.h that defines DIR... yes
 checking for opendir in -ldir... no
 checking for sys/wait.h that is POSIX.1 compatible... yes
 checking for fcntl.h... yes
 checking for limits.h... yes
 checking for sys/ioctl.h... yes
 checking for sys/time.h... yes
 checking for time.h... yes
 checking for unistd.h... yes
 checking for math.h... yes
 checking for ieee.h... no
 checking for endian.h... no
 checking for values.h... no
 checking for sigaction.h... no
 checking for netinet/in_systm.h... yes
 checking for netinet/in_system.h... no
 checking for netinet/ip.h... yes
 checking for netinet/dhcp.h... no
 checking for sys/select.h... yes
 checking for sys/resource.h... yes
 checking for sys/utsname.h... yes
 checking for sys/un.h... yes
 checking for sys/fmutex.h... no
 checking for sys/cygwin.h... no
 checking for io.h... no
 checking for setjmp.h... yes
 checking for langinfo.h... yes
 checking for md5.h... yes
 checking for working const... yes
 checking for inline... inline
 checking for size_t... yes
 checking whether time.h and sys/time.h may both be included... yes
 checking whether struct tm is in sys/time.h or time.h... time.h
 checking size of short... 2
 checking size of unsigned short... 2
 checking size of int... 4
 checking size of unsigned... 4
 checking size of long... 4
 checking size of unsigned long... 4
 checking for big endian... no
 checking for little endian... yes
 checking if rename can replace existing files... yes
 checking for 8-bit clean memcmp... yes
 checking return type of signal handlers... void
 checking for strftime... yes
 checking for vprintf... yes
 checking for calloc... yes
 checking for snprintf... yes
 checking for memmove... yes
 checking for raise... yes
 checking for gettimeofday... yes
 checking for mkdir... yes
 checking for select... yes
 checking for strcspn... yes
 checking for strerror... yes
 checking for strstr... yes
 checking for strtol... yes
 checking for strtoul... yes
 checking for strtoq... yes
 checking for strtoll... yes
 checking for chmod... yes
 checking for getpid... yes
 checking for setpgid... yes
 checking for popen... yes
 checking for uname... yes
 checking for getpagesize... yes
 checking for strptime... yes
 checking for setlocale... yes
 checking for nl_langinfo... yes
 checking for sigsetjmp/siglongjmp... yes
 checking for atan in -lm... yes
 checking for MD5Data in -lmd... no
 checking for MD5Init... yes
 checking for MD5Data... yes
 checking for socket... yes
 checking for setsockopt... yes
 checking for gethostbyname... yes
 checking for gethostbyaddr... yes
 checking for dhcp_option... no
 checking for herror... yes
 checking for cfmakeraw... yes
 checking for cygwin_conv_to_full_win32_path... no
 checking for requested debug level... 2
 checking if you want to enable javascript... yes
 checking if you want to link with system libfl... no
 checking for pkg-config... /usr/pkg/bin/pkg-config
 checking for libpcre... gnome-config: not found
 gnome-config: not found
 checking for pcre_compile in -lpcre... no
 checking for pcre.h... no
 checking for regcomp... yes
 checking for regex.h... yes
 checking if you want to use graphics... no
 checking for Gpm_Open in -lgpm... no
 checking for gpm.h... no
 checking for OS/2 threads... no
 checking for atheos/threads.h... no
 checking for spawn_thread... no
 checking for resume_thread... no
 checking for MouOpen... no
 checking for _read_kbd... no
 checking for XFree for OS/2... no
 checking for dlopen in -ldl... no
 checking for openssl... gnome-config: not found
 gnome-config: not found
 checking for OpenSSL... yes
 updating cache ./config.cache
 creating ./config.status
 creating Makefile
 creating config.h
 Configuration results:
 GPM support:            NO
 SSL support:            YES
 Javascript enabled:     YES
 Regular expressions:    LIBC
 Graphics enabled:       NO
 xterm for OS/2 support: NO
 ===> Building for links-
 cd . && autoheader
 WARNING: `autoheader' is missing on your system.  You should only need it if
          you modified `acconfig.h' or `'.  You might want
          to install the `Autoconf' and `GNU m4' packages.  Grab them
          from any GNU archive site.
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c af_unix.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c auth.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c beos.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c bfu.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c block.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c bookmarks.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c builtin.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c cache.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c charsets.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c connect.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c context.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c cookies.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c default.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c dip.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c directfb.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c dither.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c dns.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c drivers.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c error.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c file.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c finger.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c font_include.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c framebuffer.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c ftp.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c gif.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c html.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c html_gr.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c html_r.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c html_tbl.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c http.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c https.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c img.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c imgcache.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c ipret.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c javascr.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c javascript.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c jpeg.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c jsint.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c kbd.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c language.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c links_icon.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c listedit.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c lru.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c mailto.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c main.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c md5.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c md5hl.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c menu.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c memory.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c ns.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c objreq.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c os_dep.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c pmshell.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c png.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c pomocny.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c regexp.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c sched.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c select.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c session.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c smb.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c svgalib.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c terminal.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c tiff.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c types.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c url.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c view.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c view_gr.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c win32.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c x.c
 cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include -I/usr/local/include  -O2 -I/usr/include -c xbm.c
 cc  -O2 -I/usr/include -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/local/lib -o links  af_unix.o auth.o beos.o bfu.o block.o bookmarks.o  builtin.o cache.o charsets.o connect.o context.o cookies.o default.o  dip.o directfb.o dither.o dns.o drivers.o error.o file.o finger.o  font_include.o framebuffer.o ftp.o gif.o html.o html_gr.o html_r.o  html_tbl.o http.o https.o img.o imgcache.o ipret.o javascr.o  javascript.o jpeg.o jsint.o kbd.o language.o links_icon.o listedit.o  lru.o mailto.o main.o md5.o md5hl.o menu.o memory.o ns.o objreq.o  os_dep.o pmshell.o png.o pomocny.o regexp.o sched.o select.o session.o  smb.o svgalib.o terminal.o tiff.o types.o url.o view.o view_gr.o  win32.o x.o xbm.o  -lssl -lcrypto -lm
 session.o: In function `get_temp_name':
 session.c:(.text+0x52fd): warning: warning: tempnam() possibly used unsafely, use mkstemp() or mkdtemp()
 *** Please use pkgtools/verifypc to sanity check dependencies.
 => Unwrapping files-to-be-installed.
 Please take a look inside your config.h file, why png is not
 detected correctly (or send it to me if you can't find out).