I am having php code errors with my most recent post on installing and configuring HP Deskjet printers in Ubuntu 10.10 x64, searching online has lead me to believe that the page with the error has been hacked, as it is a .php file that is part of a plugin that has not been updated by me in several months. I’ll get it working here in a bit, but first I’ll need to modify some security on the website. Sorry for any inconveniences.

-Joel

**** Update ****
Ok, the issue was relatively simple, after checking the file in the error and not finding anything, I checked my page code and found a typo on one of the lines. After fixing the typo it resolved the issue, I even went to the home page for the plugin that was having the issue and found several users having this issue in the last month or so, kind of amusing…

Tagged with:
 

Let me start off by saying, “What a Mess!” About 2.5 weeks ago (probably 3 by the time I post this!) I bought an HP Deskjet 2050 printer at Walmart, it was cheap, had a flatbed scanner, came with “full” ink cartridges, and only a USB connection option. It was $49.00, $20 more than the printer that looked identical, but was not a flatbed scanner. I thought that HP of all companies would have linux support, even for newer model printers, oh there is support for it… If you can find it. (I’ll be putting up a separate post with plenty of links and re-written documentation for installing this and other HP printers in Ubuntu in the next week or two, kinda busy this weekend, so doubt it will get done before next week)

First thing I did was to go to HP’s website and download a driver, I wasn’t even going to fool with the included CD (actually not sure it even had one). I found it within a minute or two, all seemed good. Installed the driver and plugged the printer in, everything went fine. I believe I even printed something that day just clicked print and it spit right out! Well, next to happen was my wife is using my ChromeOS CR-48 netbook and wanted to print something, so I went to look into setting up Google Cloud Print. I figured, yeah cloud print, that should work… Google has two operating systems in their pockets and both are linux based, piece of cake to use cloud print with linux, right? wrong…

Google Cloud Print requires a Windows computer running the beta Google Chrome browser (or a Mac, but why would you want to use a Mac?) (an fyi, the Linux Chrome Browser only comes in Beta!), a bit confused and disappointed (happens a lot with Google these days), I thought, oh well, good thing I have 5 or 6 Windows Virtual Machines setup already! I popped onto a Win7 VM and setup Google Cloud Print and told my wife “Good to Go!” only took me 30-45 minutes to figure all that out and set it up (I forgot to share it with her gmail ID the first go round!).

Success! it printed!
I love first try attempts that work out great!

So next I had to fill out some paperwork for work and email it back, so I printed the pages that needed signing and filled them out, then tried scan them back in… the scanner would not scan (using simple scan) unless I unplugged the USB cable for 10 seconds or so, then plugged it back in… (more on that at the end of this post, I have a theory). Well after 3-5 pages of this over 1-2 hours, out of about 12 pages, popping the USB cable out stopped working. I wasn’t sure why it needed it in the first place, I had checked to make sure the printer was not attached to a VM at the time… So instead I tried setting it up to scan off the Win7 VM I was using for Cloud Printing (just a note, this was all happening maybe 4 days after the cloud print setup), the scanning application from HP worked fine until I was done. Weird though, again if I did not use the printer for an hour or two, or the VM was paused, or the screen saver came on, I had to unplug the USB cable again…

ok, so history done, up to my issue that started last night…

Actually the issue started on Saturday, but I was pre-occupied and didn’t really try too hard to get it resolved. My wife sent something to the printer from the netbook, I started up the VM for the Win7 Cloud Print, and it never printed. The first document just says “In Progress” and the date submitted was showing 3 days ago when I deleted it. I’ve powered off the Printer for 30+ minutes, I’ve rebooted my computer 4 times, leaving it powered off for about 8 hours once, popped the USB cable, nothing worked. I tried printing locally from Ubuntu and still nothing comes out, just says “Processing”. I did some digging online and found some “directions” for setting up the printer in linux, most of which was on HP’s website, and I never did any of it, including downloading the driver source files and doing a Build, Make, Install on them. So I started following the directions (did not build the driver, it seems to be installed and functioning, as Ubuntu can tell if it is plugged in or not and shows the correct device name), and found a huge list of dependencies that it says to install, I tried it and sure enough I did not have most of it installed on my system yet. About 78MB worth to be specific. I let it run, and noticed a new kernel was available, so I updated that while I was at it… 3 reboots later (not necessary, just kept trying to get things working) and I have no change in the current situation.

