Subject: feedback ;)

From: asle
Date: Tue Jan 17 00:55:25 2006

To: Kohina-UADE-Forum
Here,

 Just cvs-ed the v2. Here's what I get upon ./configure-ing

[root@/home/uade/uade]# ./configure 
Potential hazard detected: stdint.h is missing (needed for portable types)

and the usual messages :
UADE and frontends will be installed to : /usr/local/bin
Data directory will be                  : /usr/local/share/uade2
Documentation directory will be         : /usr/local/share/doc/uade-2.01
Man directory will be                   : /usr/local/share/man/man1
Installer that will be used             : /usr/bin/install
Make that will be used during the build : /usr/local/bin/gmake
Target CC                               : gcc
uade123                                 : yes
uade123 sound output                    : AO
XMMS plugin                             : yes
XMMS plugin directory                   : /usr/X11R6/lib/xmms/Input
Audacious plugin                        : no

What is Audacious anyway ?.
I'll try a 'make' now

Sylvain

---

From: asle
Date: Tue Jan 17 00:58:05 2006

To: Kohina-UADE-Forum
ok, that went fast ..

In file included from include/uade.h:4,
                 from newcpu.c:26:
include/uadeipc.h:42: field `data' has incomplete type
gmake: *** [newcpu.o] Error 1
gmake: Leaving directory `/usr/home/uade/uade/src'
*** Error code 2

Seems that the 'potential hazard' struck hard ;). Ok, what now ?.. any idea ?. I'm running FreeBSD 4.9 (for a long time now)  with GCC (gcc version 2.95.4 20020320 [FreeBSD]) and a couple of other things you should ask because I don't know what you need.

Regards.
Sylvain

---

From: shd
Date: Tue Jan 17 12:07:17 2006

To: Kohina-UADE-Forum
[quote:e12d3d58f4="asle"]
Seems that the 'potential hazard' struck hard ;). Ok, what now ?.. any idea ?. I'm running FreeBSD 4.9 (for a long time now)  with GCC (gcc version 2.95.4 20020320 [FreeBSD]) and a couple of other things you should ask because I don't know what you need.
[/quote:e12d3d58f4]

GCC 3.x or newer is required due to C99 usage. The potential hazard implies your environment lacks stdint.h which is included in C99 standard. It tries to replace stdint.h with inttypes.h.

So please get a new compiler.

---

From: asle
Date: Tue Jan 17 17:53:44 2006

To: Kohina-UADE-Forum
Ok, compiled GCC34 and things seem to go better for some time until this :
So what is the pb this time ?. I'm sorry to look so dense, but look, I've compiled succesfully and flawlessly so many huge packages (X11, Emacs, oh and GCC ..) that I clearly can't understand what could go wrong when compiling UADE.

Thanks for you advices.
Sylvain

In file included from /usr/include/sys/select.h:40,
                 from unixatomic.c:1:
/usr/include/sys/event.h:53: error: parse error before "uintptr_t"
/usr/include/sys/event.h:55: error: parse error before "flags"
/usr/include/sys/event.h:56: error: parse error before "fflags"
/usr/include/sys/event.h:57: error: parse error before "data"
/usr/include/sys/event.h:59: error: parse error before '}' token
In file included from unixatomic.c:1:
/usr/include/sys/select.h:47: error: parse error before "pid_t"
/usr/include/sys/select.h:50: error: parse error before '}' token
unixatomic.c: In function `atomic_read':
unixatomic.c:47: warning: implicit declaration of function `bzero'
gmake: *** [unixatomic.o] Error 1
gmake: Leaving directory `/usr/home/uade/uade/src'
*** Error code 2

Stop in /usr/home/uade/uade.

---

From: shd
Date: Tue Jan 17 19:26:36 2006

To: Kohina-UADE-Forum
[quote:08a2b0921c="asle"]
Stop in /usr/home/uade/uade.[/quote:08a2b0921c]

It seems FreeBSD doesn't have sys/select.h, which is in POSIX 1003.1-2001. Replace #include &lt;sys/select.h&gt; with:

       #include &lt;sys/time.h&gt;
       #include &lt;sys/types.h&gt;
       #include &lt;unistd.h&gt;

And report back.

---

From: asle
Date: Tue Jan 17 22:01:49 2006

To: Kohina-UADE-Forum
made the replacements and it compiled all right save for the following warning :

unixatomic.c:50: warning: implicit declaration of function `bzero'

manpage says this :
SYNOPSIS
     #include &lt;string.h&gt;

     void
     bzero(void *b, size_t len);

Compilation hangs when doing uade123 .. I'll make de replacements again and report back once it's all over.
Thanks for you kind help on this matter.

Sylvain

[edit]
got the same hang-up when encountering the following include :
#include &lt;netinet/in.h&gt;
The suggested replacements works all right. Just for you to know. So, I finaly have a compiled version. I'll come back about how it fares now ;).

---

From: asle
Date: Tue Jan 17 22:40:02 2006

To: Kohina-UADE-Forum
ok, I could make it run. Not that easy because I'm still looking for ./uade binary. Anyway, I launched the 'make install' and got it running under XMMS and disabled the uade v1.* replays.
The general behaviour replay-wise is fine. Just the following remarks :
- Uade 1.* allowed to view file information in XMMS while uade 2 doesn't.
- each time I ask to play an unknown music format, I got the error message twice :
Unknown format: /usr/home/uae/decrunch/Titanics/zik1
Unknown format: /usr/home/uae/decrunch/Titanics/zik1
- CPU-wise, on my P3-800 (396Mb RAM) here's the 'top' result while runing.

