Re: ports-mgmt/portmaster question

2008-12-28 Thread Matthew Seaman

Mel wrote:

On Wednesday 24 December 2008 03:35:07 Matthew Seaman wrote:

B. Cook wrote:

Is there a way to pass make args (other than -m) for each port?



...


If you want options that only apply to specific ports, then you can use
a construct like this:

.if ${.CURDIR:M*/databases/mysql*}
WITH_CHARSET=utf8
WITH_XCHARSET=none
WITH_COLLATION=utf8_unicode_ci
WITH_OPENSSL=yes
BUILD_OPTIMIZED=yes
WITH_INNODB=yes
WITH_ARCHIVE=yes
WITH_FEDERATED=yes
WITH_NDB=yes
WITH_CSV=yes
WITH_SPHINXSE=yes
.endif


Or, so you don't have one blobby make.conf that needs to be read for 
everything that uses FreeBSD's make, you can make a file called 
Makefile.local in the port's directory and set these.
There are only a few special cases in which this won't work, because it is 
included at the bottom of the port's Makefile, but then you can resort 
to /etc/make.conf.




Yep.  That's true.  Unfortunately though if you use freebsd-update to 
update your ports tree it will blow away any additional files like 
that.  csup(1) users will not have that problem.


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



signature.asc
Description: OpenPGP digital signature


Re: ports-mgmt/portmaster question

2008-12-28 Thread Matthew Seaman

Matthew Seaman wrote:

Mel wrote:

On Wednesday 24 December 2008 03:35:07 Matthew Seaman wrote:

B. Cook wrote:

Is there a way to pass make args (other than -m) for each port?



...


If you want options that only apply to specific ports, then you can use
a construct like this:

.if ${.CURDIR:M*/databases/mysql*}
WITH_CHARSET=utf8
WITH_XCHARSET=none
WITH_COLLATION=utf8_unicode_ci
WITH_OPENSSL=yes
BUILD_OPTIMIZED=yes
WITH_INNODB=yes
WITH_ARCHIVE=yes
WITH_FEDERATED=yes
WITH_NDB=yes
WITH_CSV=yes
WITH_SPHINXSE=yes
.endif


Or, so you don't have one blobby make.conf that needs to be read for 
everything that uses FreeBSD's make, you can make a file called 
Makefile.local in the port's directory and set these.
There are only a few special cases in which this won't work, because 
it is included at the bottom of the port's Makefile, but then you 
can resort to /etc/make.conf.




Yep.  That's true.  Unfortunately though if you use freebsd-update to 


Ooops portsnap

update your ports tree it will blow away any additional files like 
that.  csup(1) users will not have that problem.


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



signature.asc
Description: OpenPGP digital signature


Re: ports-mgmt/portmaster question

2008-12-28 Thread Sergey Kovalev

Matthew Seaman wrote:

Mel wrote:

On Wednesday 24 December 2008 03:35:07 Matthew Seaman wrote:

B. Cook wrote:

Is there a way to pass make args (other than -m) for each port?


If you want options that only apply to specific ports, then you can use
a construct like this:

.if ${.CURDIR:M*/databases/mysql*}
WITH_CHARSET=utf8
WITH_XCHARSET=none
WITH_COLLATION=utf8_unicode_ci
WITH_OPENSSL=yes
BUILD_OPTIMIZED=yes
WITH_INNODB=yes
WITH_ARCHIVE=yes
WITH_FEDERATED=yes
WITH_NDB=yes
WITH_CSV=yes
WITH_SPHINXSE=yes
.endif


Or, so you don't have one blobby make.conf that needs to be read for 
everything that uses FreeBSD's make, you can make a file called 
Makefile.local in the port's directory and set these.
There are only a few special cases in which this won't work, because 
it is included at the bottom of the port's Makefile, but then you 
can resort to /etc/make.conf.


Yep.  That's true.  Unfortunately though if you use freebsd-update to 
update your ports tree it will blow away any additional files like 
that.  csup(1) users will not have that problem.


There is also a nice port ports-mgmt/portconf which adds some snippet to
/etc/make.conf which allows you to add your options in a neat way to
/usr/local/etc/ports.conf.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


amarok install failure

2008-12-28 Thread Alain G. Fabry

During the installation of amarok, I get the following error, what is going 
wrong here.

gmake[5]: Entering directory 
`/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp'
/bin/sh /usr/local/bin/libtool --silent --tag=CXX   --mode=compile c++ 
-DHAVE_CONFIG_H -I. -I../../../.. -I../../../../amarok/src 
-I../../../../amarok/src -I../../../../amarok/src/amarokcore 
-I../../../../amarok/src/amarokcore -I../../../../amarok/src/engine 
-I../../../../amarok/src/engine -I../../../../amarok/src/mediadevice 
-I/usr/local/include/taglib   -I/usr/local/include  -I/usr/local/include  
-D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT   -I/usr/local/include 
-I/usr/local/include  -I/usr/local/include -D_GETOPT_H -D_THREAD_SAFE   
-Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -fno-strict-aliasing -pipe 
-Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common 
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT 
-DQT_NO_TRANSLATION  -MT mtpmediadevice.lo -MD -MP -MF .deps/mtpmediadevice.Tpo 
-c -o mtpmediadevice.lo mtpmediadevice.cpp
/usr/local/include/libmtp.h: In member function 'virtual MediaItem* 
MtpMediaDevice::copyTrackToDevice(const MetaBundle)':
/usr/local/include/libmtp.h:489: error: too many arguments to function 'int 
LIBMTP_Send_Track_From_File(LIBMTP_mtpdevice_t*, const char*, LIBMTP_track_t*, 
int (*)(uint64_t, uint64_t, const void*), const void*)'
mtpmediadevice.cpp:302: error: at this point in file
mtpmediadevice.cpp: In member function 'uint32_t 
MtpMediaDevice::getDefaultParentId()':
mtpmediadevice.cpp:383: warning: deprecated conversion from string constant to 
'char*'
/usr/local/include/libmtp.h: In member function 'LIBMTP_album_t* 
MtpMediaDevice::getOrCreateAlbum(QPtrListMediaItem*)':
/usr/local/include/libmtp.h:533: error: too many arguments to function 'int 
LIBMTP_Create_New_Album(LIBMTP_mtpdevice_t*, LIBMTP_album_t*)'
mtpmediadevice.cpp:532: error: at this point in file
/usr/local/include/libmtp.h: In member function 'uint32_t 
MtpMediaDevice::createFolder(const char*, uint32_t)':
/usr/local/include/libmtp.h:508: error: too few arguments to function 'uint32_t 
LIBMTP_Create_Folder(LIBMTP_mtpdevice_t*, char*, uint32_t, uint32_t)'
mtpmediadevice.cpp:611: error: at this point in file
/usr/local/include/libmtp.h: In member function 'void 
MtpMediaDevice::playlistFromItem(MtpMediaItem*)':
/usr/local/include/libmtp.h:521: error: too many arguments to function 'int 
LIBMTP_Create_New_Playlist(LIBMTP_mtpdevice_t*, LIBMTP_playlist_t*)'
mtpmediadevice.cpp:916: error: at this point in file
gmake[5]: *** [mtpmediadevice.lo] Error 1
gmake[5]: Leaving directory 
`/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory 
`/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory 
`/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.10'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/audio/amarok.
*** Error code 1

