Bugs item #3516752, was opened at 2012-04-10 23:19
Message generated for change (Comment added) made by shcheklein
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=713730&aid=3516752&group_id=129076
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compiling
Group: Sedna (current&development)
>Status: Closed
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: jmdr (jmribon)
Assigned to: al-indigo (al-indigo)
Summary: compile error on openSuSe 12.1 32-bit
Initial Comment:
hi folks. everything goes well until :
cd /root/Public/sedna-3.5.161/bld/kernel/common && /usr/bin/g++ -DEL_DEBUG=0
-DSE_ENABLE_FTSEARCH -DSE_ENABLE_TRIGGERS -DACTIVE_CONFIGURATION=\"Release\"
-DDEBUGI=0 -DSEDNA_VERSION=\"3.5\" -DSEDNA_BUILD=\"161\"
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-DXML_LARGE_SIZE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-fno-strict-aliasing -fno-omit-frame-pointer -Wall -Wno-unused -Wno-deprecated
-Wextra -Wno-missing-field-initializers -I/root/Public/sedna-3.5.161/kernel
-I/root/Public/sedna-3.5.161/driver/c -I/root/Public/sedna-3.5.161/bld/kernel
-I/root/Public/sedna-3.5.161/libs
-I/root/Public/sedna-3.5.161/bld/libs/expat-2.0.1/lib -o
CMakeFiles/common.dir/base.cpp.o -c
/root/Public/sedna-3.5.161/kernel/common/base.cpp
In file included from /root/Public/sedna-3.5.161/kernel/common/sedna.h:12:0,
from /root/Public/sedna-3.5.161/kernel/common/base.h:13,
from /root/Public/sedna-3.5.161/kernel/common/base.cpp:8:
/root/Public/sedna-3.5.161/bld/kernel/common/u/uni.h: In function ‘size_t
strnlen(const char*, size_t)’:
/root/Public/sedna-3.5.161/bld/kernel/common/u/uni.h:15:41: error: ‘size_t
strnlen(const char*, size_t)’ was declared ‘extern’ and later ‘static’
[-fpermissive]
/usr/include/string.h:406:15: error: previous declaration of ‘size_t
strnlen(const char*, size_t)’ [-fpermissive]
make[2]: *** [kernel/common/CMakeFiles/common.dir/base.cpp.o] Error 1
----------------------------------------------------------------------
>Comment By: Ivan Shcheklein (shcheklein)
Date: 2012-04-13 06:35
Message:
If you are able to reproduce this issue reopen it and send us:
gcc/cmake versions
uname -a
cmake --trace-output <path-to-sources>
----------------------------------------------------------------------
Comment By: al-indigo (al-indigo)
Date: 2012-04-13 05:48
Message:
Hello! I have tried to reproduce your bug and it appears to be dependant on
your system (i've tried it on clean opensuse 12.1 i585 install).
Try to do the following:
1. cd /root/Public/sedna-3.5.161/bld
2. make clean
3. cmake ../ (with needed options if you need something specific)
4. make -j4
It seems that your cmake didn't recognize correctly function :strnlen" and
used our cmake template for systems that doesn't have this function.
Opesuse 12.1 has it so our template isn't necessary. And as I said before I
couldn't reproduce the issue so it seems that you just need to clean your
build.
If the above steps don't help, the solution is simple -- you need to
comment out our template with /* */ : kernel/u/uni.h.in from line 14 up to
20 and everything will compile correctly.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=713730&aid=3516752&group_id=129076
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion