From the error line, the problem has to be in some system header defining a symbol that openNURBS is using. From the file:line (opennurbs_brep_region.cpp:1147), I have to imagine that the problem symbol is "FS".
You can try adding the following line before opennurbs_brep_region:1147 to see if the error changes:
#undef FS
Cheers!
Sean
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am failing to compile Brlcad-7.18.2 in an OpenSolaris machine too
inftrees.c:Infunction`inflate_table':inftrees.c:330: warning: visibility attribute not supported in this configuration; ignored/bin/sh ../../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -DBRLCADBUILD=1 -I../../../include -I../../../src/other/openNURBS -I../../../src/other/libz -pipe -fno-strict-aliasing -fno-common -fexceptions -ggdb3 -D_FORTIFY_SOURCE=2 -pedantic -W -Wall -Wundef -Wfloat-equal -Wshadow -Winline -Wno-long-long -c -o trees.lo trees.cIn file included from trees.c:119:trees.h:100: warning: visibility attribute not supported in this configuration; ignoredtrees.h:116: warning: visibility attribute not supported in this configuration; ignoredtrees.c: In function `_tr_init':trees.c:410:warning:visibilityattributenotsupportedinthisconfiguration;ignoredtrees.c:Infunction`_tr_stored_block':trees.c:883: warning: visibility attribute not supported in this configuration; ignoredtrees.c: In function `_tr_align':trees.c:919:warning:visibilityattributenotsupportedinthisconfiguration;ignoredtrees.c:Infunction`_tr_flush_block':trees.c:1020: warning: visibility attribute not supported in this configuration; ignoredtrees.c: In function `_tr_tally':trees.c:1071:warning:visibilityattributenotsupportedinthisconfiguration;ignored/bin/sh../../../libtool--silent--tag=CC--mode=compilegcc-DHAVE_CONFIG_H-I.-I.-I../../../include-DBRLCADBUILD=1-I../../../include-I../../../src/other/openNURBS-I../../../src/other/libz-pipe-fno-strict-aliasing-fno-common-fexceptions-ggdb3-D_FORTIFY_SOURCE=2-pedantic-W-Wall-Wundef-Wfloat-equal-Wshadow-Winline-Wno-long-long-c-ouncompr.louncompr.c/bin/sh../../../libtool--silent--tag=CC--mode=compilegcc-DHAVE_CONFIG_H-I.-I.-I../../../include-DBRLCADBUILD=1-I../../../include-I../../../src/other/openNURBS-I../../../src/other/libz-pipe-fno-strict-aliasing-fno-common-fexceptions-ggdb3-D_FORTIFY_SOURCE=2-pedantic-W-Wall-Wundef-Wfloat-equal-Wshadow-Winline-Wno-long-long-c-ozutil.lozutil.czutil.c:Infunction`zcalloc':zutil.c:308: warning: visibility attribute not supported in this configuration; ignoredzutil.c: In function `zcfree':zutil.c:316:warning:visibilityattributenotsupportedinthisconfiguration;ignored/bin/sh../../../libtool--silent--tag=CC--mode=linkgcc-pipe-fno-strict-aliasing-fno-common-fexceptions-ggdb3-D_FORTIFY_SOURCE=2-pedantic-W-Wall-Wundef-Wfloat-equal-Wshadow-Winline-Wno-long-long-pipe-fno-strict-aliasing-fno-common-fexceptions-ggdb3-D_FORTIFY_SOURCE=2-pedantic-W-Wall-Wundef-Wfloat-equal-Wshadow-Winline-Wno-long-long-olibz.la-rpath/export/home/alex/Downloads/brlcad-7.18.2/../targ/lib-version-info2:4:1adler32.locompress.locrc32.lodeflate.logzclose.logzlib.logzread.logzwrite.loinfback.loinffast.loinflate.loinftrees.lotrees.louncompr.lozutil.lold:fatal:relocationerror:R_386_GOTOFF:file.libs/deflate.o:symbolzcalloc:aGOTrelativerelocationmustreferencealocalsymbolld:fatal:relocationerror:R_386_GOTOFF:file.libs/deflate.o:symbolzcfree:aGOTrelativerelocationmustreferencealocalsymbolld:fatal:relocationerror:R_386_GOTOFF:file.libs/deflate.o:symbol_length_code:aGOTrelativerelocationmustreferencealocalsymbolld:fatal:relocationerror:R_386_GOTOFF:file.libs/deflate.o:symbol_dist_code:aGOTrelativerelocationmustreferencealocalsymbolld:fatal:relocationerror:R_386_GOTOFF:file.libs/deflate.o:symbol_dist_code:aGOTrelativerelocationmustreferencealocalsymbolld:fatal:relocationerror:R_386_GOTOFF:file.libs/deflate.o:symbol_length_code:aGOTrelativerelocationmustreferencealocalsymbolld:fatal:relocationerror:R_386_GOTOFF:file.libs/deflate.o:symbol_dist_code:aGOTrelativerelocationmustreferencealocalsymbolld:fatal:relocationerror:R_386_GOTOFF:file.libs/deflate.o:symbol_dist_code:aGOTrelativerelocationmustreferencealocalsymbolld:fatal:relocationerror:R_386_GOTOFF:file.libs/deflate.o:symbol_length_code:aGOTrelativerelocationmustreferencealocalsymbolld:fatal:relocationerror:R_386_GOTOFF:file.libs/deflate.o:symbol_dist_code:aGOTrelativerelocationmustreferencealocalsymbolld:fatal:relocationerror:R_386_GOTOFF:file.libs/deflate.o:symbol_dist_code:aGOTrelativerelocationmustreferencealocalsymbolcollect2:ldreturned1exitstatusgmake[3]:***[libz.la]Error1gmake[3]:Leavingdirectory`/export/home/alex/Downloads/brlcad-7.18.2/src/other/libz'gmake[2]: *** [all-recursive] Error 1gmake[2]: Leaving directory `/export/home/alex/Downloads/brlcad-7.18.2/src/other'gmake[1]:***[all-recursive]Error1gmake[1]:Leavingdirectory`/export/home/alex/Downloads/brlcad-7.18.2/src'gmake:***[all-recursive]Error1alex@opensolaris:~/Downloads/brlcad-7.18.2$
is there some package i am missing here…?
I have the gcc as well as the gnu tools installed, i ran ./configure -prefix=…/… -enable-almost-everything -with-ogl
and the result was
Build Tcl ............................: yes
Build Tk .............................: yes
Build Itcl/Itk .......................: yes
Build IWidgets .......................: yes
Build tkhtml .........................: yes
Build tkpng ..........................: yes
Build libpng .........................: yes
Build libregex .......................: yes
Build zlib ...........................: yes
Build termlib ........................: yes
Build Utah Raster Toolkit.............: yes
Build Template Numerical Toolkit......: yes
Build openNURBS.......................: yes
Build NIST STEP Class Libraries.......: yes
X11 support (optional)................: yes
OpenGL support (optional).............: yes
librtserver JDK support (optional)....: no
Enable run-time debugging (optional)..: yes
Build 64-bit release .................: no (32-bit)
Build optimized release ..............: no
Build debug release ..................: auto
Build profile release ................: no
Build SMP-capable release ............: yes
Build static libraries ...............: yes
Build shared/dynamic libraries .......: yes
Print verbose compilation warnings ...: yes
Print verbose compilation progress ...: no
Only build benchmark suite ...........: no
Only build librtserver ...............: no
Install example geometry models ......: yes
Install extra docs ...................: yes (man/html only)
Elapsed configuration time ...........: 6 minutes, 47 seconds
---
./configure complete, type 'make' to begin building
alex@opensolaris:~/Downloads/brlcad-7.18.2$ gmake
but then this error popped out…
What can i do…?
BRGDS
Alex
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
While related, you should generally start a new thread since your specific problem and configuration are not necessarily the same issue. That said, try running autogen.sh before configure. Install any missing components that autogen.sh lists as required (e.g., m4, perl, automake, autoconf, libtool) and then retry configure once it succeeds.
That looks to be the main problem on your build, where the build products just aren't being assembled correctly. Rebuild the configuration with autogen.sh, delete your cache files (rm -rf *cache*), rerun configure (with -enable-all), and see if it makes it any further.
Cheers!
Sean
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First, bash would tell me that there was no Autoconf there… it was right… there is an autoconf-1.10 so i created a symlink in /usr/bin called autoconf… but now its stops, complaining there is no aclocal…
I have tried to get this in my package manager, to no avail.. :(
.su:Unknownid:lnalex@opensolaris:~/Downloads/brlcad-7.18.2$surootPassword:alex@opensolaris:~/Downloads/brlcad-7.18.2# ln -s /usr/bin/automake-1.10 /usr/bin/automakealex@opensolaris:~/Downloads/brlcad-7.18.2# su alexalex@opensolaris:~/Downloads/brlcad-7.18.2$./autogen.shPreparingtheBRL-CADbuildsystem...pleasewaitFoundGNUAutoconfversion2.61FoundGNUAutomakeversion1.10FoundGNULibtoolversion1.5.22Automaticallypreparingbuild...Warning:autoreconffailedAttemptingtorunthepreparationstepsindividuallyPreparingbuild...ERROR:aclocalfailedalex@opensolaris:~/Downloads/brlcad-7.18.2$
What should i do next…?
BRGDS
Alex
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It looks like it's just not finding aclocal at all, so you have another symlink missing. aclocal is part of automake so given you had /usr/bin/automake-1.10, I suspect you have a /usr/bin/aclocal-1.10
You might want to review your /usr/bin directory for other *-1.10 binaries (automake-related) or other *-2.61 binaries (autoconf-related), etc.
Cheers!
Sean
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can't find a usable tk.tcl in the following directories:
/usr/brlcad/lib/tk8.5
/usr/brlcad/lib/tk8.5/tk.tcl: version conflict for package "Tk": have 8.5.7, need exactly 8.5.6
version conflict for package "Tk": have 8.5.7, need exactly 8.5.6
while executing
"package require -exact Tk 8.5.6"
(file "/usr/brlcad/lib/tk8.5/tk.tcl" line 20)
invoked from within
"source /usr/brlcad/lib/tk8.5/tk.tcl"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list source $file]"
This probably means that tk wasn't installed properly.
MGED Aborted.
nonetheless, i ran configure with -enable-all -disable-ogl
Is this a problem of mged starting script…?
Tcl and Tk libraries were compiled allright… :(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to compile BRL-CAD 7.16.10 on Solaris 10 (latest version with updates) but it failed during the compile.
This is the process
Am I missing an include file?
Thanks
From the error line, the problem has to be in some system header defining a symbol that openNURBS is using. From the file:line (opennurbs_brep_region.cpp:1147), I have to imagine that the problem symbol is "FS".
You can try adding the following line before opennurbs_brep_region:1147 to see if the error changes:
#undef FS
Cheers!
Sean
Hi…
I am failing to compile Brlcad-7.18.2 in an OpenSolaris machine too
is there some package i am missing here…?
I have the gcc as well as the gnu tools installed, i ran ./configure -prefix=…/… -enable-almost-everything -with-ogl
and the result was
but then this error popped out…
What can i do…?
BRGDS
Alex
Alex,
While related, you should generally start a new thread since your specific problem and configuration are not necessarily the same issue. That said, try running autogen.sh before configure. Install any missing components that autogen.sh lists as required (e.g., m4, perl, automake, autoconf, libtool) and then retry configure once it succeeds.
That looks to be the main problem on your build, where the build products just aren't being assembled correctly. Rebuild the configuration with autogen.sh, delete your cache files (rm -rf *cache*), rerun configure (with -enable-all), and see if it makes it any further.
Cheers!
Sean
Hi Sean
Thanks for your reply :)
I tried following your steps…
First, bash would tell me that there was no Autoconf there… it was right… there is an autoconf-1.10 so i created a symlink in /usr/bin called autoconf… but now its stops, complaining there is no aclocal…
I have tried to get this in my package manager, to no avail.. :(
What should i do next…?
BRGDS
Alex
Try running ./autogen.sh -verbose
It looks like it's just not finding aclocal at all, so you have another symlink missing. aclocal is part of automake so given you had /usr/bin/automake-1.10, I suspect you have a /usr/bin/aclocal-1.10
You might want to review your /usr/bin directory for other *-1.10 binaries (automake-related) or other *-2.61 binaries (autoconf-related), etc.
Cheers!
Sean
Hi Sean
Thks a lot… the symlink was the trick… :)
Now the build stops at adrt…
is it some dependency i am missing…?
… i get the picture that some object files are not linking … but using the gnu Build suite yelded a good result till now…
What must i do now…?
Thks for your attention :)
BRGDS
Alex
I do not get to find no libnsl nor nsl in my package manager…
wait… i got it :
Still even after
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib
i get the sme mistake…
… Im clueless here… :(
It looks like it's not attempting to link those libraries, yet is smart enough to tell you which ones you need.
For whatever reason, something didn't get detected during configure, but you can override and probably get past that specific error with this:
make LIBS="-lsocket -lnsl"
Hi …
I built the entire app, and installed it…
Only when i launch mged, an error pops up :
nonetheless, i ran configure with -enable-all -disable-ogl
Is this a problem of mged starting script…?
Tcl and Tk libraries were compiled allright… :(