niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » OpenBSD
Any non-GNU compilers? sick of GNU copylefts
Post new topic   Reply to topic Page 3 of 5 [71 Posts] View previous topic :: View next topic
Goto page:  Previous  1, 2, 3, 4, 5 Next
Author Message
Gregory Toomey
*nix forums Guru Wannabe


Joined: 26 Feb 2005
Posts: 152

PostPosted: Sun Feb 20, 2005 9:29 pm    Post subject: Re: Installation hangs Reply with quote

Madhusudan Singh wrote:

Quote:
Hi

I am trying to install OpenBSD 3.6 (no prior OpenBSD or BSD experience,
but
plenty of Linux experience) on a Dell Poweredge server (SC420).

I used ntrw.exe on a winxp platform to create a floppyb36.fs image and
booted with the floppy. The kernel loads with boot bsd (no bsd.rd file on
the floppy - just one boot file and one bsd file (using ls on boot
prompt).

Now the install complains that :

pciide0 : channel 1 ignored (not responding; disabled or drives ?)
pciide1 at pci0 at dev 31 function 2 vendor "Intel", unknown product
0x2652
rev 0x03 : DMA (unsupported), channel 0 configured to native-PCI, channel
1 configured to native-PCI

wd0 at pciide1 channel 0 drive 0 : <Maxtor 6Y160M0
....
....

....

rd0 : fixed, 3560 blocks

All the above is white text on a blue (selected style) background on a
dark screen.

The keyboard and everything appears to be dead as the three finger salute
does not work, though I do see messages like :

wskbd0 at pckbd0 : console keyboard, using wsdisplay0

I was under the impression that OpenBSD, a derivative of NetBSD, ran on
almost every platform. I have read about the reputation of OpenBSD
security, so naturally chose it over FreeBSD and Slackware (which I am a
lot more familiar with). Is my platform supported ? If not, should I try
FreeBSD 5.3 Release ?

Thanks.

I'm very surprised. I've run openbsd on various platforms and the basic
install works.

I always boot openbsd from a CD. You could try that.

gtoomey
Back to top
Madhusudan Singh
*nix forums Guru Wannabe


Joined: 01 Mar 2005
Posts: 128

PostPosted: Mon Feb 21, 2005 1:16 am    Post subject: Re: Installation hangs Reply with quote

Gregory Toomey wrote:

Quote:
Madhusudan Singh wrote:

Hi

I am trying to install OpenBSD 3.6 (no prior OpenBSD or BSD experience,
but
plenty of Linux experience) on a Dell Poweredge server (SC420).

I used ntrw.exe on a winxp platform to create a floppyb36.fs image and
booted with the floppy. The kernel loads with boot bsd (no bsd.rd file on
the floppy - just one boot file and one bsd file (using ls on boot
prompt).

Now the install complains that :

pciide0 : channel 1 ignored (not responding; disabled or drives ?)
pciide1 at pci0 at dev 31 function 2 vendor "Intel", unknown product
0x2652
rev 0x03 : DMA (unsupported), channel 0 configured to native-PCI, channel
1 configured to native-PCI

wd0 at pciide1 channel 0 drive 0 : <Maxtor 6Y160M0
....
....

....

rd0 : fixed, 3560 blocks

All the above is white text on a blue (selected style) background on a
dark screen.

The keyboard and everything appears to be dead as the three finger salute
does not work, though I do see messages like :

wskbd0 at pckbd0 : console keyboard, using wsdisplay0

I was under the impression that OpenBSD, a derivative of NetBSD, ran on
almost every platform. I have read about the reputation of OpenBSD
security, so naturally chose it over FreeBSD and Slackware (which I am a
lot more familiar with). Is my platform supported ? If not, should I try
FreeBSD 5.3 Release ?

Thanks.

I'm very surprised. I've run openbsd on various platforms and the basic
install works.

I always boot openbsd from a CD. You could try that.

gtoomey


I could not find any ISO images for OpenBSD. I imagine that this is done to
encourage people to buy the software.

At present, I am not certain I will stick to OpenBSD (just finished
installing FreeBSD on the server), so I wish to try it out first. I have
heard that OpenBSD is a lot more secure than FreeBSD, so I do want to try
it out.
Back to top
Gregory Toomey
*nix forums Guru Wannabe


Joined: 26 Feb 2005
Posts: 152

PostPosted: Mon Feb 21, 2005 2:01 am    Post subject: Re: Installation hangs Reply with quote

Madhusudan Singh wrote:

Quote:
Gregory Toomey wrote:

Madhusudan Singh wrote:

Hi

I am trying to install OpenBSD 3.6 (no prior OpenBSD or BSD experience,
but
plenty of Linux experience) on a Dell Poweredge server (SC420).

I used ntrw.exe on a winxp platform to create a floppyb36.fs image and
booted with the floppy. The kernel loads with boot bsd (no bsd.rd file
on the floppy - just one boot file and one bsd file (using ls on boot
prompt).

Now the install complains that :

pciide0 : channel 1 ignored (not responding; disabled or drives ?)
pciide1 at pci0 at dev 31 function 2 vendor "Intel", unknown product
0x2652
rev 0x03 : DMA (unsupported), channel 0 configured to native-PCI,
channel 1 configured to native-PCI

wd0 at pciide1 channel 0 drive 0 : <Maxtor 6Y160M0
....
....

....

rd0 : fixed, 3560 blocks

All the above is white text on a blue (selected style) background on a
dark screen.

The keyboard and everything appears to be dead as the three finger
salute does not work, though I do see messages like :

wskbd0 at pckbd0 : console keyboard, using wsdisplay0

I was under the impression that OpenBSD, a derivative of NetBSD, ran on
almost every platform. I have read about the reputation of OpenBSD
security, so naturally chose it over FreeBSD and Slackware (which I am a
lot more familiar with). Is my platform supported ? If not, should I try
FreeBSD 5.3 Release ?

Thanks.

I'm very surprised. I've run openbsd on various platforms and the basic
install works.

I always boot openbsd from a CD. You could try that.

gtoomey


I could not find any ISO images for OpenBSD. I imagine that this is done
to encourage people to buy the software.

At present, I am not certain I will stick to OpenBSD (just finished
installing FreeBSD on the server), so I wish to try it out first. I have
heard that OpenBSD is a lot more secure than FreeBSD, so I do want to try
it out.

Its actually very simple to install. I've got my 83 year old mother using it!
----------------
Make 2 cds from the mirrors from http://www.openbsd.org/ftp.html#ftp

cd 1 - iso
eg ftp://openbsd.informatik.uni-erlangen.de/pub/OpenBSD/3.6/i386/cd36.iso


cd 2: - regular data cd
copy *tgz from
ftp://openbsd.informatik.uni-erlangen.de/pub/OpenBSD/3.6/i386/
--------------------
Basic setup

Gateway: /etc/mygate:
99.99.99.99

dns server: /etc/resolv.conf
domain site
nameserver 99.99.99.99

NIC: for a realtek 8139: /etc/hostname.rl0
inet 99.99.99.99 255.255.255.0 99.99.99.99

config X:
x686cfg

kde:
pkg_add -v ftp://openbsd.informatik.uni-erlangen.de/pub/OpenBSD/3.6/packages/i386/kdebase-3.2.3.tgz
startkde


gtoomey
Back to top
Vlad
*nix forums beginner


Joined: 01 Mar 2005
Posts: 26

PostPosted: Mon Feb 21, 2005 8:56 am    Post subject: Re: Any non-GNU compilers? sick of GNU copylefts Reply with quote

Ryoko <ryoko-nsp@nsp-talk21.com> wrote in message news:<ryoko-nsp-86605D.17563419022005@news.dial.pipex.com>...
Quote:
In article <8771330c.0502170525.4540cfa4@posting.google.com>,
linux62i@yahoo.com (Vlad) wrote:

Compiling comercial products statically and selling them is prohibited
due to
GPL/LGPL - the only possibility is to distribute libstdc++,libgcc...
with the libs source code and link everything dynamically.

Doesn't appear to be the case with libstdc++
http://gcc.gnu.org/onlinedocs/libstdc++/17_intro/license.html
the above url seems to indicate that you can statically link libstdc++
without requiring to release your source.
It also highlights that libstdc++ v3 does not use the LGPL, it is the
GPL with a runtime exception.
with C libs you could supply the object files to allow relinking ...

R.

ldd /usr/lib/libstdc++.so

* linux-gate.so.1 => (0xffffe000)
libm.so.6 => /lib/tls/libm.so.6 (0x400c7000)
* libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x400eb000)
libc.so.6 => /lib/tls/libc.so.6 (0x400f3000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

man g++:

--

There are several situations in which an application should
use the shared
libgcc instead of the static version. The most common of
these is when the
application wishes to throw and catch exceptions across
different shared
libraries. In that case, each of the libraries as well as
the application
itself should use the shared libgcc.

Therefore, the G++ and GCJ drivers automatically add
-shared-libgcc whenever
you build a shared library or a main executable, because
C++ and Java programs
typically use exceptions, so this is the right thing to do.

---

So even if I compile libstdc++ statically and forget about exceptions
what about libgcc_s?

I think this is the biggest nightmare for C++ developers. Worse can be
only
100 miles GNOME library chain. May be switch to Tcl and Ruby :)

greetings,
Vlad.
Back to top
Madhusudan Singh
*nix forums Guru Wannabe


Joined: 01 Mar 2005
Posts: 128

PostPosted: Mon Feb 21, 2005 2:55 pm    Post subject: Re: Installation hangs Reply with quote

Gregory Toomey wrote:

Quote:

Its actually very simple to install. I've got my 83 year old mother using
it! ----------------

I do not doubt that, but I have to get the installation program working
first :)

Quote:
Make 2 cds from the mirrors from http://www.openbsd.org/ftp.html#ftp

cd 1 - iso
eg ftp://openbsd.informatik.uni-erlangen.de/pub/OpenBSD/3.6/i386/cd36.iso


cd 2: - regular data cd
copy *tgz from
ftp://openbsd.informatik.uni-erlangen.de/pub/OpenBSD/3.6/i386/

I thought I could install over ftp. The server in question has a DHCP
connection over ethernet. As soon as the OS is installed and I configure
apache and plone, I will move it to a static IP setup with a dedicated
FQDN.

I hope it is easy to change from a DHCP setup to a fixed IP setup.

Quote:
--------------------
Basic setup

Gateway: /etc/mygate:
99.99.99.99


Aha.

Quote:
dns server: /etc/resolv.conf
domain site
nameserver 99.99.99.99

NIC: for a realtek 8139: /etc/hostname.rl0
inet 99.99.99.99 255.255.255.0 99.99.99.99

config X:
x686cfg

kde:
pkg_add -v

ftp://openbsd.informatik.uni-erlangen.de/pub/OpenBSD/3.6/packages/i386/kdebase-3.2.3.tgz
startkde


I do not think I will need X or KDE.
Back to top
John Smith
*nix forums Guru


Joined: 15 Oct 2003
Posts: 561

PostPosted: Mon Feb 21, 2005 4:53 pm    Post subject: Re: Any non-GNU compilers? sick of GNU copylefts Reply with quote

Quote:
"How to mix C and C++"
http://www.inf.uni-konstanz.de/~kuehl/c++-faq/mixing-c-and-cpp.html


Thanks but it doesn't tell me anything new.
It says if you use C++ you must use the C++ related linker. In my case g++
as ld frontend driver. Also you need compatible compiler versions.

Lets say you have a C program compiled with gcc v2.95.x. Can you assume it
will link with other code compiled with gcc or g++ v3.3?
I assume not because I think the ABI was changed between 2.9.x and 3.x.
So how about C code compiled with gcc 3.1 and linked with 3.4?
Likewise what would happen if you used 3.1 and 3.4 of g++ for C++ code?

Yes I have lots of questions (unfortionatly) because some pieces of
information is still missing in my mind.

Quote:
Would you like to read the chapters "7 ABI" and "8 Objects Across Broders"
of the book
"Imperfect C++" (ISBN 0-321-22877-4) by Matthew Wilson?
http://imperfectcplusplus.com/


Thank you for the suggestion. As soon as my library gets it I hope to become
alot smarter.

-- John
Back to top
Madhusudan Singh
*nix forums Guru Wannabe


Joined: 01 Mar 2005
Posts: 128

PostPosted: Mon Feb 21, 2005 6:08 pm    Post subject: Re: Installation hangs Reply with quote

Gregory Toomey wrote:

Quote:

I'm very surprised. I've run openbsd on various platforms and the basic
install works.

I always boot openbsd from a CD. You could try that.

gtoomey


I could not find any ISO images for OpenBSD. I imagine that this is done
to encourage people to buy the software.

At present, I am not certain I will stick to OpenBSD (just finished
installing FreeBSD on the server), so I wish to try it out first. I have
heard that OpenBSD is a lot more secure than FreeBSD, so I do want to try
it out.

Its actually very simple to install. I've got my 83 year old mother using
it! ----------------
Make 2 cds from the mirrors from http://www.openbsd.org/ftp.html#ftp

cd 1 - iso
eg ftp://openbsd.informatik.uni-erlangen.de/pub/OpenBSD/3.6/i386/cd36.iso


Well, thanks for the hint. I burnt this ISO (from the ftp server at
openbsd.org) and booted off it. Same results as before. install hangs at
precisely the same point.

Someone on the misc mailing list at openbsd.org thinks that it might be due
to the display switching to the serial port mid-boot and advised me to test
this with a serial cable. Or use a snapshot.

If I am to use a snapshot, there are no guarantees that it would be as
secure / stable as the release. So the entire point of using OpenBSD is
lost.

I have never had a boot process conk out on me like this. Especially on a
contemporary i386 platform server from a major vendor (Dell PowerEdge
SC420).

Any other ideas ?

Quote:

cd 2: - regular data cd
copy *tgz from
ftp://openbsd.informatik.uni-erlangen.de/pub/OpenBSD/3.6/i386/

This is a trifle pointless if I cannot even get the darn thing to boot into
an install.
Back to top
Markus Elfring
*nix forums addict


Joined: 19 Feb 2005
Posts: 51

PostPosted: Wed Feb 23, 2005 9:24 pm    Post subject: Re: Any non-GNU compilers? sick of GNU copylefts Reply with quote

Quote:
It says if you use C++ you must use the C++ related linker. In my case g++
as ld frontend driver. Also you need compatible compiler versions.

Did you check if other linkers can also resolve the referenced and imported symbols?


Quote:
Yes I have lots of questions (unfortionatly) because some pieces of
information is still missing in my mind.

Can your C and C++ code be divided into components with clear interfaces?
How do you think about to separate the functionality into shared libraries to minimize
compiler dependencies?
http://en.wikipedia.org/wiki/Application_binary_interface

Regards,
Markus
Back to top
tedu
*nix forums Guru Wannabe


Joined: 01 Mar 2005
Posts: 148

PostPosted: Tue Mar 01, 2005 1:17 am    Post subject: Re: Support for Atheros AR5212? Reply with quote

PP wrote:
Quote:
I know it's being worked upon but I'm just generally curious if
anything can
be said on how far in the future we're talking... I have a couple of
Netgear
NICs justwaiting to get used :-)