last pid: 21979;  load averages:  0.52,  0.44,  0.29                                                                    up 4+19:57:26  02:12:35
62 processes:  5 running, 57 sleeping
CPU states: 13.6% user,  0.0% nice,  4.3% system,  1.2% interrupt, 80.9% idle
Mem: 168M Active, 105M Inact, 72M Wired, 1156K Cache, 48M Buf, 26M Free
Swap: 752M Total, 39M Used, 714M Free, 5% Inuse

  PID USERNAME PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
21950 root      30   0  6188K  5176K RUN      2:00  9.28%  9.28% uadecore
21949 root      29   0 12208K  8780K RUN      1:02  4.88%  4.88% xmms

I hope all this helps.
Kind regards,
Sylvain

---

From: mld/uade team
Date: Tue Jan 17 22:46:46 2006

To: Kohina-UADE-Forum
Hi Asle,

hope you're doing fine.

modinfo is currently not implemented in xmms and audacious. it's somewhere down on my todo list. I like to have it work on all frontends even uade123.

the double msg is normal xmms behaviour, iirc... files get checked when added to playlist and then it gets checked when it should be played...

hehe, your p3-800 seems to perform better than mine... or it's the sinc filter :)
-&gt; Cpu(s): 41.6% us,  4.7% sy,  0.0% ni, 52.1% id,  0.7% wa,  0.9% hi,  0.0% si

---

From: shd
Date: Wed Jan 18 00:13:37 2006

To: Kohina-UADE-Forum
[quote:34706c29d8="asle"]made the replacements and it compiled all right save for the following warning :

manpage says this :
SYNOPSIS

     void
     bzero(void *b, size_t len);
...
got the same hang-up when encountering the following include :
#include &lt;netinet/in.h&gt;
The suggested replacements works all right.
[/quote:34706c29d8]

Notice that we do not use bzero in unixatomic.c. It's the FD_ZERO macro from FreeBSD headers that uses it. What does 'man 2 select' say about includes? What does 'man ntohs' say about includes?

---

From: asle
Date: Wed Jan 18 09:46:32 2006

To: Kohina-UADE-Forum
[quote:d22274ba15="shd"]
Notice that we do not use bzero in unixatomic.c. It's the FD_ZERO macro from FreeBSD headers that uses it. What does 'man 2 select' say about includes? What does 'man ntohs' say about includes?[/quote:d22274ba15]

ntohs : (man 3)
SYNOPSIS
     #include &lt;sys/param.h&gt;

select : (man 2)
SYNOPSIS

     int
     select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
         struct timeval *timeout);

     FD_SET(fd, &amp;fdset);

     FD_CLR(fd, &amp;fdset);

     FD_ISSET(fd, &amp;fdset);

     FD_ZERO(&amp;fdset);

if you have any further question, don't hesitate.
Sylvain

---

From: asle
Date: Mon Feb 27 23:57:07 2006

To: Kohina-UADE-Forum
with the latest CVS (just made it a minute ago) :

gcc34 -Wall -O2 -I../../include -I../common  -I/usr/local/include    -g -o uade123 uade123.o strlrep.o unixatomic.o uadeipc.o amifilemagic.o chrarray.o playlist.o eagleplayer.o unixwalkdir.o effects.o playloop.o audio.o terminal.o uadecontrol.o uadeconf.o md5.o unixipc.o -L/usr/local/lib -lao  
uade123.o: In function `main':
/usr/home/uade/uade/src/frontends/uade123/uade123.c:366: undefined reference to `getopt_long'
collect2: ld returned 1 exit status
gmake: *** [uade123] Error 1
gmake: Leaving directory `/usr/home/uade/uade/src/frontends/uade123'
*** Error code 2

I seem to have another pb ;). Ok, I trashed out uade123 and all is fine now. *geee*.

---

From: shd
Date: Tue Feb 28 09:38:48 2006

To: Kohina-UADE-Forum
[quote:cff41a5472="asle"]with the latest CVS (just made it a minute ago) :

I seem to have another pb ;). Ok, I trashed out uade123 and all is fine now. *geee*.[/quote:cff41a5472]

According to fellows at #freebsd, getopt_long() emerged for FreeBSD 5.0. Older versions can use gnulibiberty library.

Please install gnulibiberty, and the edit the Makefile at src/frontends/uade123/. Add the appropriate linking term for that lib, and try to compile it again.

btw. people at #freebsd at IRCNet were very helpful in this matter :)

---

From: asle
Date: Tue Feb 28 19:54:01 2006

To: Kohina-UADE-Forum
[quote:f4baebec58="shd"]According to fellows at #freebsd, getopt_long() emerged for FreeBSD 5.0. Older versions can use gnulibiberty library.

btw. people at #freebsd at IRCNet were very helpful in this matter :)[/quote:f4baebec58]

I did. It's part of the 'binutils' package in fact, but isn't installed by default. In fact, I had the 'freelibiberty' that was installed with 'ddd3'. Anyway, forcing the install and adding the '-liberty' in the Makefile did the trick :D.
So thank you very much for this.

Sylvain

---

From: shd
Date: Tue Feb 28 20:03:48 2006

To: Kohina-UADE-Forum
[quote:64187bab00="asle"]
I did. It's part of the 'binutils' package in fact, but isn't installed by default. In fact, I had the 'freelibiberty' that was installed with 'ddd3'. Anyway, forcing the install and adding the '-liberty' in the Makefile did the trick :D.
So thank you very much for this.
[/quote:64187bab00]

So how should we fix this? We obviously need some configure script trick to detect this situation.

Also, would you send me a patch against INSTALL.readme that documents the required components for FreeBSD x&lt;5.0?