LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   trouble compiling gadap-2.0 on Slackware64-13.37 (https://www.linuxquestions.org/questions/slackware-14/trouble-compiling-gadap-2-0-on-slackware64-13-37-a-941002/)

tramni1980 04-21-2012 08:08 AM

trouble compiling gadap-2.0 on Slackware64-13.37
 
Hello, I am tryning to install the package gadap ftp://grads.iges.org/grads/Supplibs/...dap-2.0.tar.gz on Slackware64-13.37. Here is the output of make after standard configure:
Code:

make
cd . && /bin/sh /home/marto/build/source/gadap/gadap-2.0/m4/missing --run autoheader
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
make  all-recursive
make[1]: Entering directory `/home/marto/build/source/gadap/gadap-2.0'
Making all in src
make[2]: Entering directory `/home/marto/build/source/gadap/gadap-2.0/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include/libdap -I/usr/include/libxml2    -g -O2 -MT gaBaseTypes.o -MD -MP -MF ".deps/gaBaseTypes.Tpo" -c -o gaBaseTypes.o gaBaseTypes.cc; \
then mv -f ".deps/gaBaseTypes.Tpo" ".deps/gaBaseTypes.Po"; else rm -f ".deps/gaBaseTypes.Tpo"; exit 1; fi
In file included from gaBaseTypes.cc:31:0:
gaBaseTypes.h:35:25: error: expected class-name before '{' token
gaBaseTypes.h:39:11: error: 'BaseType' does not name a type
gaBaseTypes.h:49:25: error: expected class-name before '{' token
gaBaseTypes.h:53:11: error: 'BaseType' does not name a type
In file included from gaBaseTypes.cc:32:0:
gaTypeFactory.h:52:45: error: expected class-name before '{' token
gaTypeFactory.h:57:13: error: 'Byte' does not name a type
gaTypeFactory.h:58:13: error: 'Int16' does not name a type
gaTypeFactory.h:59:13: error: 'UInt16' does not name a type
gaTypeFactory.h:60:13: error: 'Int32' does not name a type
gaTypeFactory.h:61:13: error: 'UInt32' does not name a type
gaTypeFactory.h:62:13: error: 'Float32' does not name a type
gaTypeFactory.h:63:13: error: 'Float64' does not name a type
gaTypeFactory.h:65:13: error: 'Str' does not name a type
gaTypeFactory.h:66:13: error: 'Url' does not name a type
gaTypeFactory.h:68:13: error: 'Array' does not name a type
gaTypeFactory.h:69:13: error: 'Structure' does not name a type
gaTypeFactory.h:70:13: error: 'Sequence' does not name a type
gaTypeFactory.h:71:13: error: 'Grid' does not name a type
gaBaseTypes.cc: In constructor 'gaStr::gaStr(const std::string&)':
gaBaseTypes.cc:41:34: error: class 'gaStr' does not have any field named 'Str'
gaBaseTypes.cc: At global scope:
gaBaseTypes.cc:50:1: error: 'BaseType' does not name a type
gaBaseTypes.cc: In member function 'virtual std::string* gaStr::getStringVal()':
gaBaseTypes.cc:59:34: error: 'buf2val' was not declared in this scope
gaBaseTypes.cc: In constructor 'gaUrl::gaUrl(const std::string&)':
gaBaseTypes.cc:66:34: error: class 'gaUrl' does not have any field named 'Url'
gaBaseTypes.cc: At global scope:
gaBaseTypes.cc:74:1: error: 'BaseType' does not name a type
gaBaseTypes.cc: In member function 'virtual std::string* gaUrl::getStringVal()':
gaBaseTypes.cc:84:34: error: 'buf2val' was not declared in this scope
gaBaseTypes.cc: At global scope:
gaBaseTypes.cc:94:29: error: expected class-name before '{' token
gaBaseTypes.cc:96:33: error: 'BaseType' has not been declared
gaBaseTypes.cc:98:11: error: 'BaseType' does not name a type
gaBaseTypes.cc: In constructor 'gaArray::gaArray(const std::string&, int*)':
gaBaseTypes.cc:96:53: error: class 'gaArray' does not have any field named 'Array'
gaBaseTypes.cc: At global scope:
gaBaseTypes.cc:107:27: error: expected class-name before '{' token
gaBaseTypes.cc:111:11: error: 'BaseType' does not name a type
gaBaseTypes.cc: In constructor 'gaByte::gaByte(const std::string&)':
gaBaseTypes.cc:109:35: error: class 'gaByte' does not have any field named 'Byte'
gaBaseTypes.cc: At global scope:
gaBaseTypes.cc:120:33: error: expected class-name before '{' token
gaBaseTypes.cc:124:11: error: 'BaseType' does not name a type
gaBaseTypes.cc: In constructor 'gaFloat32::gaFloat32(const std::string&)':
gaBaseTypes.cc:122:38: error: class 'gaFloat32' does not have any field named 'Float32'
gaBaseTypes.cc: At global scope:
gaBaseTypes.cc:133:33: error: expected class-name before '{' token
gaBaseTypes.cc:137:11: error: 'BaseType' does not name a type
gaBaseTypes.cc: In constructor 'gaFloat64::gaFloat64(const std::string&)':
gaBaseTypes.cc:135:38: error: class 'gaFloat64' does not have any field named 'Float64'
gaBaseTypes.cc: At global scope:
gaBaseTypes.cc:146:27: error: expected class-name before '{' token
gaBaseTypes.cc:150:11: error: 'BaseType' does not name a type
gaBaseTypes.cc: In constructor 'gaGrid::gaGrid(const std::string&)':
gaBaseTypes.cc:148:35: error: class 'gaGrid' does not have any field named 'Grid'
gaBaseTypes.cc: At global scope:
gaBaseTypes.cc:159:29: error: expected class-name before '{' token
gaBaseTypes.cc:163:11: error: 'BaseType' does not name a type
gaBaseTypes.cc: In constructor 'gaInt16::gaInt16(const std::string&)':
gaBaseTypes.cc:161:36: error: class 'gaInt16' does not have any field named 'Int16'
gaBaseTypes.cc: At global scope:
gaBaseTypes.cc:172:29: error: expected class-name before '{' token
gaBaseTypes.cc:176:11: error: 'BaseType' does not name a type
gaBaseTypes.cc: In constructor 'gaInt32::gaInt32(const std::string&)':
gaBaseTypes.cc:174:36: error: class 'gaInt32' does not have any field named 'Int32'
gaBaseTypes.cc: At global scope:
gaBaseTypes.cc:198:35: error: expected class-name before '{' token
gaBaseTypes.cc:202:11: error: 'BaseType' does not name a type
gaBaseTypes.cc: In constructor 'gaSequence::gaSequence(const std::string&)':
gaBaseTypes.cc:200:39: error: class 'gaSequence' does not have any field named 'Sequence'
gaBaseTypes.cc: At global scope:
gaBaseTypes.cc:211:37: error: expected class-name before '{' token
gaBaseTypes.cc:215:11: error: 'BaseType' does not name a type
gaBaseTypes.cc: In constructor 'gaStructure::gaStructure(const std::string&)':
gaBaseTypes.cc:213:40: error: class 'gaStructure' does not have any field named 'Structure'
gaBaseTypes.cc: At global scope:
gaBaseTypes.cc:224:31: error: expected class-name before '{' token
gaBaseTypes.cc:229:11: error: 'BaseType' does not name a type
gaBaseTypes.cc: In constructor 'gaUInt16::gaUInt16(const std::string&)':
gaBaseTypes.cc:227:37: error: class 'gaUInt16' does not have any field named 'UInt16'
gaBaseTypes.cc: At global scope:
gaBaseTypes.cc:238:31: error: expected class-name before '{' token
gaBaseTypes.cc:242:11: error: 'BaseType' does not name a type
gaBaseTypes.cc: In constructor 'gaUInt32::gaUInt32(const std::string&)':
gaBaseTypes.cc:240:37: error: class 'gaUInt32' does not have any field named 'UInt32'
gaBaseTypes.cc: At global scope:
gaBaseTypes.cc:250:1: error: 'Byte' does not name a type
gaBaseTypes.cc:256:1: error: 'Int16' does not name a type
gaBaseTypes.cc:262:1: error: 'UInt16' does not name a type
gaBaseTypes.cc:268:1: error: 'Int32' does not name a type
gaBaseTypes.cc:275:1: error: 'UInt32' does not name a type
gaBaseTypes.cc:281:1: error: 'Float32' does not name a type
gaBaseTypes.cc:287:1: error: 'Float64' does not name a type
gaBaseTypes.cc:293:1: error: 'Str' does not name a type
gaBaseTypes.cc:299:1: error: 'Url' does not name a type
gaBaseTypes.cc:305:1: error: 'Array' does not name a type
gaBaseTypes.cc:311:1: error: 'Structure' does not name a type
gaBaseTypes.cc:317:1: error: 'Sequence' does not name a type
gaBaseTypes.cc:324:1: error: 'Grid' does not name a type
make[2]: *** [gaBaseTypes.o] Error 1
make[2]: Leaving directory `/home/marto/build/source/gadap/gadap-2.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/marto/build/source/gadap/gadap-2.0'
make: *** [all] Error 2

Any suggestions will be appreciated.

business_kid 04-21-2012 01:25 PM

Quote:

In file included from gaBaseTypes.cc:31:0:
If I'm not mistaken, it's puking on a header file from line 31 of that gaBaseTypes.cc

Header files have names like 'thisthat.h'
Perhaps the file is missing, or maybe a version issue.
If it gives you a file path beginning in a sub directory with no leading /, it's usually in /usr/include/whatever it's called

zx_ 05-13-2012 03:11 PM

I'm having exact error on Ubuntu 12.04

@OP: did you find a solution?

tramni1980 05-14-2012 01:50 AM

Quote:

Originally Posted by zx_ (Post 4677479)
I'm having exact error on Ubuntu 12.04

@OP: did you find a solution?

Yes, I found a solution. The gadap package from http://sourceforge.net/projects/open...iles/supplibs/ compiles ok.
I don't know what you need gadap for, but if it is for grads, then that library fixes the whole shit of dependency hell in one shot.

zx_ 05-14-2012 03:24 PM

Thanks, it is for grads...

However after my previous post I spent couple of hours figuring how to make grads' ./configure script recognize my shapefile, netcdf and hdf4 development libraries - without any success, even after applying some patches (from Debian testing packaging).
I just thought it couldn't be that hard :D

I then installed one minor version less, from repositories and hopefully will forget my wasted time on building grads from source


Cheers

tramni1980 05-15-2012 02:02 AM

I had just the same bitter experience as you. GRADS simply refuses to recognise the system libraries. But giving its configure script the SUPPLIBS variable with the path to the supplibs package I mentioned, I managed to compile the latest GrADS with full functionality.

business_kid 05-15-2012 03:15 AM

@tramni1980:seeing as you're sorted, why not mark the thread 'solved' to assist people who search the site?


All times are GMT -5. The time now is 11:20 AM.