Embedded Linux >> u_short undefined

by gbuday » Wed, 01 Jun 2005 22:56:53 GMT

Hi,

I'm to compile a program that uses the u_short type synonim on my
ubuntu hoary box. 'make' stops with complaining about lacking a
definition for u_short. I've tracked down what the problem is and
found that <features.h> #undefs __USE_BSD which is important for the
definition of u_short in <sys/types.h>. Is it a proper act from
<features.h> to do so? Is this a special feature of ubuntu?

Thanks in advance

Cheers

- Gergely

ps: is _BSD_SOURCE a proper #define for Linux, especially ubuntu?


Similar Threads

1. C is undefined when entropy is undefined.

Hi  Helmut_Wabnig  ( and Uncle Al ),

The velocity of light, C, is undefined when entropy is undefined.

According to the NIST in Colorado,
C is X Special_Maser_Maxima_Events over Y Special_Maser_Maxima_Events,
...so C is, obviously, a unitless ratio  ( indeed, it's often defined as 1 ).

And how, exactly, does one measure Special_Maser_Maxima_Events
when two gold nuclei, traveling at 99.995 times C, collide head on ?
...you can't, so, obviously, C is undefined at that time.

Observationally, there was no entropy at the start of big bang,
and there will be infinite entroy at the end of our universe, so,
...C is undefined at both the start and the end.

Although observations always fall short,
it's a good bet that, intrinsically, entropy is every bit as spatial as time,
...entropy is the fifth  Spatial  dimension.

2. compiling 2.0.47 failed: libapr-0.so: undefined reference

3. undefined symbol apr_socket_send

Hi

we are having problems loading a module in Apache 2.0.* under Linus RH9

We are using the Ximian Apache RPM and compile the module with

	apxs -i -c

The module uses 'apr_socket_send' in two places.

Compilation and installation do not show any errors, but

	apachectl restart

gives the undefined symbol error in the subject.

So the question is: where is the library that contains 
'apr_socket_send'?  I could not find it anywhere (nm+find+grep did not 
succeed in ancy combination)

Is there anything obvious that we are missing here? Versions, 
configurations, something else?

Thanks for your help

4. Undefined Symbol while loading Cpp DSO in Apache

5. Linux .tmp undefined symbol CINRun Error

6. Strange Radeon\libGL DRI problem: "undefined symbol: xf86ReadMmio32"

7. help on linking problem on linux undefined reference errors

Dear buddies:

I need your urgent help! thanks first.

I compiled matlab .m file into C++ code and try to compile these
files and link to my own C++ codes. I got tons of link "undefined
reference errors" like:

freqresp.o(.text+0x48b5):/dragon/hu5/ec/beagle-1.0.1/gpbg/examples/gpb
grobust/src/freqresp.cpp:346: undefined reference to
`mwArray::operator=(mwArray const&)'
freqresp.o(.text+0x48d1):/dragon/hu5/ec/beagle-1.0.1/gpbg/examples/gpb
grobust/src/freqresp.cpp:346: undefined reference to
`mwArray::~mwArray [in-charge]()'
ltifr.o(.gnu.linkonce.t._ZN9MathWorks7reshapeERK7mwArrayRK10mwVarargin
S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S
2_S2_S2_S2_S2_S2_S2_S2_+0x161):/bio/thorin/opt/matlab6p5/extern/includ
e/cpp/mlmif.h:3151: undefined reference to `mwArray::GetData() const'
ltifr.o(.gnu.linkonce.t._ZN9MathWorks7reshapeERK7mwArrayRK10mwVarargin
S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S
2_S2_S2_S2_S2_S2_S2_S2_+0x193):/bio/thorin/opt/matlab6p5/extern/includ
e/cpp/mlmif.h:3153: undefined reference to
`mwVarargin::GetArrayBuffer(mxArray_tag**) const'
ltifr.o(.gnu.linkonce.t._ZN9MathWorks7reshapeERK7mwArrayRK10mwVarargin
S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S2_S
2_S2_S2_S2_S2_S2_S2_S2_+0x1e2):/bio/thorin/opt/matlab6p5/extern/includ
e/cpp/mlmif.h:6109: undefined reference to
`mwArray::mwArray[in-charge](mxArray_tag const*, unsigned char)'
ltifr.o(.gnu.linkonce.t._ZN9MathWorks6toboolERK7mwArray+0xd): In
function `MathWorks::tobool(mwArray const&)':
/bio/thorin/opt/matlab6p5/extern/include/cpp/mwlist.h:61: undefined
reference to `mwArray::GetData() const'
collect2: ld returned 1 exit status

I do include a lot of matlab lib files:
LIBS = /bio/thorin/opt/matlab6p5/extern/lib/glnx86/libmwsgl.so
/bio/thorin/opt/matlab6p5/bin/glnx86/libm
whg.so /bio/thorin/opt/matlab6p5/extern/lib/glnx86/libmwsglm.so
/bio/thorin/opt/matlab6p5/extern/lib/glnx86/libmm
file.so /bio/thorin/opt/matlab6p5/bin/glnx86/libmatlb.so
/bio/thorin/opt/matlab6p5/bin/glnx86/libmx.so /bio/thor
in/opt/matlab6p5/bin/glnx86/libmat.so
/bio/thorin/opt/matlab6p5/bin/glnx86/libmwservices.so
/bio/thorin/opt/matla
b6p5/bin/glnx86/libmex.so
/bio/thorin/opt/matlab6p5/extern/lib/glnx86/libut.so
/bio/thorin/opt/matlab6p5/extern/l
ib/glnx86/libmat.so
/bio/thorin/opt/matlab6p5/extern/lib/glnx86/libmatpp.so
/bio/thorin/opt/matlab6p5/bin/glnx86/
libmwmlib.so

=============================
Does anybody have an idea or have this problem before?
Is my format to set library file correct?

Thanks

George

8. undefined reference to shm_unlink()...