Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

freebsd-questions Digest, Vol 303, Issue 14

3 views
Skip to first unread message

freebsd-ques...@freebsd.org

unread,
Mar 28, 2010, 8:00:25 AM3/28/10
to freebsd-...@freebsd.org
Send freebsd-questions mailing list submissions to
freebsd-...@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
or, via email, send a message with subject or body 'help' to
freebsd-ques...@freebsd.org

You can reach the person managing the list at
freebsd-que...@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-questions digest..."


Today's Topics:

1. "internet connection tester script" (Jozsef Vadkan)
2. Re: "internet connection tester script" (Polytropon)
3. Re: "internet connection tester script" (Samuel Mart?n Moro)
4. Re: OT: Programming perl, BerkeleyDB/MLDBM (Randal L. Schwartz)
5. Enough Is Enough (Programmer In Training)
6. Re: Enough Is Enough (Tijl Coosemans)
7. Re: Enough Is Enough (Programmer In Training)
8. Re: Enough Is Enough (ill...@gmail.com)
9. Re: Enough Is Enough (Michael Powell)
10. Re: Enough Is Enough (Erik Trulsson)
11. Re: Enough Is Enough (Svein Skogen (Listmail Account))
12. Re: "internet connection tester script" (Kevin Kinsey)
13. Re: Question about expr (per...@pluto.rain.com)
14. Re: "internet connection tester script" (James)
15. Freebsd, postfix and push email (Ron (Lists))
16. Re: Freebsd, postfix and push email (Tim Judd)
17. Re: Freebsd, postfix and push email (per...@pluto.rain.com)
18. random FreeBSD panics (Masoom Shaikh)
19. How to mark an interace as 'down' at boot time? (Modulok)
20. Re: Freebsd, postfix and push email (Matthew Seaman)
21. Re: random FreeBSD panics (Ivan Voras)
22. Re: How to mark an interace as 'down' at boot time?
(Matthew Seaman)
23. Re: random FreeBSD panics (Masoom Shaikh)


----------------------------------------------------------------------

Message: 1
Date: Sat, 27 Mar 2010 13:07:14 +0100
From: Jozsef Vadkan <jozsi....@gmail.com>
Subject: "internet connection tester script"
To: FreeBSD Mailing list <freebsd-...@freebsd.org>
Message-ID: <1269691634.12702.11.camel@debian>
Content-Type: text/plain

Why doesn't my "internet-connection" script work?

When I plug the ethcable out, it just waits...and waits...and waits...

The script: http://pastebin.com/AE9U1qdL

------------------------------

Message: 2
Date: Sat, 27 Mar 2010 13:22:14 +0100
From: Polytropon <fre...@edvax.de>
Subject: Re: "internet connection tester script"
To: Jozsef Vadkan <jozsi....@gmail.com>
Cc: FreeBSD Mailing list <freebsd-...@freebsd.org>
Message-ID: <20100327132214....@edvax.de>
Content-Type: text/plain; charset=US-ASCII

On Sat, 27 Mar 2010 13:07:14 +0100, Jozsef Vadkan <jozsi....@gmail.com> wrote:
> Why doesn't my "internet-connection" script work?
>
> When I plug the ethcable out, it just waits...and waits...and waits...

It doesn't even work correctly: Now as I definitely have
Internet connection, it prints "NO INTERNET CONNECTION".

Allow me a comment:

#!/bin/bash

This is Linux. It is not portable. FreeBSD is NOT Linux.

In FreeBSD, the standard scripting shell is the Bourne
shell /bin/sh. Unless you don't require things that are
specific to bash, use the correct shebang for shm which is

#!/bin/sh

If you intendedly want to use bash, specify it correctly:

#!/usr/local/bin/bash

The bash is an additional package for FreeBSD, it does not
belong to the OS itself. It needs to be installed. Of
course, there's a way to make bash available as /bin/bash
statically linked, but with all thoughts to interoperability,
I wouldn't rely on this.

Let me bring the script into a more easily readable form
and allow me to say something about it:

#!/bin/sh

function internet_connection_ok
{
echo "Testing internet connection....please wait..."
if ping -W 1 -c 4 bix.hu | grep -q "4 received"; then
if ping -W 1 -c 4 www.yahoo.com | grep -q "4 received"; then
echo "NET is OK"
else
echo "NO INTERNET CONNECTION"
exit 1
fi
else
echo "NO INTERNET CONNECTION"
exit 1
fi
}

internet_connection_ok

Basically, you're relying on a 100 % correct reception of
pings from two specified host to see if Internet is up and
running. In case of package loss, even with running Internet
(e. g. 4 sent, 3 received), the script would say that there's
no Internet connection, which is false. Additionally, you're
giving only 1 ms for reply, which may not be enough for a
slow (but stable) connection. Finally, you're relying on
DNS to get the IPs to ping for bix.hu and www.yahoo.com.
I'm not sure if this resolve time is important here, too.


--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


------------------------------

Message: 3
Date: Sat, 27 Mar 2010 13:46:29 +0100
From: Samuel Mart?n Moro <fau...@gmail.com>
Subject: Re: "internet connection tester script"
To: Polytropon <fre...@edvax.de>
Cc: Jozsef Vadkan <jozsi....@gmail.com>, FreeBSD Mailing list
<freebsd-...@freebsd.org>
Message-ID:
<ce5f79aa1003270546s5a9...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

