|
Grex > Helpers > #147: Grex System Problems - Winter 2005/06 | |
|
| Author |
Message |
i
|
|
Grex System Problems - Winter 2005/06
|
Dec 23 04:28 UTC 2005 |
This item is for system problems. If something on Grex isn't working
right (line noise on a modem, weird behavior from a program, etc.),
this is the place to announce it. Except for security holes. If you
find a hole in system security, mail information about it to "staff".
|
| 260 responses total. |
bhoward
|
|
response 1 of 260:
|
Dec 23 04:58 UTC 2005 |
A lot of things have been fixed, tuned or otherwise corrected in
the weeks since the upgrade. Now might be a good time to look
around and see what other systems issues are still outstanding --
broken or not working the same as before the upgrade -- and mention
it here to make certain nothing gets overlooked.
|
aruba
|
|
response 2 of 260:
|
Dec 23 05:23 UTC 2005 |
I still can't compile my C++ programs since the upgrade. I compile the
source files like this:
g++ -c -fno-exceptions box.cpp
g++ -c -fno-exceptions line.cpp
g++ -c -fno-exceptions parse.cpp
g++ -c -fno-exceptions token.cpp
and then link them like this:
ld -L/usr/lib/gcc-lib/i386-unknown-openbsd3.8/3.3.5 -lc -lm -lstdc++ -o box
box.o line.o parse.o token.o
The compiles go fine, but the linker has lots of errors of the form:
/usr/lib/libstdc++.so.40.0: undefined reference to `_Unwind_Resume'
/usr/lib/libstdc++.so.40.0: undefined reference to `_Unwind_DeleteException'
and lots more like that. I'm not calling the "Unwind" routines from my
code, so I presume the compiler is putting references in automatically. I
thought maybe if I turned off exceptions that would take care of it, but as
you can see the "-fno-exceptions" flag didn't fix the problem.
So I need to either
a) tell the compiler not to insert those references, or
b) find the libraries that include those Unwind routines and link them in.
Anybody have any ideas?
|
mcnally
|
|
response 3 of 260:
|
Dec 23 06:18 UTC 2005 |
Try adding -lgcc and see if that fixes it.
|