Stop in /usr/ports/audio/amarok.
*** Error code 1

Stop in /usr/ports/audio/amarok.


Thanks in advance,

Best wishes,

Alain
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: *.ko.symbols files in /boot/kernel

2008-12-28 Thread Wojciech Puchar

turn it off:

makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols


On Sun, 28 Dec 2008, Sergey Kovalev wrote:


I've decided to upgrade from 6.4-p1 to 7.1-RC2 on my home desktop pc.
Somewhat during this procedure triggered building and installing of 
*.ko.symbols and kernel.symbols files.

Here are my upgrade commands
cd /usr/src
env -i make buildworld
env -i make buildkernel KERNCONF=KOCA
env -i make installkernel KERNCONF=KOCA

After that I get errors because my / patrition is only 128M in size. And 
/boot/kernel gets filled with *.symbols files.

What could trigger their building and installation?

And how I should cleanly rebuild/reinstall kernel in this case without 
rebuilding the world. I know the right path to rebuild everything cleanly, 
but never faced such difficulties.


My /etc/make.conf: http://kovalev.com.ru/make.conf
My kernel config: http://kovalev.com.ru/KOCA

Please CC me cause I'm subscribed to the list.

PS I've mistyped address and first posted to freebsd-us...@freebsd.org. Sorry 
if I posted to the same list twice.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: *.ko.symbols files in /boot/kernel

2008-12-28 Thread Sergey Kovalev

Wojciech Puchar wrote:

turn it off:

makeoptions DEBUG=-g# Build kernel with gdb(1) debug 
symbols


Thank you. I just figured that out experimenatlly about an hour ago.
I was quite sure that this string was uncommented in my 6.4 KERNCONF and 
there were no any *.symbols there but I may be wrong of course.
Besides I was confused by the fact that it was uncommented in GENERIC 
and also missed the comment to DEBUG option firstly.



On Sun, 28 Dec 2008, Sergey Kovalev wrote:


I've decided to upgrade from 6.4-p1 to 7.1-RC2 on my home desktop pc.
Somewhat during this procedure triggered building and installing of 
*.ko.symbols and kernel.symbols files.

Here are my upgrade commands
cd /usr/src
env -i make buildworld
env -i make buildkernel KERNCONF=KOCA
env -i make installkernel KERNCONF=KOCA

After that I get errors because my / patrition is only 128M in size. 
And /boot/kernel gets filled with *.symbols files.

What could trigger their building and installation?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: strange fsck results

2008-12-28 Thread reese
I am running VMware Server 2.0 but see the same results with 
VMware Server 1.0.  The virtual machines are copies that I 
made by transferring the vmware files for it from another server. 
As far as I know it did not have any fsck problems on that machine 
but I don't have access to it any more.  I have noticed that there 
are a lot of failures (corrupted files) when moving VMware appliances with the 
use of USB memory sticks so I do test them right on the memory 
stick before I disconnect from the PC.

All the host OSs are Windows XP Professional using IDE ATA drives, current
hardware is an HP dx2450 AMD Phenom. but I saw the same errors on an Acer.

The files systems are:

# DeviceMountpoint  FStype  Options DumpPass#
/dev/ad0s1b noneswapsw  0   0
/dev/ad0s1a /   ufs rw  1   1
/dev/ad0s1e /usrufs rw  2   2
/dev/ad0s1d /varufs rw  2   2
/dev/acd0   /cdrom  cd9660  ro,noauto   0   0

Here is a bit from fsck of /var

hueysan_vm: {10} fsck /var
** /dev/ad0s1d (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE  I=190413  OWNER=root MODE=100644
SIZE=235 MTIME=Dec 27 12:23 2008
RECONNECT? no


CLEAR? no
...

I get about a dozen similar UNREF errors.


I am only worried about the errors if they might cause a problem 
with the use of the virtual server as a development server.  I have 
installed and have running apache, mysql, sendmail, samba, 
rsync, etc and they all seem to work fine.  I am planning on 
distributing copies of the virtual server to some others who are 
working on a project with me so I really only need to be 
fairly sure that no hidden gotchas are going to plague 
our efforts.  Having the virtual server setup is a BIG plus 
when collaborating with people who only have Windows 
PCs, before I had a central FreeBSD server for testing 
etc but that is so much slower then have a local development 
server.  Being able to just send off a memory stick with the 
VMserver and instructions is fantastic.


Thanks to all,
Charlie Reese


On 27 Dec 2008 at 11:00, Derek Ragona wrote:

 At 12:37 PM 12/26/2008, re...@adeptscience.com wrote:
 I am running FreeBSD 6.3 as a VMware virtual server and am getting some
 strange results when I run fsck.  When I run it in multi-user mode I get
 quite a few UNREF FILE errors but when I switch to single user mode
 fsck does not find any errors.  Is this something I need to worry about
 and if it is how might I try to get fsck to repair them?
 
 
 TIA
 Charlie Reese
 
 You need to give a bit more information:  Are you running your VM under esx 
 server or workstation?  What is your filesystem layout under freebsd.  What 
 is the underlying server and disks you are running vmware on?
 
  -Derek
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 
 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Having issues with the nvidia driver on my box

2008-12-28 Thread Marco Beishuizen
On Fri, 26 Dec 2008 18:14:38 +
af300...@gmail.com wrote:

 Hi,
 
 For several reasons, one of which was to use the nvidia driver for
 my board, I switched from amd64 to i386. So, I installed the driver
 and although things are working I'm getting this on console 0:
 
 NVRM: AGP cannot be enabled on this combination of the amd CPU and OS
 kernel NVRM: kernel upgrade recommended
 
 So, when I installed the nvidia driver I said to enable AGP.
 (Figuring only that this is an AGP board, why not?) My graphical
 environment works but I'd like to resolve this. Also, I think that
 some little quirks in my display can be attributed to this, but I'm
 not sure. Is there some sort of kernel option I must include and
 build my own kernel?
 
 Thanks,
 Andy
 
 ps in case it matters, my board is rather old. I purchased it 4
 years ago and as I'm not a gamer, it suffices quite nicely. Here's
 the driver I had to install for support of this chip:

Did you install the latest Nvidia driver? Perhaps your card isn't
supported anymore. Nvidia dropped some older chipsets in their latest
driver. You can try nvidia-driver-96xx or nvidia-driver-71xx in the
ports. I hope this helps.

regards
Marco

-- 
Economies of scale:
The notion that bigger is better.  In particular, that if you
want a certain amount of computer power, it is much better to buy one
biggie than a bunch of smallies.  Accepted as an article of
faith by people who love big machines and all that complexity.  Rejected
as an article of faith by those who love small machines and all
those limitations.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Check out my Facebook profile

2008-12-28 Thread Addy Polani
Hi questions,

I set up a Facebook profile where I can post my pictures, videos and events and 
I want to add you as a friend so you can see it. First, you need to join 
Facebook! Once you join, you can also create your own profile.

Thanks,
Addy

To sign up for Facebook, follow the link below:
http://www.facebook.com/p.php?i=751548058k=6YF3P3RZTW2M5CDFX1Z4YUr

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: nat and ipfw, port forwarding

2008-12-28 Thread usleepless
Hi Richard,

On Sun, Dec 28, 2008 at 2:30 AM, Richard Yang kusanagiy...@gmail.comwrote:

 thank you, usleep (nice name)i somehow made it work by
 1. add redirect_port udp 10.0.0.200:5 5 in natd.conf
 2. allow all traffic and diversion in ipfw.rules

 i tried to limit the traffic by modifying the rules in ipfw.rules,
 but unsuccessfully. so i just leave it be at this moment.
 i am very confused by the roles of natd and ipfw, and how they should work
 together.


As far as i understand it ( anyone please correct me if i am wrong ) :

There are two types of NAT in FreeBSD to choose from:

1. Natd, which is a userspace daemon. You need to include a divert rule in
your ipfw-config which looks like this:

#ipfw add 100 divert natd all from any to any via $oif ( $oif stands for
outside-interface )

