Skip to content

Fail to install RST5.1.1 on Ubuntu 25.10 #657

@gighen74

Description

@gighen74

Hi all,

I'm trying to install RST5.1.1 on Ubuntu 25.10.
I first of all installed the required dependencies:
"sudo apt install libhdf5-serial-dev libncurses-dev libnetcdf-dev libpng-dev libx11-dev libxext-dev netpbm build-essential"
listed in the Documentation page for Ubuntu 20.04.
I followed the other steps as usual (correctly installed CDF package, checked the environment variables, refresh the bash shell).
Run make.build without problems.
Run make.code and after a bit of compiling I get:

================================================================================
Compiling Library:/home/gigi/rst-v5.1.1/codebase/base/src.lib/tcpip/cnx.1.17

make clean
rm -f *.o
make
make.version /home/gigi/rst-v5.1.1/codebase/base/src.lib/tcpip/cnx.1.17/src/..
make.hdr /home/gigi/rst-v5.1.1/codebase/base/src.lib/tcpip/cnx.1.17/src/../include /home/gigi/rst-v5.1.1/include/base
/home/gigi/rst-v5.1.1/codebase/base/src.lib/tcpip/cnx.1.17/src/../include/connex.h
'/home/gigi/rst-v5.1.1/codebase/base/src.lib/tcpip/cnx.1.17/src/../include/connex.h' -> '/home/gigi/rst-v5.1.1/include/base/connex.h'
cc -fPIC -Wall -pedantic -O3 -D_GNU_SOURCE -D_LINUX -I/home/gigi/rst-v5.1.1/include/base -DPOSIX -D__EXTENSIONS__ -c connex.c
connex.c: In function ‘ConnexOpen’:
connex.c:47:23: error: conflicting types for ‘gethostbyname’; have ‘struct hostent *(void)’
47 | struct hostent *hp,*gethostbyname();
| ^~~~~~~~~~~~~
In file included from connex.c:31:
/usr/include/netdb.h:142:24: note: previous declaration of ‘gethostbyname’ with type ‘struct hostent *(const char *)’
142 | extern struct hostent *gethostbyname (const char *__name);
| ^~~~~~~~~~~~~
connex.c:63:6: error: too many arguments to function ‘gethostbyname’; expected 0, have 1
63 | hp=gethostbyname(host);
| ^~~~~~~~~~~~~ ~~~~
connex.c:47:23: note: declared here
47 | struct hostent *hp,*gethostbyname();
| ^~~~~~~~~~~~~
make: *** [/home/gigi/rst-v5.1.1/build/make/makelib.linux:19: connex.o] Error 1
Compilation Aborted.

It seems a gcc compilation error, but I've never come across anything like this. Indeed I have recently installed RST5.1.1 on a Linux Mint 22.1 without problems.
Does anyone have an idea on what it happens here?
The version of gcc compiler I have on my Ubuntu 25 distribution is 4:15.2.0-4
The one I have on Mint 20 distribution is 4:13.2.0-7

Thank you

Gigi

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions