[opensuse-buildservice] repackaging mpich for ubuntu
Hello, I am trying to (re-)package mpich for ubuntu using the same sources the ubuntu universe offers: http://packages.ubuntu.com/intrepid/libmpich1.0-dev but get the following error on ubuntu 8.04: du: cannot read directory `./usr/lib/mpich/man/mpiman.help': Not a directory and on 8.10: cc -I. -I/usr/src/packages/BUILD/mpid/mpd -fPIC -c /usr/src/packages/BUILD/mpid/mpd/sockets.c /usr/src/packages/BUILD/mpid/mpd/sockets.c: In function 'network_connect': /usr/src/packages/BUILD/mpid/mpd/sockets.c:93: error: 'struct hostent' has no member named 'h_addr' I know that this looks like misconfiguration but I wonder why this works for the ubuntu universe repository. I would be happy if anyone could shed a light on this: https://build.opensuse.org/package/show?package=mpich&project=home%3Abehrisch%3Aubuntu Regards, Michael -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Michael Behrisch escribió:
I would be happy if anyone could shed a light on this: https://build.opensuse.org/package/show?package=mpich&project=home%3Abehrisch%3Aubuntu
you have to define _GNU_SOURCE preprocessor directive. if you package uses autotools, add AC_GNU_SOURCE to configure.ac if it doesnt, append -D_GNU_SOURCE to CFLAGS. -- "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
Cristian Rodríguez escribió:
you have to define _GNU_SOURCE preprocessor directive.
if you package uses autotools, add AC_GNU_SOURCE to configure.ac
if it doesnt, append -D_GNU_SOURCE to CFLAGS.
No, Im wrong :) replace "h_addr" for h_addr_list[0] in the source code. -- "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
participants (2)
-
Cristian Rodríguez
-
Michael Behrisch