I prefer to use `host' command
ping take time to run, especially when it do not respond...

here's my script

root@omega ~ : cat /usr/local/bin/check_connectivity
13:43
#!/bin/sh
# checks local and internet connectivity
# faust - 2010/02/17

host google.com >/dev/null
if [ $? -eq 0 ];
then
net=1
echo "Internet connection is UP"
else
net=0
echo "Internet connection is DOWN"
fi
host alpha.faust-network >/dev/null
if [ $? -eq 0 ];
then
local=1
echo "Local network is UP"
else
local=0
echo "local network is DOWN"
fi
case `expr $local '*' 2 + $net` in
0) exit 2 ;; # big nothing
1) exit 42 ;; # just internet (uhu?)
2) exit 1 ;; # just local
3) exit 0 ;; # all right!
*) exit 43 ;; # divided by zero?
esac

Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S


On Sat, Mar 27, 2010 at 1:22 PM, Polytropon <fre...@edvax.de> wrote:

> On Sat, 27 Mar 2010 13:07:14 +0100, Jozsef Vadkan <jozsi....@gmail.com>
> wrote:
> > Why doesn't my "internet-connection" script work?
> >
> > When I plug the ethcable out, it just waits...and waits...and waits...
>
> It doesn't even work correctly: Now as I definitely have
> Internet connection, it prints "NO INTERNET CONNECTION".
>
> Allow me a comment:
>
> #!/bin/bash
>
> This is Linux. It is not portable. FreeBSD is NOT Linux.
>
> In FreeBSD, the standard scripting shell is the Bourne
> shell /bin/sh. Unless you don't require things that are
> specific to bash, use the correct shebang for shm which is
>
> #!/bin/sh
>
> If you intendedly want to use bash, specify it correctly:
>
> #!/usr/local/bin/bash
>
> The bash is an additional package for FreeBSD, it does not
> belong to the OS itself. It needs to be installed. Of
> course, there's a way to make bash available as /bin/bash
> statically linked, but with all thoughts to interoperability,
> I wouldn't rely on this.
>
> Let me bring the script into a more easily readable form
> and allow me to say something about it:
>
> #!/bin/sh
>
> function internet_connection_ok
> {
> echo "Testing internet connection....please wait..."
> if ping -W 1 -c 4 bix.hu | grep -q "4 received"; then
> if ping -W 1 -c 4 www.yahoo.com | grep -q "4 received";
> then
> echo "NET is OK"
> else
> echo "NO INTERNET CONNECTION"
> exit 1
> fi
> else
> echo "NO INTERNET CONNECTION"
> exit 1
> fi
> }
>
> internet_connection_ok
>
> Basically, you're relying on a 100 % correct reception of
> pings from two specified host to see if Internet is up and
> running. In case of package loss, even with running Internet
> (e. g. 4 sent, 3 received), the script would say that there's
> no Internet connection, which is false. Additionally, you're
> giving only 1 ms for reply, which may not be enough for a
> slow (but stable) connection. Finally, you're relying on
> DNS to get the IPs to ping for bix.hu and www.yahoo.com.
> I'm not sure if this resolve time is important here, too.
>
>
>
>
> --
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
> _______________________________________________
> freebsd-...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questi...@freebsd.org"
>


------------------------------

Message: 4
Date: Sat, 27 Mar 2010 05:55:17 -0700
From: mer...@stonehenge.com (Randal L. Schwartz)
Subject: Re: OT: Programming perl, BerkeleyDB/MLDBM
To: Erik Norgaard <norg...@locolomo.org>
Cc: ques...@freebsd.org
Message-ID: <86iq8hz...@blue.stonehenge.com>
Content-Type: text/plain; charset=us-ascii

>>>>> "Erik" == Erik Norgaard <norg...@locolomo.org> writes:

Erik> I have been searching for the appropriate perl mailing list,

Perl questions are best asked at perlmonks.org or Stack Overflow.

Or you can join the beginners list at http://lists.perl.org/ for ongoing
discussion and help by email if you prefer.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<mer...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion


------------------------------

Message: 5
Date: Sat, 27 Mar 2010 12:20:28 -0500
From: Programmer In Training <p...@joseph-a-nagy-jr.us>
Subject: Enough Is Enough
To: FreeBSD Questions <freebsd-...@freebsd.org>
Message-ID: <4BAE3E5C...@joseph-a-nagy-jr.us>
Content-Type: text/plain; charset="utf-8"

Ever since I installed jpeg-8 I have had nothing but problems.

I ran portupgrade -a hoping to take care of all those problems, well no
such luck.

Let's start with the first error I caught:

libqt
/usr/bin/ld: warning: libjpeg.so.10, needed by
/usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libqt-mt.so: undefined reference to
`jpeg_start_decompress@LIBJPEG_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to
`jpeg_resync_to_restart@LIBJPEG_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to
`jpeg_read_scanlines@LIBJPEG_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to
`jpeg_start_compress@LIBJPEG_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to
`jpeg_finish_compress@LIBJPEG_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to
`jpeg_finish_decompress@LIBJPEG_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to
`jpeg_CreateCompress@LIBJPEG_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to
`jpeg_set_defaults@LIBJPEG_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to
`jpeg_read_header@LIBJPEG_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to
`jpeg_CreateDecompress@LIBJPEG_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to
`jpeg_std_error@LIBJPEG_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to
`jpeg_destroy_compress@LIBJPEG_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to
`jpeg_destroy_decompress@LIBJPEG_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to
`jpeg_write_scanlines@LIBJPEG_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to
`jpeg_set_quality@LIBJPEG_7.0'
*** Error code 1