So, right now I have no working printer at all, not even scanning is working. It shows it is online, I have enabled it, shared it, allowed internet printing on it (none of which I did when I installed it, only did that after it stopped working).


Now, I’ve had some time to think about it, and I have been having USB issues with Ubuntu the entire time I’ve been running it. My USB webcam and Skype have fighting matches everytime I reboot my system, it never detects and adds the webcam as a valid hardware device, I have to manually configure the microphone each restart, and the video sometimes requires I unplug the webcam and then plug it back in and restart Skype. Other USB devices (I have a USB wireless headset and KB, external drives, my android phone), have all had issues that has required me to restart the computer or plug and unplug the device over and over several times.

This made me think I should run “lsusb -v” on my system to take a look at the devices that the system thinks I have. Well the command does nothing, it just hangs and never runs or finishes running, I have to kill the process AND the terminal window process to get it to stop. I missed this in the printer issue above, but I tried running the hp-setup app that came with the driver and it hangs on detecting the printer when I select USB as the connection type, as well.

So I have determined that the issue is with my Ubuntu installation and the USB service (this occurred to me actually right before I started typing this up). I have not yet started looking into the USB issue and will be doing so tonight. I’ll post a second post instead of updating this one with any results I find out, or if I nuke and reinstall… as a note if I do reinstall, it will not be Ubuntu 11. Also planning on typing up a how to properly install an HP printer on Ubuntu 10.10 x64 guide too.

Happy Birthday to me! Well, not really me… Today is the 1 year anniversary of the first post of http://joelperryproductions.com Wow, thank you web! I’ll give a few stats here, not super impressive, but considering I have not done any advertising, no marketing, and I don’t even have a sign on my car!

  • Total page views: 45,690
  • Total visitors: 20,481
  • Most visited post: Ubuntu 10.04 x64 and installing Appcelerator Titanium Desktop mobile device development environment – a how to – with 2,850 visitors
  • Most viewed post:
  • Most visitors per country: The United States with 6,528 (this was not always the case, the Russian Federation was #1 for the first 7 or 8 months)
  • Most simultaneous visitors: somewhere around 78 and it happened June 8th, 2010
  • Most visitors in a day: 118 on June 8th, 2010
  • Most visitors in a month: 2251 in June 2010
  • Most page views in a day: 985 on August 26th 2010
  • Most page views in a month: 5,862 in June 2010
  • Number of Posts on the website: 85 plus this one and two more in draft

Right so, I’ve been busy lately, got some really great new posts up, added the Android App section and learned a good bit of new things too! Most recently I completed a 4 part post about getting Appcelerator Titanium Developer installed and running on an Ubuntu 10.10 32-bit VMware Virtual machine, after a lot of work (and still more to come) plus 2 follow-up posts for resolving some errors and other issues while using it. I am happy to say it is fully functional and configured to test both desktop and Android mobile apps! I’ve resolved some issues that have been posted on the support forums since 2008 and still do not have instructions on how to resolve them posted, if any responses at all. I am ramping up to start java coding, I have some really big ideas and have already started assembling a development team to work on the app designs! I am hoping to get an Android App on the Market by the end of June, and maybe do a complete clean re-write for iOS by the holiday season or early 2012! I’ve also got some big personal news coming up here shortly, but no hints, sorry! I may get around to posting some more personal type things later this year (finally) and I have several new techno toys to get in trouble with this year as well!

If you have not noticed yet, I am very excited and definitely have my Mojo flowing!! I hope to wrap up my Titanium adventures early next week, and get some more Android app semi-reviews posted, I have about 8 more already rough drafted out on paper that I need to type in an polish up, not to mention another 250 apps that I have used that still need to be written up! AND I’ve added almost a dozen new apps to my phone in just the last 2 weeks! I really think this year will be a busy one, my goal is to get more than double the number of visitors this year! (should not be too hard if my Android project ends up with Dev support on this site, if all things go well I might be self hosting the website next year!)

If you think you have something interesting for me to check out, you can always put a comment on the newest of these welcome pages, I see everything that gets posted, so never fear I will (eventually!) read it… I’ll be happy to consider the idea and see if I can take a look and maybe write up a post on it.

Enjoy the site!

wow, so many issues, you’d not believe how many draft blog posts I have going while I try to resolve everything… In fact I have so many I can’t even tell which ones are related right now.

 

So, Today’s newest issue has actually been around for at least 3 weeks, I have noticed when I run portupgrade -ra that a very large number of errors fly by on my screen, all extremely similar and I think all during dependency builds for a single port that I have not captured the name of, but do I do know some of the culprits…

 

Now currently I cannot get a pretty scroll bar to limit the size of the “code” block so I’ll just leave it at the very bottom.  :)

