[SOLVED] trouble compiling gadap-2.0 on Slackware64-13.37
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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.
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
I then installed one minor version less, from repositories and hopefully will forget my wasted time on building grads from source
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.