Stop in
/usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer/uic.
*** Error code 1

Stop in
/usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer/uic.
*** Error code 1

Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer.
*** Error code 1

Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools.
*** Error code 1

Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8.
*** Error code 1

Stop in /usr/ports/x11-toolkits/qt33.
*** Error code 1

Stop in /usr/ports/x11-toolkits/qt33.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade20100324-4351-6tihzj-0 env UPGRADE_TOOL=portupgrade
UPGRADE_PORT=qt-copy-3.3.8_10 UPGRADE_PORT_VER=3.3.8_10 make
** Fix the problem and try again.

The next error was for OOo (for which I need to follow the directions
and email the maintainer). After portupgrade -a reaches the end
(apparently, as it exits):

---> Skipping 'editors/openoffice.org-3' (openoffice.org-3.1.1) because
it has already failed
** Listing the failed packages (-:ignored / *:skipped / !:failed)
- textproc/docbook-xml-440 (docbook-xml-4.4_1)
- textproc/docbook-sk (docbook-sk-4.1.2_4)
! x11-toolkits/qt33 (qt-copy-3.3.8_10) (linker error)
* audio/arts (arts-1.5.10_2,1)
* devel/sdl12 (sdl-1.2.14,2)
* graphics/sdl_image (sdl_image-1.2.10)
- textproc/docbook-xml-430 (docbook-xml-4.3)
* multimedia/ffmpeg (ffmpeg-0.5_2,1)
* multimedia/vlc (vlc-1.0.5,3)
* graphics/gegl (gegl-0.0.22_6)
* graphics/gimp-app (gimp-app-2.6.8,1)
* graphics/py-gimp (py26-gimp-app-2.6.8)
* print/gimp-gutenprint (gimp-gutenprint-5.2.4)
* print/scribus (scribus-1.3.3.13_1)
* security/pinentry (pinentry-0.7.6_2)
* sysutils/k3b (k3b-1.0.5_2)
* multimedia/libxine (libxine-1.1.16.3_2)
* multimedia/phonon-xine (phonon-xine-4.3.1_3)
* games/gcompris (gcompris-8.4.12_3)
! editors/openoffice.org-3 (en-openoffice.org-US-3.1.1)
(configure error)
* editors/openoffice.org-3 (openoffice.org-3.1.1)


A good deal of these (including Scribus and GIMP and a few others I
believe) are from errors with my upgrading from jpeg-7 to jpeg-8.

I was ready for many, many days of compiling (mainly because of OOo).
Instead I'm lucky to go 36 hours total.

Why has upgrading my jpeg library completely BROKEN so many apps? I
cannot even start scribus now.

/libexec/ld-elf.so.1: Shared object "libjpeg.so.10" not found, required
by "scribus"

Enough is enough. I've been trying to fix this problem on my own and I
cannot. It is not from a lack of trying or looking to solve this issue.
--
Yours In Christ,

PIT
Emails are not formal business letters, whatever businesses may want.
Original content copyright under the OWL http://owl.apotheon.org
Please do not CC me. If I'm posting to a list it is because I am subscribed.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100327/b30e55b3/signature-0001.pgp

------------------------------

Message: 6
Date: Sat, 27 Mar 2010 19:06:23 +0100
From: Tijl Coosemans <ti...@coosemans.org>
Subject: Re: Enough Is Enough
To: Programmer In Training <p...@joseph-a-nagy-jr.us>
Cc: freebsd-...@freebsd.org
Message-ID: <20100327190...@coosemans.org>
Content-Type: text/plain; charset="iso-8859-15"

On Saturday 27 March 2010 18:20:28 Programmer In Training wrote:
> Ever since I installed jpeg-8 I have had nothing but problems.
>
> I ran portupgrade -a hoping to take care of all those problems, well
> no such luck.
>
> Let's start with the first error I caught:
>
> libqt
> /usr/bin/ld: warning: libjpeg.so.10, needed by
> /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link)
> /usr/local/lib/libqt-mt.so: undefined reference to
> `jpeg_start_decompress@LIBJPEG_7.0'
> /usr/local/lib/libqt-mt.so: undefined reference to
> `jpeg_resync_to_restart@LIBJPEG_7.0'
> /usr/local/lib/libqt-mt.so: undefined reference to
> `jpeg_read_scanlines@LIBJPEG_7.0'
> /usr/local/lib/libqt-mt.so: undefined reference to
> `jpeg_start_compress@LIBJPEG_7.0'
> /usr/local/lib/libqt-mt.so: undefined reference to
> `jpeg_finish_compress@LIBJPEG_7.0'
> /usr/local/lib/libqt-mt.so: undefined reference to
> `jpeg_finish_decompress@LIBJPEG_7.0'
> /usr/local/lib/libqt-mt.so: undefined reference to
> `jpeg_CreateCompress@LIBJPEG_7.0'
> /usr/local/lib/libqt-mt.so: undefined reference to
> `jpeg_set_defaults@LIBJPEG_7.0'
> /usr/local/lib/libqt-mt.so: undefined reference to
> `jpeg_read_header@LIBJPEG_7.0'
> /usr/local/lib/libqt-mt.so: undefined reference to
> `jpeg_CreateDecompress@LIBJPEG_7.0'
> /usr/local/lib/libqt-mt.so: undefined reference to
> `jpeg_std_error@LIBJPEG_7.0'
> /usr/local/lib/libqt-mt.so: undefined reference to
> `jpeg_destroy_compress@LIBJPEG_7.0'
> /usr/local/lib/libqt-mt.so: undefined reference to
> `jpeg_destroy_decompress@LIBJPEG_7.0'
> /usr/local/lib/libqt-mt.so: undefined reference to
> `jpeg_write_scanlines@LIBJPEG_7.0'
> /usr/local/lib/libqt-mt.so: undefined reference to
> `jpeg_set_quality@LIBJPEG_7.0'
> *** Error code 1
>
> Stop in
> /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer/uic.
> *** Error code 1
>
> Stop in
> /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer/uic.
> *** Error code 1
>
> Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer.
> *** Error code 1
>
> Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools.
> *** Error code 1
>
> Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8.
> *** Error code 1
>
> Stop in /usr/ports/x11-toolkits/qt33.
> *** Error code 1
>
> Stop in /usr/ports/x11-toolkits/qt33.
> ** Command failed [exit code 1]: /usr/bin/script -qa
> /tmp/portupgrade20100324-4351-6tihzj-0 env UPGRADE_TOOL=portupgrade
> UPGRADE_PORT=qt-copy-3.3.8_10 UPGRADE_PORT_VER=3.3.8_10 make
> ** Fix the problem and try again.
>
> The next error was for OOo (for which I need to follow the directions
> and email the maintainer). After portupgrade -a reaches the end
> (apparently, as it exits):
>
> ---> Skipping 'editors/openoffice.org-3' (openoffice.org-3.1.1) because
> it has already failed
> ** Listing the failed packages (-:ignored / *:skipped / !:failed)
> - textproc/docbook-xml-440 (docbook-xml-4.4_1)
> - textproc/docbook-sk (docbook-sk-4.1.2_4)
> ! x11-toolkits/qt33 (qt-copy-3.3.8_10) (linker error)
> * audio/arts (arts-1.5.10_2,1)
> * devel/sdl12 (sdl-1.2.14,2)
> * graphics/sdl_image (sdl_image-1.2.10)
> - textproc/docbook-xml-430 (docbook-xml-4.3)
> * multimedia/ffmpeg (ffmpeg-0.5_2,1)
> * multimedia/vlc (vlc-1.0.5,3)
> * graphics/gegl (gegl-0.0.22_6)
> * graphics/gimp-app (gimp-app-2.6.8,1)
> * graphics/py-gimp (py26-gimp-app-2.6.8)
> * print/gimp-gutenprint (gimp-gutenprint-5.2.4)
> * print/scribus (scribus-1.3.3.13_1)
> * security/pinentry (pinentry-0.7.6_2)
> * sysutils/k3b (k3b-1.0.5_2)
> * multimedia/libxine (libxine-1.1.16.3_2)
> * multimedia/phonon-xine (phonon-xine-4.3.1_3)
> * games/gcompris (gcompris-8.4.12_3)
> ! editors/openoffice.org-3 (en-openoffice.org-US-3.1.1)
> (configure error)
> * editors/openoffice.org-3 (openoffice.org-3.1.1)
>
>
> A good deal of these (including Scribus and GIMP and a few others I
> believe) are from errors with my upgrading from jpeg-7 to jpeg-8.
>
> I was ready for many, many days of compiling (mainly because of OOo).
> Instead I'm lucky to go 36 hours total.
>
> Why has upgrading my jpeg library completely BROKEN so many apps? I
> cannot even start scribus now.
>
> /libexec/ld-elf.so.1: Shared object "libjpeg.so.10" not found,
> required by "scribus"
>
> Enough is enough. I've been trying to fix this problem on my own and
> I cannot. It is not from a lack of trying or looking to solve this
> issue.

In /usr/ports/UPDATING look for the 20100205 entry for "users of Qt 3
and KDE 3".


------------------------------

Message: 7
Date: Sat, 27 Mar 2010 13:28:26 -0500
From: Programmer In Training <p...@joseph-a-nagy-jr.us>
Subject: Re: Enough Is Enough
To: freebsd-...@freebsd.org
Message-ID: <4BAE4E4A...@joseph-a-nagy-jr.us>
Content-Type: text/plain; charset="utf-8"

On 03/27/10 13:06, Tijl Coosemans wrote:
<snip>
> In /usr/ports/UPDATING look for the 20100205 entry for "users of Qt 3
> and KDE 3".

Pointless in as far as that does not address the underlying problem of
rebuilding EVERYTHING that needs to link against the jpeg library. GIMP
and gegl failed because a dependency for it is linked against jpeg-7 and
not jpeg-8.

If I cannot basically reinstall the entire system via portupgrade -a I'm
reduced to fixing the problem ad-hoc and that is unacceptable because
eventually I'll have to deal with programs that link to whatever just
got rebuilt. In essence, this is a problem that is not easily solved
just by reading /usr/ports/UPDATING for Qt because it involves more than
Qt (by the way, thanks for the hat tip on Qt, but it's not high on my
priority list for being fixed right now, GIMP, Scribus and possibly a
few other apps that I'm currently unaware of there being an issue with
ARE).

When jpeg-x (not a typo) is built, the port needs to be automatically
looking forward to see what all depends on it (and if anything depends
on that) and possibly asking the user if they want to upgrade all those
programs to ensure they link to the proper version of jpeg at all times.
Or they could all statically compile in jpeg support (as I assume FF
does because I can still see jpegs in the file upload preview pane) so
this is never an issue at all. I am currently able to manipulate any
jpeg at all (and now unable to use an increasing number of apps) which
is crippling my ability to edit images for any use.

I'm really loving FreeBSD, but I can no longer use The GIMP to open
JPEG's (and this is really the biggest issue I'm having as I need to be
able to edit jpeg's so I can continue on with designing the site on my
box, otherwise I will have to move back over to another computer (and
right now the only one available is running WinXP, something I'd rather
avoid using if I can), I cannot even launch Scribus (and a few other
apps whose names escape me at the moment). Other apps open but have
loads of errors regarding jpeg. I'm unable (as of about a month ago) to
install Filezilla because of this (it stopped launching when I upgraded
jpeg, so I uninstalled and reinstalled thinking that would work).

Every time I think I've tracked down the one other library or whatever
that something links against and needs jpeg, something new crops up and
stops me from building. Again.

Anyway, time I got off the comp. I'll be back later this evening to
finish this discussion.
--
Yours In Christ,

PIT
Emails are not formal business letters, whatever businesses may want.
Original content copyright under the OWL http://owl.apotheon.org
Please do not CC me. If I'm posting to a list it is because I am subscribed.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100327/bd53b643/signature-0001.pgp

------------------------------

Message: 8
Date: Sat, 27 Mar 2010 14:35:46 -0400
From: "ill...@gmail.com" <ill...@gmail.com>
Subject: Re: Enough Is Enough
To: Programmer In Training <p...@joseph-a-nagy-jr.us>
Cc: FreeBSD Questions <freebsd-...@freebsd.org>
Message-ID:
<d7195cff1003271135h75a...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On 27 March 2010 13:20, Programmer In Training <p...@joseph-a-nagy-jr.us> wrote:
> Ever since I installed jpeg-8 I have had nothing but problems.
>
> I ran portupgrade -a hoping to take care of all those problems, well no
> such luck.
>

portupgrade -fa

--
--


------------------------------

Message: 9
Date: Sat, 27 Mar 2010 14:59:23 -0400
From: Michael Powell <night...@hotmail.com>
Subject: Re: Enough Is Enough
To: freebsd-...@freebsd.org
Message-ID: <holkip$io6$1...@dough.gmane.org>
Content-Type: text/plain; charset="ISO-8859-1"

Programmer In Training wrote:
[snip]
>
> When jpeg-x (not a typo) is built, the port needs to be automatically
> looking forward to see what all depends on it (and if anything depends
> on that) and possibly asking the user if they want to upgrade all those
> programs to ensure they link to the proper version of jpeg at all times.
> Or they could all statically compile in jpeg support (as I assume FF
> does because I can still see jpegs in the file upload preview pane) so
> this is never an issue at all. I am currently able to manipulate any
> jpeg at all (and now unable to use an increasing number of apps) which
> is crippling my ability to edit images for any use.
>

So man portupgrade and see what the -r and -R switches do.

-Mike

------------------------------

Message: 10
Date: Sat, 27 Mar 2010 20:10:41 +0100
From: Erik Trulsson <ertr...@student.uu.se>
Subject: Re: Enough Is Enough
To: Programmer In Training <p...@joseph-a-nagy-jr.us>
Cc: freebsd-...@freebsd.org
Message-ID: <20100327191...@owl.midgard.homeip.net>
Content-Type: text/plain; charset=us-ascii

On Sat, Mar 27, 2010 at 01:28:26PM -0500, Programmer In Training wrote:
> On 03/27/10 13:06, Tijl Coosemans wrote:
> <snip>
> > In /usr/ports/UPDATING look for the 20100205 entry for "users of Qt 3
> > and KDE 3".
>
> Pointless in as far as that does not address the underlying problem of
> rebuilding EVERYTHING that needs to link against the jpeg library. GIMP
> and gegl failed because a dependency for it is linked against jpeg-7 and
> not jpeg-8.
>
> If I cannot basically reinstall the entire system via portupgrade -a I'm
> reduced to fixing the problem ad-hoc and that is unacceptable because
> eventually I'll have to deal with programs that link to whatever just
> got rebuilt. In essence, this is a problem that is not easily solved
> just by reading /usr/ports/UPDATING for Qt because it involves more than
> Qt (by the way, thanks for the hat tip on Qt, but it's not high on my
> priority list for being fixed right now, GIMP, Scribus and possibly a
> few other apps that I'm currently unaware of there being an issue with
> ARE).

So don't use portupgrade if doesn't do what is needed.

The simple solution is to *first* deinstall *all* ports (or at least
all ports that depend, directly or indirectly, on jpeg in this case)
and then reinstall them all. This might require a bit more manual
intervention than using portupgrade would have, but on the other hand
it is almost guaranteed to work correctly every time.

The problems you are running into is essentially due to trying to build
updated binaries while still having old binaries installed (and having
this trigger bugs in the build mechanism of various ports.)
If you first remove all the old binaries and then build new ones you
avoid many potential problems.

--
<Insert your favourite quote here.>
Erik Trulsson
ertr...@student.uu.se


------------------------------

Message: 11
Date: Sat, 27 Mar 2010 20:28:20 +0100
From: "Svein Skogen (Listmail Account)"
<svein-l...@stillbilde.net>
Subject: Re: Enough Is Enough
To: freebsd-...@freebsd.org
Message-ID: <4BAE5C54...@stillbilde.net>
Content-Type: text/plain; charset="iso-8859-1"

On 27.03.2010 20:10, Erik Trulsson wrote:
> On Sat, Mar 27, 2010 at 01:28:26PM -0500, Programmer In Training wrote:
>> On 03/27/10 13:06, Tijl Coosemans wrote:
>> <snip>
>>> In /usr/ports/UPDATING look for the 20100205 entry for "users of Qt 3
>>> and KDE 3".
>>
>> Pointless in as far as that does not address the underlying problem of
>> rebuilding EVERYTHING that needs to link against the jpeg library. GIMP
>> and gegl failed because a dependency for it is linked against jpeg-7 and
>> not jpeg-8.
>>
>> If I cannot basically reinstall the entire system via portupgrade -a I'm
>> reduced to fixing the problem ad-hoc and that is unacceptable because
>> eventually I'll have to deal with programs that link to whatever just
>> got rebuilt. In essence, this is a problem that is not easily solved
>> just by reading /usr/ports/UPDATING for Qt because it involves more than
>> Qt (by the way, thanks for the hat tip on Qt, but it's not high on my
>> priority list for being fixed right now, GIMP, Scribus and possibly a
>> few other apps that I'm currently unaware of there being an issue with
>> ARE).
>
> So don't use portupgrade if doesn't do what is needed.
>
> The simple solution is to *first* deinstall *all* ports (or at least
> all ports that depend, directly or indirectly, on jpeg in this case)
> and then reinstall them all. This might require a bit more manual
> intervention than using portupgrade would have, but on the other hand
> it is almost guaranteed to work correctly every time.
>
> The problems you are running into is essentially due to trying to build
> updated binaries while still having old binaries installed (and having
> this trigger bugs in the build mechanism of various ports.)
> If you first remove all the old binaries and then build new ones you
> avoid many potential problems.
>
>
>

portupgrade -afr jpeg-8

there, done.


//Svein

--
--------+-------------------+-------------------------------
/"\ |Svein Skogen | sv...@d80.iso100.no
\ / |Solberg Østli 9 | PGP Key: 0xE5E76831
X |2020 Skedsmokorset | sv...@jernhuset.no
/ \ |Norway | PGP Key: 0xCE96CE13
| | sv...@stillbilde.net
ascii | | PGP Key: 0x58CD33B6
ribbon |System Admin | svein-l...@stillbilde.net
Campaign|stillbilde.net | PGP Key: 0x22D494A4
+-------------------+-------------------------------
|msn messenger: | Mobile Phone: +47 907 03 575
|sv...@jernhuset.no | RIPE handle: SS16503-RIPE
--------+-------------------+-------------------------------
If you really are in a hurry, mail me at
svein-...@stillbilde.net
This mailbox goes directly to my cellphone and is checked
even when I'm not in front of my computer.
------------------------------------------------------------
Picture Gallery:
https://gallery.stillbilde.net/v/svein/
------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100327/d94b1192/signature-0001.pgp

------------------------------

Message: 12
Date: Sat, 27 Mar 2010 19:26:10 -0500
From: Kevin Kinsey <k...@daleco.biz>
Subject: Re: "internet connection tester script"
To: Jozsef Vadkan <jozsi....@gmail.com>
Cc: FreeBSD Mailing list <freebsd-...@freebsd.org>
Message-ID: <4BAEA222...@daleco.biz>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Jozsef Vadkan wrote:
> Why doesn't my "internet-connection" script work?
>
> When I plug the ethcable out, it just waits...and waits...and waits...
>
> The script: http://pastebin.com/AE9U1qdL

As someone has noted, you're waiting on ping to timeout a bunch
of times. And really, I'm not sure why this script is needed.
In ~/.cshrc:

alias up ping -t3 yahoo.com

... or something (your .bashrc equivalent, or .shrc, etc.)
should do the trick, with much less effort on all fronts.

HTH,

Kevin Kinsey


------------------------------

Message: 13
Date: Sat, 27 Mar 2010 17:34:11 -0700
From: per...@pluto.rain.com
Subject: Re: Question about expr
To: invalid...@gmail.com
Cc: freebsd-...@freebsd.org
Message-ID: <4baea403.db3mTX6TnpMaRd6O%per...@pluto.rain.com>
Content-Type: text/plain; charset=us-ascii

Manish Jain <invalid...@gmail.com> wrote:
> When you execute a script ... the aliases are
> ignored. Is there some way to fix this ...

Search for expand_aliases in the bash manpage.


------------------------------

Message: 14
Date: Sat, 27 Mar 2010 21:10:07 -0600
From: James <ja...@hicag.org>
Subject: Re: "internet connection tester script"
To: FreeBSD questions <FreeBSD-...@freebsd.org>
Message-ID:
<abd3d3c21003272010x6c...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

FWIW, here's what I use. Requires net/fping.

#!/bin/sh

target=ip.address.of.next.hop.out

echo "- Started at `date`"

is_dead=0
while true; do
fping -q $target
fping_rc=$?

if [ $is_dead -eq 0 -a $fping_rc -gt 0 ]; then
echo "! Failure at `date`"
is_dead=1
fi
if [ $is_dead -eq 1 -a $fping_rc -eq 0 ]; then
echo " Alive at `date`"
is_dead=0
fi

sleep 30
done

--
James.


------------------------------

Message: 15
Date: Sat, 27 Mar 2010 21:04:06 -0700
From: "Ron (Lists)" <rg.l...@rzweb.com>
Subject: Freebsd, postfix and push email
To: freebsd-...@freebsd.org
Message-ID: <4BAED536...@rzweb.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Is there a way to get my freebsd/postfix setup to send push notifications to an iPhone (I assume other smart phones work the same way). I've searched the web and I can't find any information about how to make this work. I know it can be done with Exchange and ActiveSync, but I don't want to run any kind of exchange server.

Thanks for any help, or even a point in the right direction.

Ron


------------------------------

Message: 16
Date: Sat, 27 Mar 2010 23:12:34 -0600
From: Tim Judd <taj...@gmail.com>
Subject: Re: Freebsd, postfix and push email
To: "Ron (Lists)" <rg.l...@rzweb.com>
Cc: freebsd-...@freebsd.org
Message-ID:
<ade45ae91003272212j297...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On 3/27/10, Ron (Lists) <rg.l...@rzweb.com> wrote:
> Is there a way to get my freebsd/postfix setup to send push notifications to
> an iPhone (I assume other smart phones work the same way). I've searched
> the web and I can't find any information about how to make this work. I
> know it can be done with Exchange and ActiveSync, but I don't want to run
> any kind of exchange server.
>
> Thanks for any help, or even a point in the right direction.
>
> Ron


Wouldn't push email be a function of your POP3 or IMAP server?
FreeBSD and Postfix are neither of those.


Check your incoming mail services, such as what serves your POP3 or IMAP.


Good luck.


------------------------------

Message: 17
Date: Sat, 27 Mar 2010 23:36:14 -0700
From: per...@pluto.rain.com
Subject: Re: Freebsd, postfix and push email
To: taj...@gmail.com
Cc: freebsd-...@freebsd.org, rg.l...@rzweb.com
Message-ID: <4baef8de.00G1oLWhtZbJ8Rwl%per...@pluto.rain.com>
Content-Type: text/plain; charset=us-ascii

Tim Judd <taj...@gmail.com> wrote:
> On 3/27/10, Ron (Lists) <rg.l...@rzweb.com> wrote:
> > Is there a way to get my freebsd/postfix setup to send push
> > notifications to an iPhone ... I know it can be done with
> > Exchange and ActiveSync, but I don't want to run any kind of
> > exchange server.
>
> Wouldn't push email be a function of your POP3 or IMAP server?
> FreeBSD and Postfix are neither of those.

Er, no. POP3 and IMAP are "pull" services, wherein the client
polls the server periodically for any newly-arrived messages.
A client-level "push" service would need to operate similarly
to biff(1)/comsat(8).


------------------------------

Message: 18
Date: Sun, 28 Mar 2010 08:28:29 +0000
From: Masoom Shaikh <masoom...@gmail.com>
Subject: random FreeBSD panics
To: freebsd...@freebsd.org, freebsd-questions
<freebsd-...@freebsd.org>
Message-ID:
<b10011eb1003280128k40...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello List,

I was a happy FreeBSD user, just before I installed FreeBSD8.0-RC1. Since
then, system randomly just freezes, and there is no option other than hard
boot. I guessed this will get solved in 8.0-RELEASE, but it was not :(

Many times I get vmcore files, not always. I have dumpdev set to AUTO in my
rc.conf. Almost every time it just fsck's the file-system on reboot. I have
not lost any files though. This is a Dell Inspiron 1525 Laptop with 1GB ram,
Intel Core2 Duo T5500 with ATI Radeon X1400 card. The installation in
question is KDE4 from ports, with radeon/ati driver.

I felt the problem is with wpi driver, then suspected dri driver of X. Then
I observed system freezes even if none of this is installed. e.g. if it is
under some load, like building a port and simultaneously fetching something
over network it hangs, and hangs hard. This persuaded me to think something
is wrong in kernel scheduling itself. May be it is lost in some deadlock,
etc... Thus last weekend I thought I would see how immediate previous
version i.e. FreeBSD-7.3-RELEASE would behave.

I reinstalled FreeBSD7.1 from iso images, svn up'ed FreeBSD7.3 source, did
the normal buildworld, buildkernel, installkernel, installworld cycle.
Unfortunatly this kernel is naughty as well ;-), it also freezes with same
stubbornness. But difference is this time I happen to catch something
interesting.

It panics on NMI, fatal trap 19 while in kernel mode. Loaded the vmcore file
in kgdb and got the backtrace. I obtained vmcore files on two occasions. I
have attached both the back traces. This error most likely suggests hardware
error in RAM, but Windox7 and XP boot just fine and never caused any errors.

To verify if I have errors in my RAM I let run sysutils/memtest86+
overnight, to double verify I also executed Windows Memory Diagnostic test
for four times. None of them reported errors. Can anyone here suggest any
solution.

Masoom Shaikh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vmcore0.log
Type: application/octet-stream
Size: 3304 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100328/9757d8bb/vmcore0-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vmcore1.log
Type: application/octet-stream
Size: 3346 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100328/9757d8bb/vmcore1-0001.obj

------------------------------

Message: 19
Date: Sun, 28 Mar 2010 02:51:50 -0600
From: Modulok <mod...@gmail.com>
Subject: How to mark an interace as 'down' at boot time?
To: FreeBSD Questions <freebsd-...@freebsd.org>
Message-ID:
<64c038661003280151q7b...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Trivial question,

Is there an rc.conf way to mark a network interface as being 'down' at
boot time? I could do it with a cron job, or a kernel rebuild, but I
thought there'd be some nifty rc.conf syntax. I tried this:

ifconfig_bge0="down"

The interface is marked as down in the dmesg output, but it's still up
when the boot cycle completes.
-Modulok-


------------------------------

Message: 20
Date: Sun, 28 Mar 2010 11:21:22 +0100
From: Matthew Seaman <m.se...@infracaninophile.co.uk>
Subject: Re: Freebsd, postfix and push email
To: "Ron (Lists)" <rg.l...@rzweb.com>
Cc: freebsd-...@freebsd.org
Message-ID: <4BAF2DA2...@infracaninophile.co.uk>
Content-Type: text/plain; charset=UTF-8

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 28/03/2010 05:04:06, Ron (Lists) wrote:
> Is there a way to get my freebsd/postfix setup to send push
> notifications to an iPhone (I assume other smart phones work the same
> way). I've searched the web and I can't find any information about how
> to make this work. I know it can be done with Exchange and ActiveSync,
> but I don't want to run any kind of exchange server.
>
> Thanks for any help, or even a point in the right direction.

Sounds like what you want is an e-mail to SMS gateway. There are
several scripts in the ports for generating SMSes from the command line,
which you should be able to make use of. You'll need to choose
something appropriate for your area.

Otherwise you're looking at proprietary software as used by the likes of
Blackberry.

Cheers,

Matthew

- --
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuvLaEACgkQ8Mjk52CukIzWsgCfcAoObsvsXslpdPdoSxeP5MSS
jeMAn3MrC0WlaeKxjDwBQax+VGww9ZSg
=gy88
-----END PGP SIGNATURE-----


------------------------------

Message: 21
Date: Sun, 28 Mar 2010 12:32:49 +0200
From: Ivan Voras <ivo...@freebsd.org>
Subject: Re: random FreeBSD panics
To: freebsd-...@freebsd.org
Cc: freebsd...@freebsd.org
Message-ID: <honb8m$ncu$1...@dough.gmane.org>
Content-Type: text/plain; charset=UTF-8; format=flowed

Masoom Shaikh wrote:
> Hello List,
>
> I was a happy FreeBSD user, just before I installed FreeBSD8.0-RC1. Since
> then, system randomly just freezes, and there is no option other than hard
> boot. I guessed this will get solved in 8.0-RELEASE, but it was not :(

I wild shot - did you try disabling superpages?

------------------------------

Message: 22
Date: Sun, 28 Mar 2010 11:33:25 +0100
From: Matthew Seaman <m.se...@infracaninophile.co.uk>
Subject: Re: How to mark an interace as 'down' at boot time?
To: Modulok <mod...@gmail.com>
Cc: FreeBSD Questions <freebsd-...@freebsd.org>
Message-ID: <4BAF3075...@infracaninophile.co.uk>
Content-Type: text/plain; charset=UTF-8

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 28/03/2010 09:51:50, Modulok wrote:
> Trivial question,
>
> Is there an rc.conf way to mark a network interface as being 'down' at
> boot time? I could do it with a cron job, or a kernel rebuild, but I
> thought there'd be some nifty rc.conf syntax. I tried this:
>
> ifconfig_bge0="down"
>
> The interface is marked as down in the dmesg output, but it's still up
> when the boot cycle completes.

Hmmm... normally, you'ld just leave any extra NICs unconfigured. Not
plugging a cable in generally makes the OS believe the NIC is down.

You can tell the OS the i/f shouldn't be configured by:

ifconfig_bge0="NOAUTO"

but that will probably still leave the i/f up if a cable is attached.

In this case, you could try using both of:

ifconfig_bge0="down"
ipv6_ifconfig_bge0="ifdisabled down"

(rc.conf syntax for IPv6 is different in CURRENT, but I assume you're
not using that.)

Cheers,

Matthew

- --
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuvMHUACgkQ8Mjk52CukIy8VQCfc3SscGvP7qiQX7bfcyzK2vGg
/bAAni5N/FRil82YtLcLPcf6CDuXcqiz
=vLKH
-----END PGP SIGNATURE-----


------------------------------

Message: 23
Date: Sun, 28 Mar 2010 11:18:59 +0000
From: Masoom Shaikh <masoom...@gmail.com>
Subject: Re: random FreeBSD panics
To: Ivan Voras <ivo...@freebsd.org>
Cc: freebsd...@freebsd.org, freebsd-...@freebsd.org
Message-ID:
<b10011eb1003280418l203...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Sun, Mar 28, 2010 at 10:32 AM, Ivan Voras <ivo...@freebsd.org> wrote:
> Masoom Shaikh wrote:
>>
>> Hello List,
>>
>> I was a happy FreeBSD user, just before I installed FreeBSD8.0-RC1. Since
>> then, system randomly just freezes, and there is no option other than hard
>> boot. I guessed this will get solved in 8.0-RELEASE, but it was not :(
>
> I wild shot - did you try disabling superpages?
>
> _______________________________________________
> freebsd-...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"
>

umm, how do I do that ?


------------------------------


End of freebsd-questions Digest, Vol 303, Issue 14
**************************************************

0 new messages