It all seems to revolve around boost, python, and gcc 4.2.2.  I’ve been to /usr/ports/lang/gcc42 & /usr/ports/lang/gcc44 & /usr/ports/lang/gcc45  and ran a sudo make config in each location, all reported back nothing to configure.  I also went to /usr/ports/lang/python and did the same thing and got the same result and one more time for /usr/ports/devel/boost_build with the same results.  so I cannot figure out where the multi-thread checkbox was in the configure screen that I know I checked and I know showed up during a portupgrade I did some time ago and of course was before I started doing system backups.

 

I did the only thing else I could think of… I went to the gcc42 directory and ran sudo make config-recursive install clean and you know what? it did it, it did not tell me it was already installed, in fact it had to DL the gcc-core-4.2-20090325.tar.bz2 file to do the installation, so maybe the issue is that gcc was missing to begin with?

Now I did see some pretty wierd things go by my screen, like “craphunt” and “chamber” (pot?) and of course you can’t have unix without “dump” also saw what is definitely my favorite one “gimplify” tons of java stuff flew off my screen as well.

 

Well at the end it failed because a couple of dependencies failed to install, including gstreamer.  I tried to install gstreamer and it failed, I tried to force the install and it still failed.

 

 


from ./boost/python/tuple.hpp:8,
from libs/python/src/tuple.cpp:5:
/usr/local/include/python2.6/Python.h:168:17: error: pth.h: No such file or directory
libs/python/src/tuple.cpp: In static member function 'static boost::python::detail::new_reference_t* boost::python::detail::tuple_base::call(const boost::python::api::object&)':
libs/python/src/tuple.cpp:12: warning: dereferencing type-punned pointer will break strict-aliasing rules
"c++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG -I"." -I"/usr/local/include/python2.6" -c -o "bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/tuple.o" "libs/python/src/tuple.cpp"
...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/tuple.o...
..failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/pickle_support.o...
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/errors.o
In file included from ./boost/python/detail/wrap_python.hpp:142,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/errors.hpp:12,
from libs/python/src/errors.cpp:10:
/usr/local/include/python2.6/Python.h:168:17: error: pth.h: No such file or directory

"c++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG -I"." -I"/usr/local/include/python2.6" -c -o "bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/errors.o" "libs/python/src/errors.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/errors.o...

from libs/python/src/wrapper.cpp:5:
/usr/local/include/python2.6/Python.h:168:17: error: pth.h: No such file or directory

"c++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG -I"." -I"/usr/local/include/python2.6" -c -o "bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/wrapper.o" "libs/python/src/wrapper.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/wrapper.o...
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/import.o
In file included from ./boost/python/detail/wrap_python.hpp:142,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/ssize_t.hpp:9,
from ./boost/python/object.hpp:8,
from ./boost/python/import.hpp:8,
from libs/python/src/import.cpp:6:
/usr/local/include/python2.6/Python.h:168:17: error: pth.h: No such file or directory

