Menu

problems building library

Help
john_1726
2008-08-18
2013-03-26
  • john_1726

    john_1726 - 2008-08-18

    Hi,

    When I perform a make on Red Hat Enterprise 5, I receive the following output,

    make[1]: Leaving directory `/home/rmoore/workspace/libpbcd-0.2.0/pbcd'
    make[1]: Entering directory `/home/rmoore/workspace/libpbcd-0.2.0/objs'
    cp ../pbcd/*.o .
    cc  *.o -o libpbcd.so
    /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o: In function `_start':
    (.text+0x18): undefined reference to `main'
    collect2: ld returned 1 exit status
    make[1]: *** [libpbcd] Error 1
    make[1]: Leaving directory `/home/rmoore/workspace/libpbcd-0.2.0/objs'
    make: *** [all] Error 2

    Do you have any suggestions?

    Thank you.

     
    • Lucas Tsatiris

      Lucas Tsatiris - 2008-08-31

      I'm sorry for the late answer but I was on vacations. I returned just yesterday.

      Instead of typing just make, type the following line:

      CFLAGS="-fPIC -O3" LDFLAGS="-shared" make

      I am sorry for the inconvenience but this is the most simple way
      to keep the make process portable across various unices. 

      Just check the project's web page here:
      http://libpbcd.sourceforge.net

      Best regards

      Lucas

       

Log in to post a comment.

MongoDB Logo MongoDB