Kind regards
PP

try now Smile. actually, i'm not sure current support is complete, but
it's more there than it was before.
Back to top
tedu
*nix forums Guru Wannabe


Joined: 01 Mar 2005
Posts: 148

PostPosted: Tue Mar 01, 2005 1:22 am    Post subject: Re: fork failed - try again Reply with quote

don't adjust maxusers. "this is not the option you're looking for."
have you double checked login.conf and verified the correct limits are
in place?
Back to top
Daniel Hartmeier
*nix forums beginner


Joined: 11 Mar 2005
Posts: 12

PostPosted: Fri Mar 11, 2005 9:01 am    Post subject: Re: Unauthorized PF CARP server bring down network connection Reply with quote

On Fri, 11 Mar 2005 14:02:52 +0800, sam wrote:

Quote:
I setup a PF CARP primary server and working perfectly until I tried to
setup secondary CARP to test how the existing primary CARP server deal
with the newly setup secondary CARP with un-matched password.
Suprisingly, as soon as the secondary CARP server goes up and start to
broadcast VRRP packets, the existing primary CARP server prints alot of
message "incorrect hash value.." across the screen and network
connection goes down. - the password is unmatched with the primary server.

The reason 'the connection goes down' might simply be that the backup
assumes that its master and starts to advertise itself to the clients,
and the clients start using it. If the backup then doesn't forward the
client packets, connections stall.

