Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support compile on Illumos based OS (OPenIndiana) #5

Open
GoogleCodeExporter opened this issue Jan 21, 2016 · 0 comments
Open

Support compile on Illumos based OS (OPenIndiana) #5

GoogleCodeExporter opened this issue Jan 21, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. About JDK
$ java -version
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) Server VM (build 24.60-b09, mixed mode)
$ ldd $(which java) # check if 32 or 64 bit version is in use
        libthread.so.1 =>        /lib/libthread.so.1
        libjli.so =>     /usr/jdk/instances/jdk1.7.0_60/bin/../lib/i386/jli/libjli.so
        libdl.so.1 =>    /lib/libdl.so.1
        libc.so.1 =>     /lib/libc.so.1
        libm.so.2 =>     /lib/libm.so.2

2. Prepare Make file
$ grep ^INCLUDES Makefile # added last 2 entries, JAVA_HOME=/usr/jdk/latest
INCLUDES=-I$(JAVA_HOME)/$(HEADERS) -I$(JAVA_HOME)/$(HEADERS)/$(UNAME) 
-I/usr/jdk/latest/include -I/usr/jdk/latest/include/solaris

3. Compile (tried with gcc from distribution and):
$ CC=/usr/gcc/4.7/bin/gcc gmake all
/usr/gcc/4.7/bin/gcc -I/usr/jdk/latest/ -I/usr/jdk/latest//sunos 
-I/usr/jdk/latest/include -I/usr/jdk/latest/include/solaris  
-fdiagnostics-show-option -fno-exceptions -fno-omit-frame-pointer 
-fno-strict-aliasing -funsigned-char -fno-asynchronous-unwind-tables -m32 
-msse2 -g -D__STDC_FORMAT_MACROS  -Wall -Werror -Wformat-security 
-Wno-char-subscripts -Wno-sign-compare -Wno-strict-overflow -Wwrite-strings 
-Wnon-virtual-dtor -Woverloaded-virtual -O2 -Fvisibility=hidden -fPIC -c 
/export/NoBackup/Downloads/lightweight-java-profiler-read-only/src/entry.cc -o 
build-32/entry.pic.o
/export/NoBackup/Downloads/lightweight-java-profiler-read-only/src/entry.cc: In 
function ‘void SetFileFromOption(char*)’:
/export/NoBackup/Downloads/lightweight-java-profiler-read-only/src/entry.cc:185:
13: error: ‘exit’ was not declared in this scope
/export/NoBackup/Downloads/lightweight-java-profiler-read-only/src/entry.cc: In 
function ‘void ParseArguments(char*)’:
/export/NoBackup/Downloads/lightweight-java-profiler-read-only/src/entry.cc:210:
13: error: ‘exit’ was not declared in this scope
gmake: *** [build-32/entry.pic.o] Error 1


3. Failed

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
Version from SVN:
$ [2014-06-17 10:37:29] svn checkout 
http://lightweight-java-profiler.googlecode.com/svn/trunk/ 
lightweight-java-profiler-read-only

OS is OpenIndiana (/hipster release):
$ head -1 /etc/release
             OpenIndiana Development oi_151.1.8 X86 (powered by illumos)
$ uname -rosv
SunOS 5.11 illumos-3339235 Solaris

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 17 Jun 2014 at 9:01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant