Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Jan 2015 13:50:54 +0000
Subject:   [Bug 195743] print/cups-base: undefined reference to `avahi_XXX`
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

--- Comment #12 from ---
A commit references this bug:

Author: bsam
Date: Sun Jan  4 13:50:42 UTC 2015
New revision: 376233

  print/cups-client via print/cups-base: treat avahi/dnssd explicitely

  1. The port's configure script is auto-detecting if avahi exists
  (unless avahi is explicitely disabled):
     9096 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno; then
     9097         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi"
     9098 $as_echo_n "checking for Avahi... " >&6; }
     9099         if $PKGCONFIG --exists avahi-client; then
     9100                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes"
     9101 $as_echo "yes" >&6; }

  So if avahi-lib is installed one get config.log:
  configure:9097: checking for Avahi
  configure:9100: result: yes
  #define HAVE_AVAHI 1

  And later avahi is used while building:
  Using LIBS=-lcups  -lssl -lcrypto -L/usr/local/lib -lavahi-common
-lavahi-client   -lz -pthread -lm -lcrypt   -lz

  Then print/cups-client installs libraries which are linked with avahi, ex.:
  % ldd | grep avahi
 => /usr/local/lib/
 => /usr/local/lib/

  Which leads to print/cups-base build failure (even if avahi is unset by
  Linking ippserver...
  cc -L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler
-L/usr/local/lib -Wl,-rpath,/usr/lib:/usr/local/lib -fstack-protector
-Wl,-R/usr/local/lib   -Wall -Wno-format-y2k -Wunused -fPIC -Os -g
-fstack-protector -Wno-tautological-compare -o ippserver ippserver.o 
../cups/libcups.a \
           -lssl -lcrypto -ldns_sd -pthread -lm -lcrypt   -lz -lz
  ../cups/libcups.a(http-support.o): In function `_httpResolveURI':

  Let's reflect this fact.

  2. Bump PORTREVISION for print/cups-client, it's default options and
  were changed.

  PR:        ports/195743
  Submitted by:    O. Hartmann <>
  Discussed at:    ports@
  Tested by:    O. Hartmann <>


You are receiving this mail because:
You are the assignee for the bug.

Want to link to this message? Use this URL: <>