The master will ignore CARP packets with incorrect hash values (after
logging a message), but of course it can't stop a rogue backup from
advertising, attracting clients, and dropping their packets. If you
consider this a problem, consider an ordinary ARP spoof attack, where
the same thing happens.

Daniel
Back to top
sam
*nix forums Guru Wannabe


Joined: 08 Mar 2005
Posts: 154

PostPosted: Fri Mar 11, 2005 11:07 am    Post subject: Re: Unauthorized PF CARP server bring down network connection Reply with quote

Daniel Hartmeier wrote:
Quote:
On Fri, 11 Mar 2005 14:02:52 +0800, sam wrote:


I setup a PF CARP primary server and working perfectly until I tried to
setup secondary CARP to test how the existing primary CARP server deal
with the newly setup secondary CARP with un-matched password.
Suprisingly, as soon as the secondary CARP server goes up and start to
broadcast VRRP packets, the existing primary CARP server prints alot of
message "incorrect hash value.." across the screen and network
connection goes down. - the password is unmatched with the primary server.


The reason 'the connection goes down' might simply be that the backup
assumes that its master and starts to advertise itself to the clients,
and the clients start using it. If the backup then doesn't forward the
client packets, connections stall.

The master will ignore CARP packets with incorrect hash values (after
logging a message), but of course it can't stop a rogue backup from
advertising, attracting clients, and dropping their packets.
It is strange that after implemented PF rules to block unauthorized

