libs under solaris

libs under solaris

Post by Filip Ruszkowsk » Sun, 12 Nov 2000 04:00:00



Hi All!

I have trouble compiling a program (nportredird) under solaris 7. After some
dinking in vi, adding #includes, changing #defines, replacing inet_aton()'s
with inet_addr()'s etc., I faced a problem can't solve - it concerns the
libs. In the last part of make - linking - I get this:
...
 Linking object files...

gcc   obj/accesslist.o obj/configfile.o obj/configlexutil.o
obj/configparse.o obj/dnscache.o obj/firingsquad.o obj/list.o obj/main.o
obj/misc.o obj/net.o obj/nportredird.o obj/redirection.o obj/session.o
obj/utils.o obj/version.o obj/y.tab.o -o
../bin/nportredird -lpthread -lnsl -lsocket
Undefined                       first referenced
 symbol                             in file
lexer_initialize                    obj/configfile.o
lexer_begin_file                    obj/configfile.o
yylex                               obj/y.tab.o
lexer_setup                         obj/configfile.o
parser_error                        obj/y.tab.o
yyerror                             obj/y.tab.o
ld: fatal: Symbol referencing errors. No output written to
../bin/nportredird
make[1]: *** [nportredird] Error 1
make[1]: Leaving directory `/usr/home/filip/nportredird-0.5/src'
make: *** [all] Error 2
news$

So I'm missing another '-l????' ?
I looked, and searched, I was strings-ing and grep-ing, but I didn't find
anything. The program compiles fine on Linux. What library do I need for
this to compile???

/Filip

 
 
 

libs under solaris

Post by hume.spamfil.. » Sun, 12 Nov 2000 04:00:00



> Undefined                       first referenced
>  symbol                             in file
> lexer_begin_file                    obj/configfile.o
> yylex                               obj/y.tab.o

You need -ll and -ly

--
Brandon Hume    - hume -> BOFH.Halifax.NS.Ca, http://WWW.BOFH.Halifax.NS.Ca/
                       -> Solaris Snob and general NOCMonkey

 
 
 

1. Build shared lib on Solaris with exsiting static libs

I'm using CC on Solaris to build a shared lib (lib*.so).
I know I need to use -G when I link obj files to produce
a shared lib. To ld with obj files with -G, obj files need
to be compiled with the -pic option. But I also need to
link with third-party static libs ( *.a files). Will this cause
link to fail if third-party obj files are compiled without the
-pic option. If yes, how do I get around this? Or is their
another way to build a shared lib without the -G option?

You help will be highly appreicated.

Thanks in advance.
Jun Wu

2. NFS mounting volumes on OS/2 (DOS, NT) systems

3. SPARCompiler C++ and curses lib under Solaris 1.1

4. MS Mail client for linux ??

5. Compiling other gnome libs under Solaris 8

6. ldbf client/server DBMS

7. anyone know if there's a getopt lib for solaris ?

8. Termcaps / Terminfo's

9. Creating shared libs under Solaris 2.4 x86?

10. creating shared lib on Solaris with gcc

11. building 64-bit shared libs on Solaris 8

12. SYBASE db-lib and solaris threads

13. Anyone know of a version of OpenLook OLIT libs for Solaris Intel?