"c++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG -I"." -I"/usr/local/include/python2.6" -c -o "bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/import.o" "libs/python/src/import.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/import.o...

t-aliasing rules

"c++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -DNDEBUG -I"." -I"/usr/local/include/python2.6" -c -o "bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/tuple.o" "libs/python/src/tuple.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/tuple.o...
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/str.o
In file included from ./boost/python/detail/wrap_python.hpp:142,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/str.hpp:8,
from libs/python/src/str.cpp:4:
/usr/local/include/python2.6/Python.h:168:17: error: pth.h: No such file or directory
libs/python/src/str.cpp: In static member function 'static boost::python::detail::new_reference_t* boost::python::detail::str_base::call(const boost::python::api::object&)':
libs/python/src/str.cpp:16: warning: dereferencing type-punned pointer will break strict-aliasing rules

"c++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -DNDEBUG -I"." -I"/usr/local/include/python2.6" -c -o "bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/str.o" "libs/python/src/str.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/str.o...

"c++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -DNDEBUG -I"." -I"/usr/local/include/python2.6" -c -o "bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object/inheritance.o" "libs/python/src/object/inheritance.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object/inheritance.o...
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object/life_support.o
In file included from ./boost/python/detail/wrap_python.hpp:142,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/object/life_support.hpp:7,
from libs/python/src/object/life_support.cpp:5:
/usr/local/include/python2.6/Python.h:168:17: error: pth.h: No such file or directory
libs/python/src/object/life_support.cpp: In function 'PyObject* boost::python::objects::make_nurse_and_patient(PyObject*, PyObject*)':
libs/python/src/object/life_support.cpp:94: warning: dereferencing type-punned pointer will break strict-aliasing rules
libs/python/src/object/life_support.cpp:96: warning: dereferencing type-punned pointer will break strict-aliasing rules

"c++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -DNDEBUG -I"." -I"/usr/local/include/python2.6" -c -o "bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object/life_support.o" "libs/python/src/object/life_support.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object/life_support.o...

from ./boost/python/detail/wrapper_base.hpp:7,
from ./boost/python/wrapper.hpp:7,
from libs/python/src/wrapper.cpp:5:
/usr/local/include/python2.6/Python.h:168:17: error: pth.h: No such file or directory

"c++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -DNDEBUG -I"." -I"/usr/local/include/python2.6" -c -o "bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/wrapper.o" "libs/python/src/wrapper.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/wrapper.o...
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/import.o
In file included from ./boost/python/detail/wrap_python.hpp:142,
from ./boost/python/detail/prefix.hpp:13,
from ./boost/python/ssize_t.hpp:9,
from ./boost/python/object.hpp:8,
from ./boost/python/import.hpp:8,
from libs/python/src/import.cpp:6:
/usr/local/include/python2.6/Python.h:168:17: error: pth.h: No such file or directory

"c++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -DNDEBUG -I"." -I"/usr/local/include/python2.6" -c -o "bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/import.o" "libs/python/src/import.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/import.o...

gnome@FreeBSD.org, and attach (a)
"/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.6.7/config.log",
(b) the output of the failed make command, and (c) the gnomelogalyzer output.
Also, it might be a good idea to provide an overview of all packages installed
on your system (i.e. an `ls /var/db/pkg`). Put your attachment up on any
website, copy-and-paste into http://freebsd-gnome.pastebin.com, or use
send-pr(1) with the attachment. Try to avoid sending any attachments to the
mailing list (gnome@FreeBSD.org), because attachments sent to FreeBSD mailing
lists are usually discarded by the mailing list software.
*** Error code 1

Stop in /usr/ports/devel/gobject-introspection.
*** Error code 1

Stop in /usr/ports/sysutils/polkit.
*** Error code 1

Stop in /usr/ports/devel/gconf2.
*** Error code 1

Stop in /usr/ports/devel/gconf2.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20100331-81619-37oww9-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=gconf2-2.26.2_1 UPGRADE_PORT_VER=2.26.2_1 make
** Fix the problem and try again.
---> Skipping 'devel/libgsf' (libgsf-1.14.15_1) because a requisite package 'gconf2-2.26.2_1' (devel/gconf2) failed (specify -k to force)
---> Upgrading 'gstreamer-0.10.24' to 'gstreamer-0.10.28' (multimedia/gstreamer)
---> Building '/usr/ports/multimedia/gstreamer'
===> Cleaning for gobject-introspection-0.6.7

Please run the gnomelogalyzer, available from
"http://www.freebsd.org/gnome/gnomelogalyzer.sh", which will diagnose the
problem and suggest a solution. If - and only if - the gnomelogalyzer cannot
solve the problem, report the build failure to the FreeBSD GNOME team at
gnome@FreeBSD.org, and attach (a)
"/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.6.7/config.log",
(b) the output of the failed make command, and (c) the gnomelogalyzer output.
Also, it might be a good idea to provide an overview of all packages installed
on your system (i.e. an `ls /var/db/pkg`). Put your attachment up on any
website, copy-and-paste into http://freebsd-gnome.pastebin.com, or use
send-pr(1) with the attachment. Try to avoid sending any attachments to the
mailing list (gnome@FreeBSD.org), because attachments sent to FreeBSD mailing
lists are usually discarded by the mailing list software.
*** Error code 1

Stop in /usr/ports/devel/gobject-introspection.
*** Error code 1

Stop in /usr/ports/multimedia/gstreamer.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20100331-81619-kpb867-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=gstreamer-0.10.24 UPGRADE_PORT_VER=0.10.24 make
** Fix the problem and try again.
---> Skipping 'x11/libxklavier' (libxklavier-3.9,1) because a requisite package 'iso-codes-3.10.3' (misc/iso-codes) failed (specify -k to force)
---> Skipping 'multimedia/gstreamer-plugins' (gstreamer-plugins-0.10.24,3) because a requisite package 'gstreamer-0.10.24' (multimedia/gstreamer) failed (specify -k to force)
---> Upgrading 'py26-libxml2-2.7.5' to 'py26-libxml2-2.7.6' (textproc/py-libxml2)
---> Building '/usr/ports/textproc/py-libxml2'
===> Cleaning for py26-libxml2-2.7.6

otypes -Wnested-externs -Winline -Wredundant-decls -MT types.lo -MD -MP -MF .deps/types.Tpo -c types.c -fPIC -DPIC -o .libs/types.o
./generator.py:27: DeprecationWarning: The xmllib module is obsolete. Use xml.sax instead.
import xmllib
In file included from /usr/local/include/python2.6/Python.h:86,
from libxml_wrap.h:1,
from types.c:9:
/usr/local/include/python2.6/intobject.h:45: warning: ISO C90 does not support 'long long'
In file included from /usr/local/include/python2.6/Python.h:88,
from libxml_wrap.h:1,
from types.c:9:
/usr/local/include/python2.6/longobject.h:47: warning: ISO C90 does not support 'long long'
/usr/local/include/python2.6/longobject.h:48: warning: ISO C90 does not support 'long long'
/usr/local/include/python2.6/longobject.h:49: warning: ISO C90 does not support 'long long'
/usr/local/include/python2.6/longobject.h:50: warning: ISO C90 does not support 'long long'
/usr/local/include/python2.6/longobject.h:51: warning: ISO C90 does not support 'long long'
In file included from libxml_wrap.h:1,
from types.c:9:
/usr/local/include/python2.6/Python.h:168:17: error: pth.h: No such file or directory
gmake[1]: *** [types.lo] Error 1
gmake[1]: *** Waiting for unfinished jobs....

 

 

 

 

14 visitors online now
1 guests, 13 bots, 0 members
Max visitors today: 22 at 12:58 pm PST
This month: 26 at 02-09-2012 11:53 am PST
This year: 29 at 01-11-2012 02:49 pm PST
All time: 1100 at 08-08-2011 08:11 pm PDT
View in: Mobile | Standard