Hi Guenter!
Shouldn't we meet this week? ;)
I've also changed a thing which looks ugly at FreeBSD ;)
@configure.in:
EXT=pd_`uname -s`
But I needed to remove it later 'cause most files still had "_linux" name.....
Here are the results:
bash-2.05b$ autoconf bash-2.05b$
Nice ;)
Now ./configure -> OK
And make fails because it doesn't found libpthread
I've seen that is located at: /usr/local/lib/pth/
So I've changed the makefile:
LDFLAGS = -L/usr/local/lib/pth -Wl,-export-dynamic LIB = -lm -lpthread
And it now fails with: ---------------------------------------------- cc -DPD -DUNIX -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer -DDL_OPEN -DPA_USE_OSS -DPA_LITTLE_ENDIAN -DUSEAPI_OSS -I../portaudio/pa_common -I../portaudio/pablio -I../portaudio/portmidi-macosx -Werror -DINSTALL_PREFIX="/usr/local" -I. -I/usr/include/tcl8.4 -c -o ../obj/t_main.o t_main.c t_main.c:18:16: tk.h: No such file or directory t_main.c:46: syntax error before '*' token cc1: warnings being treated as errors t_main.c:46: warning: function declaration isn't a prototype t_main.c: In function `main': t_main.c:67: warning: implicit declaration of function `Tk_Main' t_main.c:67: `Tcl_AppInit' undeclared (first use in this function) t_main.c:67: (Each undeclared identifier is reported only once t_main.c:67: for each function it appears in.) t_main.c: At top level: t_main.c:94: syntax error before "Tcl_Interp" t_main.c:17:1: unterminated #ifndef gmake: *** [t_main.o] Error 1 --------------------------------------
Well, this is only a TCL problem, so:
/usr/local/include/tk8.4/tk.h is the place, again to the Makefile!
GINCLUDE = $(INCLUDE) -I/usr/include/tcl8.4
Changed for:
GINCLUDE = $(INCLUDE) -I/usr/local/include/tcl8.4 -I/usr/local/include/tk8.4
and
LDFLAGS = -L/usr/local/lib/pth -Wl,-export-dynamic
for
LDFLAGS = -L/usr/local/lib/pth -L/usr/local/lib -Wl,-export-dynamic
----------------------------
Then it lacked of Xlib.h, so I needed to add /usr/X11R6/include to "GINCLUDE".
and, of course, I also needed the path to libtcl and libtk ....: GLIB = -lX11 -L/usr/X11R6/lib -L/usr/local/lib -ltcl84 -ltk84
AND NOW COMPILES!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
but doesn't install due to my EXT change at configure.in ....
After restoring EXT=...._linux :
It COMPILES, INSTALLS AND WORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Please, get my patchworked makefile and do whatever you think to make FreeBSD Supported!!!
IMHO, configure lacks of tcl/tk detection, as well as libpthread, include paths of these libs and so on, it looks like 3-4 options for configure.
After changing configure.in and adding exactly what Guenter told me, it sets up everything I couldn't solve on my own, remember I don't code multimedia!
Well guys, very nice to work with you!
--------
Faithfully yours,
Kenneth Peiruza Systems Engineer +34-666.23.64.33 GNUnetworks Catalunya http://www.gnunetworks.com