After your packet has been diverted to natd, the NATed package is inserted
once again into the firewall to be checked again.

Port redirection etc is configured in natd.conf.

2. Kernel NAT, which is part of IPFW.

This is what i was referring to in my last message. You set it up through
rc.conf ( see man page ).

There is no need for a divert-rule.

Port redirection etc is configured with ipnat ( store your config in
/etc/ipnat.conf ).

And please, do not top-post.

regards,

usleep




 rich


 On Sat, Dec 27, 2008 at 8:40 AM, usleepl...@gmail.com wrote:

 Hi Ricard,

 On Fri, Dec 26, 2008 at 9:27 PM, Richard Yang kusanagiy...@gmail.comwrote:

 hi,
 i have a ssh machine behind a freebsd firewall with nat and ipfw.
 how do i make port forwarding so internet can access the ssh machine?
 thanx


 i think you need to configure /etc/ipnat.conf ( read 'man ipnat' ). this
 is a example definition:
 rdr em1 0.0.0.0/0 port 2223 - 192.168.1.96 port 22

 ( this redirects incoming traffic on outside-interface em1 port 2223 to an
 internal machine on port 22 )

 also, include firewall_nat_enable in your rc.conf ( read 'man rc.conf' )

 to configure the settings from ipnat.conf, run ipnat -C -f
 /etc/ipnat.conf

 regards,

 usleep






___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Open with O_APPEND fails

2008-12-28 Thread Mel
On Saturday 27 December 2008 21:06:58 Jonathan Chen wrote:
 On Sun, Dec 28, 2008 at 05:46:39AM +0100, Mitar wrote:
  Hi!
 
  On Sun, Dec 28, 2008 at 5:10 AM, Mel
 
  fbsd.questi...@rachie.is-a-geek.net wrote:
   open(2) will succeed but write(2) will fail with EBADF as documented
   (and I verified this behavior). Still no EACCES as you and the
   bugreporter are seeing.
 
  Where is documented that write would fail if file is opened only with
  O_APPEND?

Implicitly in write(2) manpage:
 The write(), writev(), pwrite() and pwritev() system calls will fail and
 the file pointer will remain unchanged if:

 [EBADF]The d argument is not a valid descriptor open for
writing.

  Just O_APPEND should also open file for writing as appending 
  is also writing. It cannot be used without write semantics so file
  has to be open also for writing.

 If I recall correctly, this behaviour has been standard on UNIX-like
 OS's for a *very* long time now. If you are seeing a write allowed
 with just O_APPEND on Linux, it would very likely be a Linux only
 feature.

Yup. Append is a bad english choice for the constant as it implies writes like 
you say, but really should be O_ATEND, because that's all that it does: seek 
to EOF.

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Unable to modify sysid with Fdisk

2008-12-28 Thread David Scialom
Hello,

It seems that it  is impossible to modify the sysid with fdisk since FreeBSD
6.2. I am actually using FreeBSD7.0.
When I want to modify my the sysid from 165(ufs) to 12(Fat32) i get the
message Geom not found: da0 and no change is made: da0 is stock with sysid
= 165. The detail are provided below. I tried also to do the same from the
install FreeBSD CD without success.

As someone a solution ?

Zurich# fdisk -u da0
*** Working on device /dev/da0 ***
parameters extracted from in-core disklabel are:
cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl)

