Re: [Emc-developers] configure

2023-07-24 Thread Steffen Möller
Hi Andy,

I suggest not to bother for now. Sounds like a great entry-level job for the 
next generation of devs joining to become familiar with it all. :)

Best,
Steffen

> Gesendet: Montag, 24. Juli 2023 um 23:19 Uhr
> Von: "andy pugh" 
> An: "EMC developers" 
> Betreff: [Emc-developers] configure
>
> I am looking through the configure script and I amazed how much stuff
> there is in there that probably isn't needed.
> 
> 
> # m...@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
> # to get the SysV transport functions.
> # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
> # needs -lnsl.
> # The nsl library prevents programs from opening the X display
> # on Irix 5.2, according to T.E. Dickey.
> # The functions gethostbyname, getservbyname, and inet_addr are
> # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
> ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
> if test "x$ac_cv_func_gethostbyname" = xyes; then :
> 
> For one example
> 
> I don't suppose it is worth trying to remove it all, we will just
> break it, but, blimey, this code must be 30 years old if Irix5.2
> (released in 1993) is relevant.
> 
> -- 
> atp
> "A motorcycle is a bicycle with a pandemonium attachment and is
> designed for the especial use of mechanical geniuses, daredevils and
> lunatics."
> — George Fitch, Atlanta Constitution Newspaper, 1912
> 
> 
> ___
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers
>


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] Linking a new library?

2023-07-24 Thread andy pugh
On Thu, 20 Jul 2023 at 17:41, Nicklas SB Karlsson  wrote:
>
> Maybe you have to write in C so that you could tell the build system it
> need linkage?

I tried re-writing it all in C, and it didn't help.

I think that I might have worked it out, it looks like adding the
-lgpiod to the Submakefile for rtapi.app is the way to do it.

Now I need to work out the _right_ way to do that. Do I add it only if
gpiod is present on the system? Or if the target architecture is ARM?
Or what?

$(Q)$(CXX) -rdynamic $(LDFLAGS) -o $@ $^ $(LIBDL) -pthread -lrt
$(LIBUDEV_LIBS) -ldl -lgpiod

It feels like it should be part of LIBDL ?



--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


[Emc-developers] configure

2023-07-24 Thread andy pugh
I am looking through the configure script and I amazed how much stuff
there is in there that probably isn't needed.


# m...@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
# to get the SysV transport functions.
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
# needs -lnsl.
# The nsl library prevents programs from opening the X display
# on Irix 5.2, according to T.E. Dickey.
# The functions gethostbyname, getservbyname, and inet_addr are
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
if test "x$ac_cv_func_gethostbyname" = xyes; then :

For one example

I don't suppose it is worth trying to remove it all, we will just
break it, but, blimey, this code must be 30 years old if Irix5.2
(released in 1993) is relevant.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers