I can not find the right library!
I want to build some prog's like the "PLP - Public Line Printer Spooler",
"xview3", "xmahjongg" etc. With every program i have the same problem -
i'm missing two library functions!
The environment i use consists of Linux 0.98 pl0, the X Window system
running XFree 1.1 and jump table 4.1.
For example, when i 'make' "PLP" it results in this output:
cc -g -I. -I../src -DDEBUG=1 -DIS_LINUX=1 -DNOSYSLOG=1 -DTERMCAP=1 -o lpd banner.o checkperm.o control_ops.o displayq.o errormsg.o getopt.o global.o link_support.o localprinter.o lockfile.o lpd.o mexecv.o print_support.o printcap.o recvfiles.o remote_ops.o remoteprinter.o rmjob.o sendmail.o servicereq.o setstatus.o setup_filter.o setup_test.o startserver.o startprinter.o utils.o find_name.o
./src/link_support.c:123 (link_support.o): Undefined symbol _gethostbyname referenced from text segment
./src/link_support.c:452 (link_support.o): Undefined symbol _getservbyname referenced from text segment
./src/utils.c:737 (utils.o): Undefined symbol _gethostbyname referenced from text segment
make: *** [lpd] Error 1
As you can see there is no 'gethostbyname' and no 'getservbyname'.
The other prog's are missing the same functions!
I checked all my '.a' files but could not find any of these functions.
What i could not verify are the files in /lib, i do not know who to figure
out what is inside these files.
Here are my directory listings of '/lib', '/usr/lib' and of
'/usr/lib/gcc-lib/i386-linux/2.2.2'. There is also a part of my 'specs'
file, but only nonempty entries!!
'/lib'
======
-rwxr-xr-x 1 bin bin 54276 Oct 2 02:19 XawVen.so.2.1*
-rwxr-xr-x 1 bin bin 54276 Oct 2 02:19 XtVen.so.2.1*
lrwxrwxrwx 1 root root 37 Aug 10 22:11 cpp -> /usr/lib/gcc-lib/i386-linux/2.2.2/cpp*
lrwxrwxrwx 1 root root 4 Nov 24 22:57 jump -> jump@
-rwxr-xr-x 1 bin bin 607236 Oct 2 02:18 libX11.so.2.1*
-rwxr-xr-x 1 bin bin 173060 Jun 28 20:50 libc.2.2.2*
lrwxrwxrwx 1 root root 16 Nov 10 19:59 libc.so.4 -> /lib/libc.so.4.1*
-rwxr-xr-x 1 bin bin 607236 Sep 7 22:32 libc.so.4.1*
-rwxr-xr-x 1 bin bin 13316 Jul 4 23:25 libhard.2.2.2*
-rwxr-xr-x 1 bin bin 103428 Sep 4 07:14 libhard.so.4.0*
-rwxr-xr-x 1 bin bin 13316 Jun 28 21:09 libm.2.2.2*
lrwxrwxrwx 1 root root 16 Nov 10 19:59 libm.so.4 -> /lib/libm.so.4.0*
-rwxr-xr-x 1 bin bin 103428 Sep 4 07:11 libm.so.4.0*
-rwxr-xr-x 1 bin bin 13316 Jul 4 23:25 libsoft.2.2.2*
-rwxr-xr-x 1 bin bin 3480 Aug 4 23:06 makewhatis*
-rwxr-xr-x 1 bin bin 877 Aug 4 23:06 manpath.config*
'/usr/lib'
==========
lrwxrwxrwx 1 root root 37 Aug 10 22:11 cpp -> /usr/lib/gcc-lib/i386-linux/2.2.2/cpp*
-rw-rw-r-- 1 root root 0 Sep 21 21:50 crontab
drwxr-xr-x 3 bin bin 48 Aug 10 21:51 gcc-lib/
drwxr-xr-x 4 root root 96 Nov 13 21:45 groff/
-rw-r--r-- 1 root root 7749 Aug 10 20:58 joerc
lrwxrwxrwx 1 root root 22 Nov 13 14:25 libXaw.a -> /usr/X386/lib/libXaw.a
lrwxrwxrwx 1 root root 21 Nov 13 14:25 libXi.a -> /usr/X386/lib/libXi.a
-rw-r--r-- 1 root root 3916 Jun 11 02:06 libiberty.a
-rw-rw-r-- 1 root root 51556 Nov 18 23:11 libinet.a
-rwxr-xr-x 1 root root 34416 Oct 31 22:13 libolgx.a*
-rw-r--r-- 1 root root 54312 Sep 21 01:59 librpclib.a
-rwxr-xr-x 1 root root 1301656 Nov 1 14:02 libxview.a*
-rwxr-xr-x 1 root root 3480 Aug 10 21:10 makewhatis*
-rw-r--r-- 1 root root 877 Aug 10 20:58 manpath.config
-rw-r--r-- 1 root root 1130 Aug 10 20:58 more.help
drwxrwxr-x 2 root root 48 Aug 18 19:05 tmac/
drwxrwxr-x 2 root root 128 Aug 10 20:53 uucp/
'/usr/lib/gcc-lib/i386-linux/2.2.2/'
=====================================
-rwxr-xr-x 1 bin bin 807936 Jun 18 23:19 cc1*
-rwxr-xr-x 1 bin bin 1094656 Jun 18 23:20 cc1plus*
-rwxr-xr-x 1 bin bin 111616 Jun 18 23:21 cpp*
-rwxr-xr-x 1 bin bin 388 May 3 1992 crt0.o*
-rwxr-xr-x 1 bin bin 542 Jun 19 00:45 gcrt0.o*
drwxr-xr-x 2 bin bin 272 Aug 10 21:51 include/
-rwxr-xr-x 1 bin bin 274266 Jun 28 20:26 libc.a*
-rwxr-xr-x 1 bin bin 308170 Jun 28 21:37 libc_p.a*
-rwxr-xr-x 1 bin bin 36178 Jun 28 09:05 libcurses.a*
-rwxr-xr-x 1 bin bin 20018 Jun 25 07:48 libdbm.a*
-rwxr-xr-x 1 bin bin 237090 Jun 23 12:09 libg++.a*
-rwxr-xr-x 1 bin bin 1677916 Jun 28 21:16 libg.a*
-rwxr-xr-x 1 bin bin 94074 Jun 19 06:49 libgcc.a*
-rwxr-xr-x 1 bin bin 3044 Jun 26 04:43 libgmon.a*
-rwxr-xr-x 1 bin bin 14412 Jun 25 07:48 libhard.a*
-rwxr-xr-x 1 bin bin 12324 Jun 26 04:44 libinet.a*
lrwxrwxrwx 1 root root 43 Aug 10 22:11 libm.a -> /usr/lib/gcc-lib/i386-linux/2.2.2/libsoft.a*
-rwxr-xr-x 1 bin bin 264 Jun 25 07:48 libmcheck.a*
-rwxr-xr-x 1 bin bin 15900 Jun 25 07:48 libsoft.a*
-rwxr-xr-x 1 bin bin 5268 Jun 25 07:48 libtermcap.a*
drwxr-xr-x 2 bin bin 208 Aug 10 22:11 shared/
-rwxr-xr-x 1 root root 480 Nov 24 21:35 specs*
'specs'
========
*lib:
%{g*:-lg} %{!g*:%{!p:%{!pg:-lc}}%{p:-lgmon -lc_p}%{pg:-lgmon -lc_p}}
*startfile:
%{g*:crt0.o%s} %{!g*:%{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s %{!static:%{jump:-L/usr/lib/gcc-lib/i386-linux/2.2.2/jump} %{!jump:-L/usr/lib/gcc-lib/i386-linux/2.2.2/shared}}}}}
*switches_need_spaces:
*signed_char:
%{funsigned-char:-D__CHAR_UNSIGNED__}
================
BTW, a friend of mine, who installed the SLS distribution encountered the
same problem, but i don't know his environment, especially his 'specs' file.
Please mail any suggestions!
Many thanks in advance, Wolfgang.
+------------------------------------+----------------------------------------+
|Wolfgang Zweimueller | Student of Computer Science |
|Itzlinger Hauptstrasse 44a | at the University of Salzburg |
|A-5020 SALZBURG, AUSTRIA | |
+------------------------------------+----------------------------------------+
|E-Mail: wzwei@cosy.sbg.ac.at | |
|Phone: (0043)662-457583 | |
+------------------------------------+----------------------------------------+
| Eric Paris | TALPA - a threat model? well sorta. |
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
| Andrew Morton | Re: [BUILD-FAILURE] 2.6.26-rc8-mm1 - x86 - __ptep_modify_prot_start() missing |
| Bodo Eggert | Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override. |
git: | |
| Pavel Roskin | Implementing branch attributes in git config |
| Jon Smirl | Importing Mozilla CVS into git |
| Jon Smirl | Figured out how to get Mozilla into git |
| Jakub Narebski | Re: VCS comparison table |
| Richard Stallman | Real men don't attack straw men |
| Adam Getchell | Re: About Xen: maybe a reiterative question but .. |
| carlopmart | About Xen: maybe a reiterative question but .. |
| Bertram Scharpf | First install: Grub doesn't find partitions |
| Waskiewicz Jr, Peter P | RE: [PATCH 2/3][NET_BATCH] net core use batching |
| Jeff Kirsher | [PATCH 1/3] e1000e: add support for the 82567LM-4 device |
| Ayaz Abdulla | [PATCH] forcedeth: msi interrupts |
| Corey Hickey | [PATCH 10/10] Use nested compat attributes to pass parameters. |
