Alex, this was on the 1.4.1 trunk right?
On 01/06/2012 01:09 PM, Norton, Alex wrote:
Hi Pete,
I just tried a fresh install on a fresh Oneiric install and found that I had
two problems,
1. fo-installdeps was not finishing correctly since Oneiric was not one of
the supported distros
2. I was also getting the undefined reference problems.
I have added Oneiric to the distros supported in fo-installdeps and changed the build for
dbtest.c (the -lpq needed to be later in the command line options list). All you should
need to do is an "svn up", run fo-installdeps again and it should make
correctly.
On a side note, before you try accessing the fossology install from a
web-browser, make sure that you do everything in Section 1 of the INSTALL file
found in the root of the FOSSology file tree. There are some important changes
to you php, postgresql, and apache installs that are necessary for a smoothly
running FOSSology install.
Alex Norton
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Peter Jalajas -
Tebuco, Inc.
Sent: Wednesday, January 04, 2012 7:46 PM
To: Gobeille, Robert
Cc: [email protected]
Subject: Re: [FOSSology] Complining 1.4.1 on Ubuntu Oneiric
Hi Bob,
Thanks for the input. I tried the things you suggested a few times,
but just couldn't get it past the "undefined reference to PQ*" errors.
I'm thinking that the "-lpq" gcc option is the roadblock. Do you
have any suggestions on how to easily remedy that?
Thanks again,
Pete
On Sat, Dec 17, 2011 at 6:46 PM, Bob Gobeille<[email protected]> wrote:
Hello Pete,
It looks like fo-installdeps isn't set up for Oneiric yet so I'm glad you
figured out the dependencies. You didn't mention it but I assume you are
following the INSTALL file in the source root.
First make sure libpq is installed. You can use pg_config to do this. Here is
what my system says:
$ pg_config --libdir
/usr/lib
If check that location, you should see the library:
$ ls -l /usr/lib/libpq*
-rw-r--r-- 1 root root 270126 Oct 11 2010 /usr/lib/libpq.a
lrwxrwxrwx 1 root root 12 Nov 30 2010 /usr/lib/libpq.so -> libpq.so.5.2
lrwxrwxrwx 1 root root 12 Nov 30 2010 /usr/lib/libpq.so.5 -> libpq.so.5.2
-rw-r--r-- 1 root root 161848 Oct 11 2010 /usr/lib/libpq.so.5.2
If you don't, you are missing a dependency.
If you do have libpq installed, then you can either:
1) change all the Makefiles (tedious) to include -L {pq library directory}
or
2) change add it in your environment:
export LD_LIBRARY_PATH=$my/libpq/directory $LD_LIBRARY_PATH
You can verify that the linker is following the path with this command:
/sbin/ldconfig -p | grep libpq
Bob Gobeille
On Dec 17, 2011, at 6:40 AM, Peter Jalajas - Tebuco, Inc. wrote:
Hi all,
I'm trying to follow this:
http://www.fossology.org/projects/fossology/wiki/Ubuntu_install_guide
on my new 64-bit Ubuntu Oneiric laptop.
I did these steps:
1050 svn co https://fossology.svn.sourceforge.net/svnroot/fossology/tags/1.4.1
1051 sudo apt-get install subversion
1054 svn co https://fossology.svn.sourceforge.net/svnroot/fossology/tags/1.4.1
1055 cd 1.4.1; sudo utils/fo-installdeps
1056 sudo apt-get install rpm
1058 sudo apt-get install libpq-dev
1063 sudo apt-get install libpq5
1064 make;sudo make install
1066 sudo apt-get install postgresql
1067 make;sudo make install
At this step:
1057 make;sudo make install
I get:
make -C devel
make[1]: Entering directory `/tmp/1.4.1/devel'
make -C libfossdb
make[2]: Entering directory `/tmp/1.4.1/devel/libfossdb'
gcc dbtest.c -lpq -I`pg_config --includedir` -I../../devel/libfossdb
-L../../devel/libfossdb -lfossdb -I`pg_config --includedir` -o dbtest
../../devel/libfossdb/libfossdb.a(libfossdb.o): In function `DBclose':
/tmp/1.4.1/devel/libfossdb/libfossdb.c:62: undefined reference to `PQclear'
/tmp/1.4.1/devel/libfossdb/libfossdb.c:63: undefined reference to `PQfinish'
<snip>
Reading this:
http://www.mkyong.com/database/how-to-building-postgresql-libpq-programs/
I see this (sic):
It do need to specified exactly library with -lpq to include libpg
library, correct command is like following
gcc -I/usr/include/postgresql/ -L/usr/lib/postgresql/8.3/lib/ -lpq
-o test.o test.c
but I didn't know what to do with that information, or even if it's relevant.
_______________________________________________
fossology mailing list
[email protected]
http://lists.fossology.org/mailman/listinfo/fossology
_______________________________________________
fossology mailing list
[email protected]
http://lists.fossology.org/mailman/listinfo/fossology
--
---
Mark Donohoe
OSPO, HP
FOSSology.org
_______________________________________________
fossology mailing list
[email protected]
http://lists.fossology.org/mailman/listinfo/fossology