--- ./Makefile.in.orig 2014-01-08 09:33:45.000000000 +0000 +++ ./Makefile.in 2014-01-22 20:28:18.950635134 +0000 @@ -511,7 +511,7 @@ @HPIJS_INSTALL_TRUE@@HPLIP_BUILD_TRUE@ $(am__DEPENDENCIES_1) hpijs_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(hpijs_CXXFLAGS) $(CXXFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ + $(AM_LDFLAGS) $(LDFLAGS) -Wl,--export-dynamic -o $@ am__hppgsz_SOURCES_DIST = prnt/hpijs/PrinterProperties.cpp \ prnt/hpijs/PrinterProperties.h prnt/hpijs/bug.h @FULL_BUILD_TRUE@@HPLIP_BUILD_TRUE@am_hppgsz_OBJECTS = hppgsz-PrinterProperties.$(OBJEXT) --- ./prnt/hpijs/hpijs.cpp.orig 2014-01-08 09:28:31.000000000 +0000 +++ ./prnt/hpijs/hpijs.cpp 2014-01-22 20:27:15.921633756 +0000 @@ -44,6 +44,9 @@ #include "services.h" #include "utils.h" +#undef stderr; +FILE *stderr; + extern void SendDbusMessage (const char *dev, const char *printer, int code, const char *username, const int jobid, const char *title); @@ -590,6 +593,7 @@ int ret, n, i, kn=0, width, k_width; char user_name[32]={0,}; + stderr = __stderrp; openlog("hpijs", LOG_PID, LOG_DAEMON); if (argc > 1)