I'm trying to port ede2.0 on minix3.2.1 but when compiling edelib with jam, I get errors like './lib/libedelib.so: undefined reference to tcsetattr/tcgetattr' as pasted below. The errors are the same for all the failing 22 targets but I would not paste the complete list here. I tried solving/hacking it many ways (symlinking libc (both .a and .so) wherever possible, making use of -L option adding the corresponding lib directory to LDFLAGS and making use of -I (capital i) option to add the appropriate include directory to CPPFLAGS) without any result:( Could you please, help me to find what the issue might be? Thanks in advance!
Glad to see you are trying EDE on Minix! From your report, looks like
some of the libraries are implicitly using termcap library. To solve
it you can either do this:
export LIBS="-ltermcap"
./configure <your flags>
jam
or if you hesitate to recompile again, simply do this:
jam clean
jam -sSTDLIB="-ltermcap -lstdc++"
Works?
Regards.
Sanel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you drop me an error line, just like you did in the first post? Where minix stores libtermcap.a (or libtermcap.so) library? (hint: try "ls -la /usr/lib/libtermcap*" or "ls -la /usr/local/lib/libtermcap*").
Regards,
Sanel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, I didn't paste anything as the errors are the same. Please, find below the complete stuff. I also looked up libtermcap for your information. Thanks again!
Regards,
r0ller
ls -la /usr/lib/libtermcap*:
lrwxrwxrwx 1 root operator 13 Jun 24 23:39 /usr/lib/libtermcap.a -> libterminfo.a
lrwxrwxrwx 1 root operator 14 Jun 24 23:39 /usr/lib/libtermcap.so -> libterminfo.so
lrwxrwxrwx 1 root operator 16 Jun 24 23:39 /usr/lib/libtermcap.so.0 -> libterminfo.so.0
lrwxrwxrwx 1 root operator 18 Jun 24 23:39 /usr/lib/libtermcap.so.0.6 -> libterminfo.so.0.0
lrwxrwxrwx 1 root operator 17 Jun 24 23:39 /usr/lib/libtermcap_pic.a -> libterminfo_pic.a
ls -la /usr/lib/libterminfo*:
-rw-r-r- 1 root operator 53530 Jun 21 23:12 /usr/lib/libterminfo.a
lrwxrwxrwx 1 root operator 28 Jun 24 23:39 /usr/lib/libterminfo.so -> ../../lib/libterminfo.so.0.0
lrwxrwxrwx 1 root operator 28 Jun 24 23:39 /usr/lib/libterminfo.so.0 -> ../../lib/libterminfo.so.0.0
lrwxrwxrwx 1 root operator 28 Jun 24 23:39 /usr/lib/libterminfo.so.0.0 -> ../../lib/libterminfo.so.0.0
-rw-r-r- 1 root operator 58498 Jun 21 23:12 /usr/lib/libterminfo_pic.a
jam stdout&stderr for ./configure -enable-shared -prefix/usr/pkg LIBS="-ltermcap":
doxygen is missing; skiping…
…found 598 target(s)…
…updating 22 target(s)…
Link test/run_tests
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link test/run_tests …
Link test/xdg/icon-theme
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link test/xdg/icon-theme …
Link examples/egroup
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/egroup …
Link examples/egroup2
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/egroup2 …
Link examples/icon_chooser
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/icon_chooser …
Link examples/font_chooser
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/font_chooser …
Link examples/sevenseg
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/sevenseg …
Link examples/dirwatch
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/dirwatch …
Link examples/list_view
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/list_view …
Link examples/xsettings_setter
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/xsettings_setter …
Link examples/xsettings_client
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/xsettings_client …
Link examples/menu
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/menu …
Link examples/theme
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/theme …
Link examples/animate
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/animate …
Link examples/script_editor
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/script_editor …
Link examples/elinks
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/elinks …
Link examples/efile
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/efile …
Link examples/sipc_client
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/sipc_client …
Link examples/sipc_server
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link examples/sipc_server …
Link tools/edelib-script/edelib-script
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link tools/edelib-script/edelib-script …
Link tools/edelib-dbus-introspect/edelib-dbus-introspect
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
…failed Link tools/edelib-dbus-introspect/edelib-dbus-introspect …
Link tools/edelib-update-font-cache/edelib-update-font-cache
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
Nevertheless, the idea is great -I'll play with the lib positions a bit. I also had problems in case of one my own developments with the position of libs.
Thanks®ards,
r0ller
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry for the delay but I'm moving from one flat to another so I couldn't deal with the issue for some time. Nevertheless, I made no success by playing with the lib positions. I tried a small piece of C code calling tcgetattr and it does work, so the devil lies in linking indeed but no clue where:( I keep trying fixing it but any ideas are welcome:)
Thanks®ards,
r0ller
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry for late reply; I wasn't near computer almost a week… I'm writing howto about installing EDE on minix, but I'm curious, how did you installed DBus? Did you used pkgsrc or vanilla dbus sources?
I'm asking this as AFAIK minix does not have pthread implementation and DBus depends on it. If you used pkgsrc, did it have a large number of dependencies?
Regards,
Sanel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Never mind. I was also busy with moving from one flat to the other. This week and the next I hopfully have some time to continue solving the issue. Concerning DBus: I installed it via pkgsrc but it has tons of dependencies and I also had to do minor patches to a handful of minix3 includes. I also had to patch Directory.cpp for edelib2.0 as follows:
Directory.cpp original line 184-:
long buffsz = sysconf(_SC_GETPW_R_SIZE_MAX);
if(buffsz < 0)
buffsz = 1024;
Concerning pthreads, minix3 has it so that was not an issue -except that I compiled everything with dynamic linking enabled (which is realtively new in minix3) and sometimes it results in hickups during installation. The only thing minix3 lacks in that regard are kernel threads but it's not an issue in this case.
Regards,
r0ller
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for sending a patch! I had similar issues with stock DBus on
Minix with _SC_GETPW_R_SIZE_MAX, but didn't have enough time to
recompile edelib.
I added option to recompile EDE/edelib without DBus; just feed
'-disable-dbus' to edelib's configure script and EDE code will pick
that too. However, this feature is in svn code so if you are going to
use it, pull the latest edelib and EDE code.
Luckily, EDE does not use DBus extensively (most notable is for
notifications) and I planned to introduce more DBus usage; originally I
thought DBus can be compiled without threading, but I was wrong. This
means I will try to stay away from DBus as much as possible :)
In upcoming days I will try to recompile EDE/edelib on my Minix
version too and will keep you updated; also, please let me know if you
manage to do something about this first.
Regards,
Sanel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You're welcome:) The option -disable-dbus is also welcome:) However, I don't think that dbus causes the trouble in my case but I can give a try to the new svn version. I'll let you know the outcome as soon as possible.
Regards,
r0ller
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I compiled edelib/EDE on Minix 3.2.1 (10.0.2.15). What I actually did
is upgraded 3.2.1 to latest kernel (from current), disabled DBus and
compiled stock FLTK without Xft support (downloaded from fltk.org).
During this process, I didn't manage to reproduce your errors… If I
can remember correctly, during compilation of Minix libc I noticed
these functions (tcsetattr, …) to be a part of libc, so maybe the
solution is to update everything to latest Minix version?
Did you manage to compile FLTK with Xft support (antialiasing)? I had
the funny issue: when I compiled it, all fonts (bold and italic) were
shown correctly except normal; they remain invisible, so I reverted
FLTK back without Xft support.
Regards,
Sanel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Great news! I'll also upgrade to current and we'll see then. Concerning FLTK, I checked the config.h used during the installation of it via pkgsrc and USE_XFT was 0 so I guess it got installed without Xft.
Regards,
r0ller
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've just pulled the newest minix3 source from git and rebuilt the system but the result is the same. I'll try pulling ede from your svn and compile it without dbus next. Hopefully, I manage to compile it too:)
Regards,
r0ller
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I managed to install edelib2.0 but when executing jam for ede, I get the stuff below. Didn't you get any of these errors with ede?
Regards,
r0ller
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
…found 918 target(s)…
…updating 2 target(s)…
Link pekwm/pekwm
/usr/pkg/lib/libX11.so: undefined reference to `pthread_cond_signal'
/usr/pkg/lib/libX11.so: undefined reference to `__pthread_select'
/usr/pkg/lib/libX11.so: undefined reference to `__pthread_connect'
/usr/pkg/lib/libX11.so: undefined reference to `__pthread_writev'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_cond_broadcast'
/usr/pkg/lib/libX11.so: undefined reference to `__pthread_readv'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_cond_init'
/usr/pkg/lib/libxcb.so.1: undefined reference to `__pthread_poll'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_mutex_unlock'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_self'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_mutex_destroy'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_mutex_lock'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_cond_wait'
/usr/pkg/lib/libX11.so: undefined reference to `__pthread_read'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_cond_destroy'
/usr/pkg/lib/libX11.so: undefined reference to `__pthread_write'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_mutex_init'
collect2: ld returned 1 exit status
Thanks, that worked! However, now I get a different stuff (see below). Concerning libX11, I rebuilt it via pkgsrc. Binary packages have not yet been rebuilt with dynamic linking enabled since minix has that feature so whatever you install via pkgin will most probably be statically built. If you replace/install a pkg via pkgsrc, you can enable dynamic linking currently with: bmake MINIXDYNAMIC=yes install/replace.
Regards,
r0ller
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
…found 918 target(s)…
…updating 2 target(s)…
Link pekwm/pekwm
InstallEdeProgram: not found
Thanks again, it worked! Managed to get it work even but the resolution set in xorg.conf does not seem to be taken into account. It always appears in 640x480 no matter what I do and sometimes it just gets terminated on startup. I also think I forgot to issue jam -sBUILD_ICON_THEMES=1 so that's the reason for not having icons right?
Regards,
r0ller
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-09-26
icons: sometimes it helped me to install graphic libraries first (development packages for lib jpeg, lib png, etc.) and then compile ede…
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Related to icons, you need to build icons (with 'jam -sBUILD_ICON_THEMES=1'), but it will require either inkscape or rsvg installed. On other hand, you can use any other icon theme (downloaded from from gnome or kde art sites, or tango theme). Just install it in ~/.icons and rename it to 'edeneu'. It can look like:
~/icons/edeneu/
or you can symlink it to icon folder, eg:
ln -s /path/tango-version ~/icons/edeneu
@pixotec, glad to see you around ;)
Regards,
Sanel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
I'm trying to port ede2.0 on minix3.2.1 but when compiling edelib with jam, I get errors like './lib/libedelib.so: undefined reference to tcsetattr/tcgetattr' as pasted below. The errors are the same for all the failing 22 targets but I would not paste the complete list here. I tried solving/hacking it many ways (symlinking libc (both .a and .so) wherever possible, making use of -L option adding the corresponding lib directory to LDFLAGS and making use of -I (capital i) option to add the appropriate include directory to CPPFLAGS) without any result:( Could you please, help me to find what the issue might be? Thanks in advance!
Regards,
r0ller
Link test/run_tests
gcc -o test/run_tests test/UnitTest.o test/utest.o test/util.o test/missing.o test/strutil.o test/file.o test/file_test.o test/directory.o test/datetime.o test/conf.o test/resource.o test/desktopfile.o test/string.o test/list.o test/regex.o test/color.o test/colordb.o test/xml.o test/mime.o test/temp_file.o test/functional.o test/run.o test/run_tests.o test/dbus.o test/xsettings.o test/theme.o -L./lib -ledelib_dbus -ledelib_gui -ledelib -L/usr/pkg/lib -ldbus-1 -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link test/run_tests
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status.
Hi,
Glad to see you are trying EDE on Minix! From your report, looks like
some of the libraries are implicitly using termcap library. To solve
it you can either do this:
export LIBS="-ltermcap"
./configure <your flags>
jam
or if you hesitate to recompile again, simply do this:
jam clean
jam -sSTDLIB="-ltermcap -lstdc++"
Works?
Regards.
Sanel
Hi,
Thanks for the quick reply! Unfortunately though, none of the suggestions helped:( Do you happen to have any other hint? I really ran out of ideas…
Thanks®ards,
r0ller
Hi,
Can you drop me an error line, just like you did in the first post? Where minix stores libtermcap.a (or libtermcap.so) library? (hint: try "ls -la /usr/lib/libtermcap*" or "ls -la /usr/local/lib/libtermcap*").
Regards,
Sanel
Hi,
Sorry, I didn't paste anything as the errors are the same. Please, find below the complete stuff. I also looked up libtermcap for your information. Thanks again!
Regards,
r0ller
ls -la /usr/lib/libtermcap*:
lrwxrwxrwx 1 root operator 13 Jun 24 23:39 /usr/lib/libtermcap.a -> libterminfo.a
lrwxrwxrwx 1 root operator 14 Jun 24 23:39 /usr/lib/libtermcap.so -> libterminfo.so
lrwxrwxrwx 1 root operator 16 Jun 24 23:39 /usr/lib/libtermcap.so.0 -> libterminfo.so.0
lrwxrwxrwx 1 root operator 18 Jun 24 23:39 /usr/lib/libtermcap.so.0.6 -> libterminfo.so.0.0
lrwxrwxrwx 1 root operator 17 Jun 24 23:39 /usr/lib/libtermcap_pic.a -> libterminfo_pic.a
ls -la /usr/lib/libterminfo*:
-rw-r-r- 1 root operator 53530 Jun 21 23:12 /usr/lib/libterminfo.a
lrwxrwxrwx 1 root operator 28 Jun 24 23:39 /usr/lib/libterminfo.so -> ../../lib/libterminfo.so.0.0
lrwxrwxrwx 1 root operator 28 Jun 24 23:39 /usr/lib/libterminfo.so.0 -> ../../lib/libterminfo.so.0.0
lrwxrwxrwx 1 root operator 28 Jun 24 23:39 /usr/lib/libterminfo.so.0.0 -> ../../lib/libterminfo.so.0.0
-rw-r-r- 1 root operator 58498 Jun 21 23:12 /usr/lib/libterminfo_pic.a
jam stdout&stderr for ./configure -enable-shared -prefix/usr/pkg LIBS="-ltermcap":
doxygen is missing; skiping…
…found 598 target(s)…
…updating 22 target(s)…
Link test/run_tests
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o test/run_tests test/UnitTest.o test/utest.o test/util.o test/missing.o test/strutil.o test/file.o test/file_test.o test/directory.o test/datetime.o test/conf.o test/resource.o test/desktopfile.o test/string.o test/list.o test/regex.o test/color.o test/colordb.o test/xml.o test/mime.o test/temp_file.o test/functional.o test/run.o test/run_tests.o test/dbus.o test/xsettings.o test/theme.o -ltermcap -lc -L./lib -ledelib_dbus -ledelib_gui -ledelib -L/usr/pkg/lib -ldbus-1 -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link test/run_tests …
Link test/xdg/icon-theme
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o test/xdg/icon-theme test/xdg/icon-theme.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link test/xdg/icon-theme …
Link examples/egroup
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/egroup examples/egroup.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/egroup …
Link examples/egroup2
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/egroup2 examples/egroup2.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/egroup2 …
Link examples/icon_chooser
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/icon_chooser examples/icon_chooser.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/icon_chooser …
Link examples/font_chooser
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/font_chooser examples/font_chooser.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/font_chooser …
Link examples/sevenseg
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/sevenseg examples/sevenseg.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/sevenseg …
Link examples/dirwatch
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/dirwatch examples/dirwatch.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/dirwatch …
Link examples/list_view
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/list_view examples/list_view.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/list_view …
Link examples/xsettings_setter
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/xsettings_setter examples/xsettings_setter.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/xsettings_setter …
Link examples/xsettings_client
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/xsettings_client examples/xsettings_client.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/xsettings_client …
Link examples/menu
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/menu examples/menu.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/menu …
Link examples/theme
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/theme examples/theme.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/theme …
Link examples/animate
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/animate examples/animate.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/animate …
Link examples/script_editor
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/script_editor examples/script_editor.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/script_editor …
Link examples/elinks
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/elinks examples/elinks.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/elinks …
Link examples/efile
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/efile examples/efile.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/efile …
Link examples/sipc_client
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/sipc_client examples/sipc_client.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/sipc_client …
Link examples/sipc_server
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o examples/sipc_server examples/sipc_server.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link examples/sipc_server …
Link tools/edelib-script/edelib-script
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o tools/edelib-script/edelib-script tools/edelib-script/edelib-script.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -ledelib_gui -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link tools/edelib-script/edelib-script …
Link tools/edelib-dbus-introspect/edelib-dbus-introspect
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o tools/edelib-dbus-introspect/edelib-dbus-introspect tools/edelib-dbus-introspect/edelib-dbus-introspect.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -ledelib_dbus -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -ledelib -L/usr/pkg/lib -ldbus-1 -lstdc++
…failed Link tools/edelib-dbus-introspect/edelib-dbus-introspect …
Link tools/edelib-update-font-cache/edelib-update-font-cache
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
gcc -o tools/edelib-update-font-cache/edelib-update-font-cache tools/edelib-update-font-cache/edelib-update-font-cache.o -ltermcap -lc -L./lib -ledelib_gui -ledelib -ledelib_gui -ledelib -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
…failed Link tools/edelib-update-font-cache/edelib-update-font-cache …
…failed updating 22 target(s)…
Hi,
Wow, thanks for detail output and number of tries!
Can you executed this command (from edelib source folder), please:
gcc -o examples/egroup examples/egroup.o -lc -L./lib -ledelib_gui -ledelib -ltermcap -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++
I switched the position of -ltermcap, so it goes after -ledelib; AFAIK this can make difference on some systems and linkers.
Regards,
Sanel
Hi Sanel,
I tried it but I get the same error:(
./lib/libedelib.so: undefined reference to `tcsetattr(int, int, termios const*)'
./lib/libedelib.so: undefined reference to `tcgetattr(int, termios*)'
collect2: ld returned 1 exit status
Nevertheless, the idea is great -I'll play with the lib positions a bit. I also had problems in case of one my own developments with the position of libs.
Thanks®ards,
r0ller
I looked at couple of places… looks like minix keep this functions in libc, which means you could try with:
gcc -o examples/egroup examples/egroup.o -L./lib -ledelib_gui -ledelib -ltermcap -lc -L/usr/pkg/lib -lcompat_minix -lminlib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/ -lfltk_images -lpng15 -lz -ljpeg -lfltk -lXext -lpthread -lm -lX11 -lstdc++ -lc
If this fails, as you observed, try to manualy change the positions. Please let me know so I can write minix related howto on wiki.
Regards,
Sanel
Hi Sanel,
Sorry for the delay but I'm moving from one flat to another so I couldn't deal with the issue for some time. Nevertheless, I made no success by playing with the lib positions. I tried a small piece of C code calling tcgetattr and it does work, so the devil lies in linking indeed but no clue where:( I keep trying fixing it but any ideas are welcome:)
Thanks®ards,
r0ller
Hi,
Sorry for late reply; I wasn't near computer almost a week… I'm writing howto about installing EDE on minix, but I'm curious, how did you installed DBus? Did you used pkgsrc or vanilla dbus sources?
I'm asking this as AFAIK minix does not have pthread implementation and DBus depends on it. If you used pkgsrc, did it have a large number of dependencies?
Regards,
Sanel
Hi Sanel,
Never mind. I was also busy with moving from one flat to the other. This week and the next I hopfully have some time to continue solving the issue. Concerning DBus: I installed it via pkgsrc but it has tons of dependencies and I also had to do minor patches to a handful of minix3 includes. I also had to patch Directory.cpp for edelib2.0 as follows:
Directory.cpp original line 184-:
long buffsz = sysconf(_SC_GETPW_R_SIZE_MAX);
if(buffsz < 0)
buffsz = 1024;
MODIFICATION:
long buffsz;
#ifdef _SC_GETPW_R_SIZE_MAX
buffsz = sysconf(_SC_GETPW_R_SIZE_MAX);
if(buffsz < 0)
buffsz = 1024;
#else
buffsz = 1024;
#endif
Concerning pthreads, minix3 has it so that was not an issue -except that I compiled everything with dynamic linking enabled (which is realtively new in minix3) and sometimes it results in hickups during installation. The only thing minix3 lacks in that regard are kernel threads but it's not an issue in this case.
Regards,
r0ller
Hi,
Thank you for sending a patch! I had similar issues with stock DBus on
Minix with _SC_GETPW_R_SIZE_MAX, but didn't have enough time to
recompile edelib.
I added option to recompile EDE/edelib without DBus; just feed
'-disable-dbus' to edelib's configure script and EDE code will pick
that too. However, this feature is in svn code so if you are going to
use it, pull the latest edelib and EDE code.
Luckily, EDE does not use DBus extensively (most notable is for
notifications) and I planned to introduce more DBus usage; originally I
thought DBus can be compiled without threading, but I was wrong. This
means I will try to stay away from DBus as much as possible :)
In upcoming days I will try to recompile EDE/edelib on my Minix
version too and will keep you updated; also, please let me know if you
manage to do something about this first.
Regards,
Sanel
Hi Sanel,
You're welcome:) The option -disable-dbus is also welcome:) However, I don't think that dbus causes the trouble in my case but I can give a try to the new svn version. I'll let you know the outcome as soon as possible.
Regards,
r0ller
Hi,
I compiled edelib/EDE on Minix 3.2.1 (10.0.2.15). What I actually did
is upgraded 3.2.1 to latest kernel (from current), disabled DBus and
compiled stock FLTK without Xft support (downloaded from fltk.org).
During this process, I didn't manage to reproduce your errors… If I
can remember correctly, during compilation of Minix libc I noticed
these functions (tcsetattr, …) to be a part of libc, so maybe the
solution is to update everything to latest Minix version?
Did you manage to compile FLTK with Xft support (antialiasing)? I had
the funny issue: when I compiled it, all fonts (bold and italic) were
shown correctly except normal; they remain invisible, so I reverted
FLTK back without Xft support.
Regards,
Sanel
Hi Sanel,
Great news! I'll also upgrade to current and we'll see then. Concerning FLTK, I checked the config.h used during the installation of it via pkgsrc and USE_XFT was 0 so I guess it got installed without Xft.
Regards,
r0ller
Hi Sanel,
I've just pulled the newest minix3 source from git and rebuilt the system but the result is the same. I'll try pulling ede from your svn and compile it without dbus next. Hopefully, I manage to compile it too:)
Regards,
r0ller
Hi Sanel,
I managed to install edelib2.0 but when executing jam for ede, I get the stuff below. Didn't you get any of these errors with ede?
Regards,
r0ller
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
…found 918 target(s)…
…updating 2 target(s)…
Link pekwm/pekwm
/usr/pkg/lib/libX11.so: undefined reference to `pthread_cond_signal'
/usr/pkg/lib/libX11.so: undefined reference to `__pthread_select'
/usr/pkg/lib/libX11.so: undefined reference to `__pthread_connect'
/usr/pkg/lib/libX11.so: undefined reference to `__pthread_writev'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_cond_broadcast'
/usr/pkg/lib/libX11.so: undefined reference to `__pthread_readv'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_cond_init'
/usr/pkg/lib/libxcb.so.1: undefined reference to `__pthread_poll'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_mutex_unlock'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_self'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_mutex_destroy'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_mutex_lock'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_cond_wait'
/usr/pkg/lib/libX11.so: undefined reference to `__pthread_read'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_cond_destroy'
/usr/pkg/lib/libX11.so: undefined reference to `__pthread_write'
/usr/pkg/lib/libX11.so: undefined reference to `pthread_mutex_init'
collect2: ld returned 1 exit status
gcc -o pekwm/pekwm pekwm/ActionHandler.o pekwm/ActionMenu.o pekwm/Atoms.o pekwm/AutoProperties.o pekwm/CfgParser.o pekwm/CfgParserKey.o pekwm/CfgParserSource.o pekwm/Client.o pekwm/CmdDialog.o pekwm/ColorHandler.o pekwm/Compat.o pekwm/Completer.o pekwm/Config.o pekwm/DecorMenu.o pekwm/DockApp.o pekwm/FontHandler.o pekwm/Frame.o pekwm/FrameListMenu.o pekwm/Harbour.o pekwm/HarbourMenu.o pekwm/ImageHandler.o pekwm/InputDialog.o pekwm/KeyGrabber.o pekwm/main.o pekwm/ManagerWindows.o pekwm/MenuHandler.o pekwm/Observable.o pekwm/PDecor.o pekwm/PFont.o pekwm/PImage.o pekwm/PImageIcon.o pekwm/PImageLoaderJpeg.o pekwm/PImageLoaderPng.o pekwm/PImageLoaderXpm.o pekwm/PixmapHandler.o pekwm/PMenu.o pekwm/PScreen.o pekwm/PTexturePlain.o pekwm/PWinObj.o pekwm/PWinObjReference.o pekwm/RegexString.o pekwm/ScreenResources.o pekwm/SearchDialog.o pekwm/StatusWindow.o pekwm/TextureHandler.o pekwm/Theme.o pekwm/Util.o pekwm/WindowManager.o pekwm/WORefMenu.o pekwm/WorkspaceIndicator.o pekwm/Workspaces.o -L/usr/pkg/lib -liconv -lX11 -lXext -L/usr/pkg/X11R6/lib -R/usr/pkg/X11R6/lib -L/usr/pkg/lib -lpng15 -lstdc++
…failed Link pekwm/pekwm …
…skipped all for lack of exe…
…failed updating 1 target(s)…
…skipped 1 target(s)…
Hi,
Good you manage to compile edelib. I tried to post some questions on minix group list, but looks my message got moderated :S
Anyway, how you manage to get shared library support? I'm struggling with that (my libX11 is static library)… To get it working, just either do this:
export LIBS="-lptheread"
./configure <flags>
jam
or open pekwm/Jamfile and modify this line:
LinkAgainst pekwm : $(PEKWM_LIBS) $(STDLIB) -lpthread ;
jam
Works?
Regards,
Sanel
Sorry, I made a typo; it should be:
export LIBS="-lpthread"
Regards,
Sanel
Hi Sanel,
Thanks, that worked! However, now I get a different stuff (see below). Concerning libX11, I rebuilt it via pkgsrc. Binary packages have not yet been rebuilt with dynamic linking enabled since minix has that feature so whatever you install via pkgin will most probably be statically built. If you replace/install a pkg via pkgsrc, you can enable dynamic linking currently with: bmake MINIXDYNAMIC=yes install/replace.
Regards,
r0ller
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
PYTHON not defined. This means python was not found on your system. Documentation will not be build!
…found 918 target(s)…
…updating 2 target(s)…
Link pekwm/pekwm
InstallEdeProgram: not found
gcc -o pekwm/pekwm pekwm/ActionHandler.o pekwm/ActionMenu.o pekwm/Atoms.o pekwm/AutoProperties.o pekwm/CfgParser.o pekwm/CfgParserKey.o pekwm/CfgParserSource.o pekwm/Client.o pekwm/CmdDialog.o pekwm/ColorHandler.o pekwm/Compat.o pekwm/Completer.o pekwm/Config.o pekwm/DecorMenu.o pekwm/DockApp.o pekwm/FontHandler.o pekwm/Frame.o pekwm/FrameListMenu.o pekwm/Harbour.o pekwm/HarbourMenu.o pekwm/ImageHandler.o pekwm/InputDialog.o pekwm/KeyGrabber.o pekwm/main.o pekwm/ManagerWindows.o pekwm/MenuHandler.o pekwm/Observable.o pekwm/PDecor.o pekwm/PFont.o pekwm/PImage.o pekwm/PImageIcon.o pekwm/PImageLoaderJpeg.o pekwm/PImageLoaderPng.o pekwm/PImageLoaderXpm.o pekwm/PixmapHandler.o pekwm/PMenu.o pekwm/PScreen.o pekwm/PTexturePlain.o pekwm/PWinObj.o pekwm/PWinObjReference.o pekwm/RegexString.o pekwm/ScreenResources.o pekwm/SearchDialog.o pekwm/StatusWindow.o pekwm/TextureHandler.o pekwm/Theme.o pekwm/Util.o pekwm/WindowManager.o pekwm/WORefMenu.o pekwm/WorkspaceIndicator.o pekwm/Workspaces.o -L/usr/pkg/lib -liconv -lX11 -lXext -L/usr/pkg/X11R6/lib -R/usr/pkg/X11R6/lib -L/usr/pkg/lib -lpng15 -lstdc++ -lpthread; InstallEdeProgram pekwm
…failed Link pekwm/pekwm …
…removing pekwm/pekwm
…skipped all for lack of exe…
…failed updating 1 target(s)…
…skipped 1 target(s)…
Aaa, got it. Thanks for the info!
Related to your problem, plese check formatting of Jamfile. It should looks like (tail of the file):
LinkAgainst pekwm : $(PEKWM_LIBS) $(STDLIB) -lpthread ;
InstallEdeProgram pekwm ;
Also be aware of spaces before ';'… this is jam idiosyncraticy.
Regads,
Sanel
Regards,
Sanel
Hi Sanel,
Thanks again, it worked! Managed to get it work even but the resolution set in xorg.conf does not seem to be taken into account. It always appears in 640x480 no matter what I do and sometimes it just gets terminated on startup. I also think I forgot to issue jam -sBUILD_ICON_THEMES=1 so that's the reason for not having icons right?
Regards,
r0ller
icons: sometimes it helped me to install graphic libraries first (development packages for lib jpeg, lib png, etc.) and then compile ede…
Hi pixotec,
Thanks for the hint -however, I have libjpeg and libpng installed. Is there any other that ede needs?
Regards,
r0ller
Good; seems everything is up.
Related to icons, you need to build icons (with 'jam -sBUILD_ICON_THEMES=1'), but it will require either inkscape or rsvg installed. On other hand, you can use any other icon theme (downloaded from from gnome or kde art sites, or tango theme). Just install it in ~/.icons and rename it to 'edeneu'. It can look like:
~/icons/edeneu/
or you can symlink it to icon folder, eg:
ln -s /path/tango-version ~/icons/edeneu
@pixotec, glad to see you around ;)
Regards,
Sanel