Do you want to change our idea of what BIOS thinks ? [n]
*fdisk: invalid fdisk partition table found*
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 32, size 2066400 (1008 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1008/ head 63/ sector 32
Do you want to change it? [n] y
Supply a decimal value for sysid (165=FreeBSD) [165] 12
Supply a decimal value for start [32]
Susysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
start 32, size 2066400 (1008 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1008/ head 63/ sector 32
Are we happy with this entry? [n] y
The data for partition 2 is:
UNUSED
Do you want to change it? [n]
The data for partition 3 is:
UNUSED
Supply a decimal value for size [2066400]
Explicitly specify beg/end address ? [n]
sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
start 32, size 2066400 (1008 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1008/ head 63/ sector 32
Are we happy with this entry? [n] y
The data for partition 2 is:
UNUSED
Do you want to change it? [n]
The data for partition 3 is:
UNUSED
Do you want to change it? [n]
The data for partition 4 is:
UNUSED
Do you want to change it? [n]
Partition 1 is marked active
Do you want to change the active partition? [n] y
Supply a decimal value for active partition [1]
Are you happy with this choice [n] y

We haven't changed the partition table yet.  This is your last chance.
parameters extracted from in-core disklabel are:
cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl)

Information from DOS bootblock is:
1: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
start 32, size 2066400 (1008 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1008/ head 63/ sector 32
2: UNUSED
3: UNUSED
4: UNUSED
Should we write new partition table? [n] y
fdisk: Geom not found: da0
Zurich# fdisk da0
*** Working on device /dev/da0 ***
parameters extracted from in-core disklabel are:
cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl)

fdisk: invalid fdisk partition table found
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 32, size 2066400 (1008 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1008/ head 63/ sector 32
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSE
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: amarok install failure

2008-12-28 Thread Mel
On Sunday 28 December 2008 00:35:56 Alain G. Fabry wrote:
 During the installation of amarok, I get the following error, what is going
 wrong here.

 gmake[5]: Entering directory
 `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp'
 /bin/sh /usr/local/bin/libtool --silent --tag=CXX   --mode=compile c++
 -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../amarok/src
 -I../../../../amarok/src -I../../../../amarok/src/amarokcore
 -I../../../../amarok/src/amarokcore -I../../../../amarok/src/engine
 -I../../../../amarok/src/engine -I../../../../amarok/src/mediadevice
 -I/usr/local/include/taglib   -I/usr/local/include  -I/usr/local/include 
 -D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT   -I/usr/local/include
 -I/usr/local/include  -I/usr/local/include -D_GETOPT_H -D_THREAD_SAFE  
 -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -fno-strict-aliasing
 -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common
 -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
 -DQT_NO_TRANSLATION  -MT mtpmediadevice.lo -MD -MP -MF
 .deps/mtpmediadevice.Tpo -c -o mtpmediadevice.lo mtpmediadevice.cpp
 /usr/local/include/libmtp.h: In member function 'virtual MediaItem*
 MtpMediaDevice::copyTrackToDevice(const MetaBundle)':
 /usr/local/include/libmtp.h:489: error: too many arguments to function 'int
 LIBMTP_Send_Track_From_File(LIBMTP_mtpdevice_t*, const char*,
 LIBMTP_track_t*, int (*)(uint64_t, uint64_t, const void*), const void*)'
 mtpmediadevice.cpp:302: error: at this point in file
 mtpmediadevice.cpp: In member function 'uint32_t
 MtpMediaDevice::getDefaultParentId()': mtpmediadevice.cpp:383: warning:
 deprecated conversion from string constant to 'char*'
 /usr/local/include/libmtp.h: In member function 'LIBMTP_album_t*
 MtpMediaDevice::getOrCreateAlbum(QPtrListMediaItem*)':
 /usr/local/include/libmtp.h:533: error: too many arguments to function 'int
 LIBMTP_Create_New_Album(LIBMTP_mtpdevice_t*, LIBMTP_album_t*)'
 mtpmediadevice.cpp:532: error: at this point in file
 /usr/local/include/libmtp.h: In member function 'uint32_t
 MtpMediaDevice::createFolder(const char*, uint32_t)':
 /usr/local/include/libmtp.h:508: error: too few arguments to function
 'uint32_t LIBMTP_Create_Folder(LIBMTP_mtpdevice_t*, char*, uint32_t,
 uint32_t)' mtpmediadevice.cpp:611: error: at this point in file
 /usr/local/include/libmtp.h: In member function 'void
 MtpMediaDevice::playlistFromItem(MtpMediaItem*)':
 /usr/local/include/libmtp.h:521: error: too many arguments to function 'int
 LIBMTP_Create_New_Playlist(LIBMTP_mtpdevice_t*, LIBMTP_playlist_t*)'
 mtpmediadevice.cpp:916: error: at this point in file
 gmake[5]: *** [mtpmediadevice.lo] Error 1
 gmake[5]: Leaving directory
 `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp'
 gmake[4]: *** [all-recursive] Error 1
 gmake[4]: Leaving directory
 `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice'
 gmake[3]: *** [all-recursive] Error 1
 gmake[3]: Leaving directory
 `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src' gmake[2]: ***
 [all-recursive] Error 1
 gmake[2]: Leaving directory
 `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok' gmake[1]: ***
 [all-recursive] Error 1
 gmake[1]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.10'
 gmake: *** [all] Error 2
 *** Error code 2

This is a result of libmtp update. Either don't use libmtp, downgrade it to 
previous version 0.2.6 or add the patch below my sig 
as 
/usr/ports/audio/amarok/files/patch-amarok_src_mediadevice_mtp_mtpmediadevice.cpp

-- 
Mel

--- amarok/src/mediadevice/mtp/mtpmediadevice.cpp.orig  2008-08-13 
13:21:51.0 -0800
+++ amarok/src/mediadevice/mtp/mtpmediadevice.cpp   2008-12-28 
08:47:14.0 -0900
@@ -296,9 +296,10 @@
 
 m_critical_mutex.lock();
 debug()  Sending track...   bundle.url().path().utf8()  endl;
+trackmeta-parent_id = parent_id;
 int ret = LIBMTP_Send_Track_From_File(
 m_device, bundle.url().path().utf8(), trackmeta,
-progressCallback, this, parent_id
+progressCallback, this
 );
 m_critical_mutex.unlock();
 
@@ -529,7 +530,8 @@
 for( MtpMediaItem *it = dynamic_castMtpMediaItem*(items-first()); 
it; it = dynamic_castMtpMediaItem*(items-next()) )
 album_object-tracks[i++] = it-track()-id();
 album_object-no_tracks = items-count();
-ret = LIBMTP_Create_New_Album( m_device, album_object, 0 );
+   album_object-parent_id = 0;
+ret = LIBMTP_Create_New_Album( m_device, album_object);
 if( ret != 0 )
 {
 debug()  creating album failed :   ret  endl;
@@ -577,7 +579,7 @@
 {
 if( create )
 {
-check_folder = createFolder( (*it).utf8() , parent_id );
+check_folder = createFolder( (*it).utf8() , parent_id);
 if( check_folder == 0 )
 {
 m_critical_mutex.unlock();
@@ -608,7 +610,9 @@
 {
  

Re: disk error / reboot / 6.3

2008-12-28 Thread jerome
Hi Paul,

The patch worked (almost). 

At first a program accessing a disk that reported an uncorrectable error, the 
program just segfaulted.

Another instance let to the situation that I was only able to ping the server.
No ssh or console access was possible anymore.

-Pat
  _  

From: Paul B. Mahol [mailto:one...@gmail.com]
To: jerome [mailto:jer...@code-monkey.nl]
Cc: freebsd-questions@freebsd.org
Sent: Mon, 22 Dec 2008 13:15:12 +0100
Subject: Re: disk error / reboot / 6.3

On 12/22/08, jerome jer...@code-monkey.nl wrote:
   Hi Paul,
  
   The server resets while running, like pressing the reset button...
  
  Try this patch:
  
  --- src/sys/dev/ata/ata-queue.c 2008/10/27 09:26:24 1.74
  +++ src/sys/dev/ata/ata-queue.c 2008/11/27 03:37:46 1.75
  @@ -357,7 +357,7 @@ ata_completed(void *context, int dummy)
\6MEDIA_CHANGED\5NID_NOT_FOUND
\4MEDIA_CHANGE_REQEST
\3ABORTED\2NO_MEDIA\1ILLEGAL_LENGTH);
  -   if ((request-flags  ATA_R_DMA) 
  +   if ((request-flags  ATA_R_DMA)  request-dma 
  (request-dma-status  ATA_BMSTAT_ERROR))
  printf( dma=0x%02x, request-dma-status);
  if (!(request-flags  (ATA_R_ATAPI | ATA_R_CONTROL)))
  
  -- 
  Paul

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: disk error / reboot / 6.3

2008-12-28 Thread Paul B. Mahol
On 12/28/08, jerome jer...@code-monkey.nl wrote:
 Hi Paul,

 The patch worked (almost).

 At first a program accessing a disk that reported an uncorrectable error,
 the program just segfaulted.

 Another instance let to the situation that I was only able to ping the
 server.
 No ssh or console access was possible anymore.

That is somehow to be expected, the point of patch is to fix panic, not
trashing due to faulty disk/drivers/something else ...

-- 
Paul
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Unable to modify sysid with Fdisk

2008-12-28 Thread Tim

David Scialom wrote:

Hello,

It seems that it  is impossible to modify the sysid with fdisk since FreeBSD
6.2. I am actually using FreeBSD7.0.
When I want to modify my the sysid from 165(ufs) to 12(Fat32) i get the
message Geom not found: da0 and no change is made: da0 is stock with sysid
= 165. The detail are provided below. I tried also to do the same from the
install FreeBSD CD without success.

As someone a solution ?

Zurich# fdisk -u da0
*** Working on device /dev/da0 ***
parameters extracted from in-core disklabel are:
cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl)

Do you want to change our idea of what BIOS thinks ? [n]
*fdisk: invalid fdisk partition table found*
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 32, size 2066400 (1008 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1008/ head 63/ sector 32
Do you want to change it? [n] y
Supply a decimal value for sysid (165=FreeBSD) [165] 12
Supply a decimal value for start [32]
Susysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
start 32, size 2066400 (1008 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1008/ head 63/ sector 32
Are we happy with this entry? [n] y
The data for partition 2 is:
UNUSED
Do you want to change it? [n]
The data for partition 3 is:
UNUSED
Supply a decimal value for size [2066400]
Explicitly specify beg/end address ? [n]
sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
start 32, size 2066400 (1008 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1008/ head 63/ sector 32
Are we happy with this entry? [n] y
The data for partition 2 is:
UNUSED
Do you want to change it? [n]
The data for partition 3 is:
UNUSED
Do you want to change it? [n]
The data for partition 4 is:
UNUSED
Do you want to change it? [n]
Partition 1 is marked active
Do you want to change the active partition? [n] y
Supply a decimal value for active partition [1]
Are you happy with this choice [n] y

We haven't changed the partition table yet.  This is your last chance.
parameters extracted from in-core disklabel are:
cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl)

Information from DOS bootblock is:
1: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
start 32, size 2066400 (1008 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1008/ head 63/ sector 32
2: UNUSED
3: UNUSED
4: UNUSED
Should we write new partition table? [n] y
fdisk: Geom not found: da0
Zurich# fdisk da0
*** Working on device /dev/da0 ***
parameters extracted from in-core disklabel are:
cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=1009 heads=64 sectors/track=32 (2048 blks/cyl)

fdisk: invalid fdisk partition table found
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 32, size 2066400 (1008 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1008/ head 63/ sector 32
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSE
  


The Warning: Invalid fdisk partition table found is a red flag to me.  
If the partition boundries don't lie on a cylinder, than it's invalid.


I also see after it prints partition 3, it randomly asks for the size of 
the partition, without asking for anything else.


I think those first 512 sectors are messed up.  If I were you, I'd wipe 
the first 2 tracks of the disk.

dd if=/dev/zero bs=512 count=128 of=/dev/da0

And recreate the partition then.  fdisk isn't seeing a sane layout to 
begin with and it may silently be discarding the changes asked.


Good luck.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: amarok install failure

2008-12-28 Thread Gary Kline
On Sun, Dec 28, 2008 at 09:00:35AM -0900, Mel wrote:
 On Sunday 28 December 2008 00:35:56 Alain G. Fabry wrote:
  During the installation of amarok, I get the following error, what is going
  wrong here.
 
  gmake[5]: Entering directory
  `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp'
  /bin/sh /usr/local/bin/libtool --silent --tag=CXX   --mode=compile c++
  -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../amarok/src
  -I../../../../amarok/src -I../../../../amarok/src/amarokcore
  -I../../../../amarok/src/amarokcore -I../../../../amarok/src/engine
  -I../../../../amarok/src/engine -I../../../../amarok/src/mediadevice
  -I/usr/local/include/taglib   -I/usr/local/include  -I/usr/local/include 
  -D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT   -I/usr/local/include
  -I/usr/local/include  -I/usr/local/include -D_GETOPT_H -D_THREAD_SAFE  
  -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -fno-strict-aliasing
  -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common
  -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
  -DQT_NO_TRANSLATION  -MT mtpmediadevice.lo -MD -MP -MF
  .deps/mtpmediadevice.Tpo -c -o mtpmediadevice.lo mtpmediadevice.cpp
  /usr/local/include/libmtp.h: In member function 'virtual MediaItem*
  MtpMediaDevice::copyTrackToDevice(const MetaBundle)':
  /usr/local/include/libmtp.h:489: error: too many arguments to function 'int
  LIBMTP_Send_Track_From_File(LIBMTP_mtpdevice_t*, const char*,
  LIBMTP_track_t*, int (*)(uint64_t, uint64_t, const void*), const void*)'
  mtpmediadevice.cpp:302: error: at this point in file
  mtpmediadevice.cpp: In member function 'uint32_t
  MtpMediaDevice::getDefaultParentId()': mtpmediadevice.cpp:383: warning:
  deprecated conversion from string constant to 'char*'
  /usr/local/include/libmtp.h: In member function 'LIBMTP_album_t*
  MtpMediaDevice::getOrCreateAlbum(QPtrListMediaItem*)':
  /usr/local/include/libmtp.h:533: error: too many arguments to function 'int
  LIBMTP_Create_New_Album(LIBMTP_mtpdevice_t*, LIBMTP_album_t*)'
  mtpmediadevice.cpp:532: error: at this point in file
  /usr/local/include/libmtp.h: In member function 'uint32_t
  MtpMediaDevice::createFolder(const char*, uint32_t)':
  /usr/local/include/libmtp.h:508: error: too few arguments to function
  'uint32_t LIBMTP_Create_Folder(LIBMTP_mtpdevice_t*, char*, uint32_t,
  uint32_t)' mtpmediadevice.cpp:611: error: at this point in file
  /usr/local/include/libmtp.h: In member function 'void
  MtpMediaDevice::playlistFromItem(MtpMediaItem*)':
  /usr/local/include/libmtp.h:521: error: too many arguments to function 'int
  LIBMTP_Create_New_Playlist(LIBMTP_mtpdevice_t*, LIBMTP_playlist_t*)'
  mtpmediadevice.cpp:916: error: at this point in file
  gmake[5]: *** [mtpmediadevice.lo] Error 1
  gmake[5]: Leaving directory
  `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp'
  gmake[4]: *** [all-recursive] Error 1
  gmake[4]: Leaving directory
  `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice'
  gmake[3]: *** [all-recursive] Error 1
  gmake[3]: Leaving directory
  `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src' gmake[2]: ***
  [all-recursive] Error 1
  gmake[2]: Leaving directory
  `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok' gmake[1]: ***
  [all-recursive] Error 1
  gmake[1]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.10'
  gmake: *** [all] Error 2
  *** Error code 2
 
 This is a result of libmtp update. Either don't use libmtp, downgrade it to 
 previous version 0.2.6 or add the patch below my sig 
 as 
 /usr/ports/audio/amarok/files/patch-amarok_src_mediadevice_mtp_mtpmediadevice.cpp
 
 -- 
 Mel
 
 --- amarok/src/mediadevice/mtp/mtpmediadevice.cpp.orig2008-08-13 
 13:21:51.0 -0800
 +++ amarok/src/mediadevice/mtp/mtpmediadevice.cpp 2008-12-28 
 08:47:14.0 -0900
 @@ -296,9 +296,10 @@
  
  m_critical_mutex.lock();
  debug()  Sending track...   bundle.url().path().utf8()  endl;
 +trackmeta-parent_id = parent_id;
  int ret = LIBMTP_Send_Track_From_File(
  m_device, bundle.url().path().utf8(), trackmeta,
 -progressCallback, this, parent_id
 +progressCallback, this
  );
  m_critical_mutex.unlock();
  
 @@ -529,7 +530,8 @@
  for( MtpMediaItem *it = dynamic_castMtpMediaItem*(items-first()); 
 it; it = dynamic_castMtpMediaItem*(items-next()) )
  album_object-tracks[i++] = it-track()-id();
  album_object-no_tracks = items-count();
 -ret = LIBMTP_Create_New_Album( m_device, album_object, 0 );
 + album_object-parent_id = 0;
 +ret = LIBMTP_Create_New_Album( m_device, album_object);
  if( ret != 0 )
  {
  debug()  creating album failed :   ret  endl;
 @@ -577,7 +579,7 @@
  {
  if( create )
  {
 -check_folder = createFolder( (*it).utf8() , parent_id );
 +check_folder = createFolder( 

Re: amarok install failure

2008-12-28 Thread Roland Smith
On Sun, Dec 28, 2008 at 12:57:20PM -0800, Gary Kline wrote:
 On Sun, Dec 28, 2008 at 09:00:35AM -0900, Mel wrote:
  On Sunday 28 December 2008 00:35:56 Alain G. Fabry wrote:
[snip]
  This is a result of libmtp update. Either don't use libmtp, downgrade it to 
  previous version 0.2.6 or add the patch below my sig 
  as 
  /usr/ports/audio/amarok/files/patch-amarok_src_mediadevice_mtp_mtpmediadevice.cpp
[snip]
   Mel,
 
   amaroK is one of my favorites.  Any idea if/how soon your
   patch will be in ports?  ---It's been awhile since my last
   portupgrade and I'd hate to break this one, especially!

Just put the patch in the files subdirectory of the port, and set the
schg and sunlnk on that patch file with chflags(1). The patch then
cannot be overwritten or removed untill the flags are cleared.

I haven't tried it with csup, but portsnap can't remove the extra patch.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpDaEyTuPRN2.pgp
Description: PGP signature


Re: amarok install failure

2008-12-28 Thread Michael Landin Hostbaek



On 28 déc. 08, at 21:57, Gary Kline kl...@thought.org wrote:


On Sun, Dec 28, 2008 at 09:00:35AM -0900, Mel wrote:

On Sunday 28 December 2008 00:35:56 Alain G. Fabry wrote:
During the installation of amarok, I get the following error, what  
is going

wrong here.

gmake[5]: Entering directory
`/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/ 
mtp'
/bin/sh /usr/local/bin/libtool --silent --tag=CXX   --mode=compile  
c++

-DHAVE_CONFIG_H -I. -I../../../.. -I../../../../amarok/src
-I../../../../amarok/src -I../../../../amarok/src/amarokcore
-I../../../../amarok/src/amarokcore -I../../../../amarok/src/engine
-I../../../../amarok/src/engine -I../../../../amarok/src/mediadevice
-I/usr/local/include/taglib   -I/usr/local/include  -I/usr/local/ 
include

-D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT   -I/usr/local/include
-I/usr/local/include  -I/usr/local/include -D_GETOPT_H - 
D_THREAD_SAFE
-Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -fno-strict- 
aliasing
-pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno- 
common

-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION  -MT mtpmediadevice.lo -MD -MP -MF
.deps/mtpmediadevice.Tpo -c -o mtpmediadevice.lo mtpmediadevice.cpp
/usr/local/include/libmtp.h: In member function 'virtual MediaItem*
MtpMediaDevice::copyTrackToDevice(const MetaBundle)':
/usr/local/include/libmtp.h:489: error: too many arguments to  
function 'int

LIBMTP_Send_Track_From_File(LIBMTP_mtpdevice_t*, const char*,
LIBMTP_track_t*, int (*)(uint64_t, uint64_t, const void*), const  
void*)'

mtpmediadevice.cpp:302: error: at this point in file
mtpmediadevice.cpp: In member function 'uint32_t
MtpMediaDevice::getDefaultParentId()': mtpmediadevice.cpp:383:  
warning:

deprecated conversion from string constant to 'char*'
/usr/local/include/libmtp.h: In member function 'LIBMTP_album_t*
MtpMediaDevice::getOrCreateAlbum(QPtrListMediaItem*)':
/usr/local/include/libmtp.h:533: error: too many arguments to  
function 'int

LIBMTP_Create_New_Album(LIBMTP_mtpdevice_t*, LIBMTP_album_t*)'
mtpmediadevice.cpp:532: error: at this point in file
/usr/local/include/libmtp.h: In member function 'uint32_t
MtpMediaDevice::createFolder(const char*, uint32_t)':
/usr/local/include/libmtp.h:508: error: too few arguments to  
function

'uint32_t LIBMTP_Create_Folder(LIBMTP_mtpdevice_t*, char*, uint32_t,
uint32_t)' mtpmediadevice.cpp:611: error: at this point in file
/usr/local/include/libmtp.h: In member function 'void
MtpMediaDevice::playlistFromItem(MtpMediaItem*)':
/usr/local/include/libmtp.h:521: error: too many arguments to  
function 'int

LIBMTP_Create_New_Playlist(LIBMTP_mtpdevice_t*, LIBMTP_playlist_t*)'
mtpmediadevice.cpp:916: error: at this point in file
gmake[5]: *** [mtpmediadevice.lo] Error 1
gmake[5]: Leaving directory
`/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/ 
mtp'

gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory
`/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory
`/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src' gmake[2]:  
***

[all-recursive] Error 1
gmake[2]: Leaving directory
`/usr/ports/audio/amarok/work/amarok-1.4.10/amarok' gmake[1]: ***
[all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/audio/amarok/work/ 
amarok-1.4.10'

gmake: *** [all] Error 2
*** Error code 2


This is a result of libmtp update. Either don't use libmtp,  
downgrade it to

previous version 0.2.6 or add the patch below my sig
as /usr/ports/audio/amarok/files/patch- 
amarok_src_mediadevice_mtp_mtpmediadevice.cpp


--
Mel

--- amarok/src/mediadevice/mtp/mtpmediadevice.cpp.orig2008-08-13
13:21:51.0 -0800
+++ amarok/src/mediadevice/mtp/mtpmediadevice.cpp2008-12-28
08:47:14.0 -0900
@@ -296,9 +296,10 @@

m_critical_mutex.lock();
debug()  Sending track...   bundle.url().path().utf8()   
endl;

+trackmeta-parent_id = parent_id;
int ret = LIBMTP_Send_Track_From_File(
m_device, bundle.url().path().utf8(), trackmeta,
-progressCallback, this, parent_id
+progressCallback, this
);
m_critical_mutex.unlock();

@@ -529,7 +530,8 @@
for( MtpMediaItem *it = dynamic_castMtpMediaItem*(items- 
first());

it; it = dynamic_castMtpMediaItem*(items-next()) )
album_object-tracks[i++] = it-track()-id();
album_object-no_tracks = items-count();
-ret = LIBMTP_Create_New_Album( m_device, album_object, 0 );
+album_object-parent_id = 0;
+ret = LIBMTP_Create_New_Album( m_device, album_object);
if( ret != 0 )
{
debug()  creating album failed :   ret  endl;
@@ -577,7 +579,7 @@
{
if( create )
{
-check_folder = createFolder( (*it).utf8() ,  
parent_id );
+check_folder = createFolder( (*it).utf8() ,  
parent_id);

if( check_folder == 0 

Re: old flopy drive on parallel port

2008-12-28 Thread Warren Block

On Sat, 27 Dec 2008, Matthias Apitz wrote:


I've just thrown away an very old laptop which was running FreeBSD 2.2.5
in the mid of the 90's; this have had an external 3.5 inch floppy drive,
connected through a cable to the parallel port and this way fully supported,
even for the basic installation of FreeBSD which was based on making a
boot-able floppy; I saved this drive because I still have some old
floppies here around and at home no other drive to read them;


Support may have been through hardware on the laptop.  ISTR some old 
machines doing that: a special parallel-port floppy would be seen by the 
system, and the OS wouldn't know the difference.



My question is: can it be used / plug'eg in without any danger into to parallel
port of my actual laptop (Fujitsu Siemens) and is this somehow still supported
in FreeBSD 7.0 as well?


If it was hardware supported by the old laptop, it could do bad things 
to a current system.  Physical let the smoke out things.


External USB floppy drives are cheap, although I don't know how well 
they work with FreeBSD.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: amarok install failure

2008-12-28 Thread Gary Kline
On Mon, Dec 29, 2008 at 12:32:33AM +0100, Michael Landin Hostbaek wrote:
 
 
[[ egad ! ]]

 +int ret = LIBMTP_Create_New_Playlist( m_device, metadata);
 if( ret == 0 )
 {
 item-playlist()-setId( metadata-playlist_id );
 
 
Mel,
 
amaroK is one of my favorites.  Any idea if/how soon your
patch will be in ports?  ---It's been awhile since my last
portupgrade and I'd hate to break this one, especially!
 
 I will test tomorrow, and commit straight after if it does not break  
 anything.
 
 /mich


thanks, and thank you, roland.  i've fooled with chflags and
patches before--esp'ly on my own stuff ... well, since
hacking code in my fa--well my second-favorite activity.  but
if mich is going to do it, i'd breathe more easily.

gary

.LT. 24 da to go before the *DARKNESS* lifts.  ...hope i dont
get extraordinarily renditioned for mentioning that..


 
 
 
 
gary
 
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org 
 
 -- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public  
 Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.17a release of Jottings: http://jottings.thought.org/ 
 index.php

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.17a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


local copy of handbook

2008-12-28 Thread Masoom Shaikh
hello list,

in my previous FBSD installations i always had a local copy of handbook
never bothered how it got there, until now. i lost my installation due to
some good ups. reinstalled minimal 7.0 and build installed kernel  world

uname -a
FreeBSD raptor 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Wed Dec 17 13:27:42
UTC 2008 root@:/usr/obj/usr/src/sys/ARGON18  amd64

now i cannot see local copy of handbook, i had look at FreeBSD Documentation
Primer
but that seems overkill and geared towards contributing documentation
http://www.freebsd.org/doc/en/books/fdp-primer/

also I cud use tarballs from FTP, but is there easy way to install them ?
also csup didn't help here is my csup file

*default tag=RELENG_7
*default host=ftp2.tw.freebsd.org
*default prefix=/usr
*default base=/var/db
*default release=cvs delete use-rel-suffix compress
src-all
doc-all

csup updates the source each time, but now i am not sure about doc!!

hints and help ?

Masoom Shaikh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: amarok install failure

2008-12-28 Thread Masoom Shaikh
On Mon, Dec 29, 2008 at 2:27 AM, Gary Kline kl...@thought.org wrote:

 On Sun, Dec 28, 2008 at 09:00:35AM -0900, Mel wrote:
  On Sunday 28 December 2008 00:35:56 Alain G. Fabry wrote:
   During the installation of amarok, I get the following error, what is
 going
   wrong here.
  
   gmake[5]: Entering directory
   `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp'
   /bin/sh /usr/local/bin/libtool --silent --tag=CXX   --mode=compile c++
   -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../amarok/src
   -I../../../../amarok/src -I../../../../amarok/src/amarokcore
   -I../../../../amarok/src/amarokcore -I../../../../amarok/src/engine
   -I../../../../amarok/src/engine -I../../../../amarok/src/mediadevice
   -I/usr/local/include/taglib   -I/usr/local/include
  -I/usr/local/include
   -D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT   -I/usr/local/include
   -I/usr/local/include  -I/usr/local/include -D_GETOPT_H -D_THREAD_SAFE
   -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2
 -fno-strict-aliasing
   -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common
   -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
   -DQT_NO_TRANSLATION  -MT mtpmediadevice.lo -MD -MP -MF
   .deps/mtpmediadevice.Tpo -c -o mtpmediadevice.lo mtpmediadevice.cpp
   /usr/local/include/libmtp.h: In member function 'virtual MediaItem*
   MtpMediaDevice::copyTrackToDevice(const MetaBundle)':
   /usr/local/include/libmtp.h:489: error: too many arguments to function
 'int
   LIBMTP_Send_Track_From_File(LIBMTP_mtpdevice_t*, const char*,
   LIBMTP_track_t*, int (*)(uint64_t, uint64_t, const void*), const
 void*)'
   mtpmediadevice.cpp:302: error: at this point in file
   mtpmediadevice.cpp: In member function 'uint32_t
   MtpMediaDevice::getDefaultParentId()': mtpmediadevice.cpp:383: warning:
   deprecated conversion from string constant to 'char*'
   /usr/local/include/libmtp.h: In member function 'LIBMTP_album_t*
   MtpMediaDevice::getOrCreateAlbum(QPtrListMediaItem*)':
   /usr/local/include/libmtp.h:533: error: too many arguments to function
 'int
   LIBMTP_Create_New_Album(LIBMTP_mtpdevice_t*, LIBMTP_album_t*)'
   mtpmediadevice.cpp:532: error: at this point in file
   /usr/local/include/libmtp.h: In member function 'uint32_t
   MtpMediaDevice::createFolder(const char*, uint32_t)':
   /usr/local/include/libmtp.h:508: error: too few arguments to function
   'uint32_t LIBMTP_Create_Folder(LIBMTP_mtpdevice_t*, char*, uint32_t,
   uint32_t)' mtpmediadevice.cpp:611: error: at this point in file
   /usr/local/include/libmtp.h: In member function 'void
   MtpMediaDevice::playlistFromItem(MtpMediaItem*)':
   /usr/local/include/libmtp.h:521: error: too many arguments to function
 'int
   LIBMTP_Create_New_Playlist(LIBMTP_mtpdevice_t*, LIBMTP_playlist_t*)'
   mtpmediadevice.cpp:916: error: at this point in file
   gmake[5]: *** [mtpmediadevice.lo] Error 1
   gmake[5]: Leaving directory
   `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp'
   gmake[4]: *** [all-recursive] Error 1
   gmake[4]: Leaving directory
   `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice'
   gmake[3]: *** [all-recursive] Error 1
   gmake[3]: Leaving directory
   `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src' gmake[2]: ***
   [all-recursive] Error 1
   gmake[2]: Leaving directory
   `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok' gmake[1]: ***
   [all-recursive] Error 1
   gmake[1]: Leaving directory
 `/usr/ports/audio/amarok/work/amarok-1.4.10'
   gmake: *** [all] Error 2
   *** Error code 2
 
  This is a result of libmtp update. Either don't use libmtp, downgrade it
 to
  previous version 0.2.6 or add the patch below my sig
  as
 /usr/ports/audio/amarok/files/patch-amarok_src_mediadevice_mtp_mtpmediadevice.cpp
 
  --
  Mel
 
  --- amarok/src/mediadevice/mtp/mtpmediadevice.cpp.orig2008-08-13
  13:21:51.0 -0800
  +++ amarok/src/mediadevice/mtp/mtpmediadevice.cpp 2008-12-28
  08:47:14.0 -0900
  @@ -296,9 +296,10 @@
 
   m_critical_mutex.lock();
   debug()  Sending track...   bundle.url().path().utf8() 
 endl;
  +trackmeta-parent_id = parent_id;
   int ret = LIBMTP_Send_Track_From_File(
   m_device, bundle.url().path().utf8(), trackmeta,
  -progressCallback, this, parent_id
  +progressCallback, this
   );
   m_critical_mutex.unlock();
 
  @@ -529,7 +530,8 @@
   for( MtpMediaItem *it =
 dynamic_castMtpMediaItem*(items-first());
  it; it = dynamic_castMtpMediaItem*(items-next()) )
   album_object-tracks[i++] = it-track()-id();
   album_object-no_tracks = items-count();
  -ret = LIBMTP_Create_New_Album( m_device, album_object, 0 );
  + album_object-parent_id = 0;
  +ret = LIBMTP_Create_New_Album( m_device, album_object);
   if( ret != 0 )
   {
   debug()  creating album failed :   ret  endl;
  @@ -577,7 +579,7 @@
   {

Re: local copy of handbook

2008-12-28 Thread Fbsd1

Masoom Shaikh wrote:

hello list,

in my previous FBSD installations i always had a local copy of handbook
never bothered how it got there, until now. i lost my installation due to
some good ups. reinstalled minimal 7.0 and build installed kernel  world

uname -a
FreeBSD raptor 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Wed Dec 17 13:27:42
UTC 2008 root@:/usr/obj/usr/src/sys/ARGON18  amd64

now i cannot see local copy of handbook, i had look at FreeBSD Documentation
Primer
but that seems overkill and geared towards contributing documentation
http://www.freebsd.org/doc/en/books/fdp-primer/

also I cud use tarballs from FTP, but is there easy way to install them ?
also csup didn't help here is my csup file

*default tag=RELENG_7
*default host=ftp2.tw.freebsd.org
*default prefix=/usr
*default base=/var/db
*default release=cvs delete use-rel-suffix compress
src-all
doc-all

csup updates the source each time, but now i am not sure about doc!!

hints and help ?

Masoom Shaikh




Minimal install does not include the handbook.
Thats why its called a minimal install.

Normal install you get handbook.

The following link to the handbook's first page tell you where to ftp 
your copy from.


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: local copy of handbook

2008-12-28 Thread Gonzalo Nemmi
On Monday 29 December 2008 2:46:42 am Masoom Shaikh wrote:
 hello list,

 in my previous FBSD installations i always had a local copy of handbook
 never bothered how it got there, until now. i lost my installation due to
 some good ups. reinstalled minimal 7.0 and build installed kernel  world

 uname -a
 FreeBSD raptor 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Wed Dec 17
 13:27:42 UTC 2008 root@:/usr/obj/usr/src/sys/ARGON18  amd64

 now i cannot see local copy of handbook, i had look at FreeBSD
 Documentation Primer
 but that seems overkill and geared towards contributing documentation
 http://www.freebsd.org/doc/en/books/fdp-primer/

 also I cud use tarballs from FTP, but is there easy way to install them ?
 also csup didn't help here is my csup file

 *default tag=RELENG_7
 *default host=ftp2.tw.freebsd.org
 *default prefix=/usr
 *default base=/var/db
 *default release=cvs delete use-rel-suffix compress
 src-all
 doc-all

 csup updates the source each time, but now i am not sure about doc!!

 hints and help ?

 Masoom Shaikh
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org

sysinstall - Configure - Distributions - docs ?

Have fun :)
-- 
Blessings
Gonzalo Nemmi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


How process size is calculated? Is it always based on the current highest available address in memory space?

2008-12-28 Thread Yuri
malloc(3) can be controlled by MALLOC_OPTIONS to use mmap-based 
allocation as opposed to sbrk-based allocation.
But allocations/deallocations with mmaps can eventually lead to 
non-continuously mmapped memory (having some non-mmapped gaps).


Are  these gaps excluded from the process size or size is always linked 
to the current highest available address in memory space?


Yuri

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org