packet reached the physical ethernet interfaces, I don't see the
connection stall any more even with the third (rogue, unauthorized with
different password) CARP server turned on in the same subnet.

Now two authorized CARP servers communicate with each other with the
following PF rules:
pass in on {$ext_if} from $vrrp2_ext_ip to any keep state
pass in on {$int_if} from $vrrp2_int_ip to any keep state

Other hosts connected to the carp0/1 interfaces for ordinary network
connection.

Thanks
Sam

If you
Quote:
consider this a problem, consider an ordinary ARP spoof attack, where
the same thing happens.

Daniel
Back to top
Daniel Hartmeier
*nix forums beginner


Joined: 11 Mar 2005
Posts: 12

PostPosted: Tue Mar 15, 2005 11:16 am    Post subject: Re: Unauthorized PF CARP server bring down network connection Reply with quote

On Tue, 15 Mar 2005 11:45:34 +0800, sam wrote:

Quote:
Perhaps I misunderstood original message: I was under the impression
that the OP had one cluster with a particular ID and password and
that he started up another one. The new one (mistakenly) had the same
ID as the original one, but a different password.

Yup, this is exactly the original situiation.

If the password hash is incorrent, the receiver will log the error and
immediately drop the incoming CARP packet:

sys/netinet/ip_carp.c carp_proto_input_c(()

/* verify the hash */
if (carp_hmac_verify(sc, ch->carp_counter, ch->carp_md)) {
carpstats.carps_badauth++;
sc->sc_if.if_ierrors++;
CARP_LOG(sc, ("incorrect hash"));
m_freem(m);
return;
}

It does NOT honour the packet to go into backup state or any such
thing prior to the hash check. If you claim that you can affect
the master with CARP packets not carrying a valid hash, you haven't
provided any evidence yet. What you described so far could have a
number of other explanations.

Daniel
Back to top
Peter N. M. Hansteen
*nix forums addict


Joined: 19 Feb 2005
Posts: 86

PostPosted: Mon Apr 11, 2005 2:29 pm    Post subject: Re: Moving a hard drive Reply with quote

"Lisa Casey" <lisa@jellico.net> writes:

Quote:
I have a bsd computer that has a hardware failure of some sort (not sure
what - power supply or switch or a short somewhere). I'm sure the hard drive
is fine.
Can I move the hard drive to another computer and boot it up?

Most likely you can, if the computers are the same architecture.

If the machines are not identical, you may need to adjust for things
like eg different brands of network cards or graphics if you run X, but
a GENERIC kernel will more likely than not Just Work enough at least to
get you started.

--
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://www.blug.linux.no/rfc1149/ http://www.datadok.no/ http://www.nuug.no/
"First, we kill all the spammers" The Usenet Bard, "Twice-forwarded tales"
Back to top
pachl
*nix forums beginner


Joined: 13 Apr 2005
Posts: 42

PostPosted: Thu Apr 14, 2005 5:05 am    Post subject: Re: How-to Prevent Filesystem Mounts Reply with quote

Hey Dave,

My firewall works fine and I really like to use OBSD/PF for this setup.
In regard to your comment about my posting issue, I'm subscribed to
this newsgroup because I believe there is a lot of talent here and I
felt I could get my question answered. I feel my issue is relevant to
FreeBSD as well and if you knew enough about FreeBSD, you would have
picked up on that. So let's just pretend I configured a couple of
FreeBSD machines instead.

Clint Pachl
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 3 of 5 [71 Posts] Goto page:  Previous  1, 2, 3, 4, 5 Next
View previous topic :: View next topic
The time now is Thu Jan 08, 2009 1:06 pm | All times are GMT
navigation Forum index » *nix » BSD » OpenBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Huge and sick Postfix Karel Chromik Postfix 0 Wed Jul 19, 2006 7:03 pm
No new posts commercial c compilers vs free c compilers limescale C 33 Sun Jul 02, 2006 8:30 pm
No new posts What are the popular c++ compilers? junw2000@gmail.com C++ 3 Tue Jun 20, 2006 3:50 am
No new posts Just another difference between compilers. nutty C++ 4 Sun Jun 11, 2006 9:13 pm
No new posts Compilers should have an option to ignore unknown flags? Dave (from the UK) Solaris 21 Tue Jun 06, 2006 12:50 pm

Personal Loans | Mortgage Calculator | Modded Xbox | Mortgage | Actress
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.8516s ][ Queries: 16 (0.6642s) ][ GZIP on - Debug on ]